similar to: how to close a popup?

Displaying 20 results from an estimated 10000 matches similar to: "how to close a popup?"

2006 Nov 20
2
getting form content for print popup
I''m trying to open a new window for printing a form from a link. I want to display the contents of the form for printing. I can get the popup to work, but am wondering how to get the contents of the form from the parent window, using RJS. I can use a submit option to get the form parameters in a link_to_remote, but the popup doesn''t work. <%= link_to_remote
2006 Jul 24
4
how to get your controller to close a browser popup window
While editing a record I need to have a link to create a new record in another scaffold. I''ve done this by using a popup window <%= link_to("Add new Person", "/person/new", :popup => [''window_name'', ''width=600,height=600'']) %> It all works great - but when the save is done I want to kill the popup window.
2011 May 13
2
Popup window
How can I insert (:popup => true) into code below? <%= link_to "Source_#{i}", link.url , :style => "color:#0096FF;font- family:''LucidaGrande'',''Lucida Grande'',''Lucida Sans Unicode'',sans- serif; font-size: 11px; text-decoration: none; margin-right: 10px;" if link.show? %> -- You received this message because you
2008 Feb 19
1
adding an onclick option to link_to method
Hello, I''m trying to use the rail link_to to open a popup window and then print the popup window at the same time. Is there a way to add another "onclick" option to tell the popup to print? I know how to do this in javascript but not sure how to use the rails help to do it. I also am aware that the link_to_function method is used to call a javascript function.
2008 Jul 22
5
RJS opener.reload()
Hello, I have a problem with RJS. I have a popup and by pressing a button within it I want to: 1. close this popup, which functions fine with onClick in the view and 2. reload the opener page of the popup after the called action in the controller is done. I tried: render :update do |page| page.opener.location.reload() end in the controller, but this didn''t work. Can anyone
2006 May 14
3
need help for simple form tag (noob)
when the user click on "Search" I would like it to point to http://curentpage/?filter=searchtext (the filtering code is already written) it would look like this: <%= start_form_tag(url_for_options = {<something>}) %> <%=text_field (<my_filter>) %> <%= submit_tag(value = "Search")%> any idea how to do this? thanx in advance
2006 Jan 06
6
NewbieQ: How do I refresh view after return from popup window
Hi, I have this bitta code that is supposed to open a new window and allow the user to create a new Organisation on the fly whilst editing a new Person i.e. if the Organisation exists they can select it from the drop down select. Otherwise they can click on the cute button and enter a skeleton Organisation record. What I need to do next is refresh the drop down select on returno the new
2009 Nov 12
1
Please help me ------ Mapping an item to article
Hi everybody, I have a form like this <h1>New menuitem</h1> <% form_for(@menuitem) do |f| %> <%= f.error_messages %> <p> <%= f.label :title %><br /> <%= f.text_field :title %> </p> <p> <%= f.label :alias %><br /> <%= f.text_field :alias %> </p> <p> <%= f.label
2006 Nov 10
8
PeriodicalUpdater and popups.
Hi, I don''t know what might cause this, but maybe you do. If I put the code below in a html-file and open it in a popup. I get an error on row 129 in the latest prototype.js bundled with 1.6.5. popup.html: <script type="text/javascript" src="/inc/api/prototype.js"></script> <script type="text/javascript"> Event.observe(window,
2008 Jan 25
8
simple routing & linking question
So I have an existing app & facebook app in same rails application, for now I have decided to go the route of creating a controller for facebook stuff (called FaceController). (setup is canvas, fbml) So I have: facebook config http://myurl:myport/face/ My controllers name is face, so I dont even need a manual route, for the landing page it works like a charm. but, when I try to make
2006 Jan 26
2
javascript in link_to?
having trouble finding how to include a random chunk of javascript (an onclick event handler) in a link_to generated link. at first i thought i could use the html_options field, but if i understand correctly, that only supports :confirm, :popup, and :post options. hope i''m wrong. anyone know different? john _______________________________________________ John McGrath
2016 Jun 13
2
PJSIP does not qualify contacts after starting Asterisk
Hi all, (sending this again from the correct address) I'm running Asterisk 13.8.0 (I need to check if that happens with 13.9.1 too when I have the time to build it) with PJSIP realtime config. I've defined several aors in the table ps_aors, like this (real url replaced by myurl): *CLI> pjsip show aor pbx-node-1 Aor: <Aor..............................................>
2010 Jul 01
6
Close Modalpopup with RJS
hi guys: I''m scratching my head on this one: I have a twitter app where I''m trying to open a modalpopup with a twitter sign in, get them to sign in, then close the popup and refresh the main window. My code however refreshes the main window with the popup window result, which I thought was really strange: application.html.erb function OpenModalPopUP() {
2006 May 30
1
Url encoding Help Pls!
Hi guys, it''s me again, I want to come up with the following url: www.mysite.com/webpage?myid=1 I keep coming up with the following url: www.mysite.com/webpage%3Fmyid%3D1 require ''uri'' $myurl = URI.escape("webpage?myid=") redirect_to(:action => $myurl + 1 ) what am I doing wrong? I also tried require ''cgi'' $myurl =
2009 Aug 04
6
form_for
hi everybody... I have a form_for in that, onclicking submit button i am calling a javascript for validation.If validation fails that form_for doesnt do anything.But even the validation fails it goes to the controller and action. here my code: <%form_for :promotion_code,
2007 Aug 16
4
prototype: Event.observe 'click' for $$('a.popout')
Hi all first time im posting here, hope what i''ve written is clear. I''m trying to make a popup work using event.observe for all anchor tags with the CSS selector ''popup''. in the HTML i have this: < a href="somelink.php" class="popup">Click to go someplace </a> in my javascript I have a: Event.observe(window,
2016 Jun 13
2
PJSIP does not qualify contacts after starting Asterisk
Hi, Yes, we're implementing the dialplan in realtime too. Here the contents of sorcery.conf: [res_pjsip] endpoint=realtime,ps_endpoints aor=realtime,ps_aors contact=realtime,ps_contacts [res_pjsip_endpoint_identifier_ip] identify=realtime,ps_endpoint_id_ips Cheers, Francisco. From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf
2012 Dec 08
9
link_to popup
Hello All, I have a link. Which I want to open as a new window :- <%= link_to "Google", "https://www.google.com", :popup => [''new_window_name'',''toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes''] %> But it is opening in the same page.... Any suggestions how to do it ?? Even hover will be
2013 Jun 05
1
Link_to image_tag popup
Hello All, How can I add a popup in link_to image_tag? I am trying as :- <%= link_to image_tag(@user.avatar.url(:small)), ''/users/edit'', :popup=>[''original_image'', ''height=700,width=900''] %> It goes to the edit page. But it doesn''t opens popup. Is this the correct way to call a popup? How can I achieve this? Thanks,
2006 Jul 18
2
Turn element hidden by default (ajax question)
(this is my first post on the ruby forum. If this is not the right place for this type of question please let me know). Ajax question I have a checkbox that toggles the visibility of another element (a text field) with the code: --- <p><label for="checkbox">Appear!</label> <%= check_box :object_name, :method, :onClick =>