similar to: Instance variables in Javascript param

Displaying 20 results from an estimated 2000 matches similar to: "Instance variables in Javascript param"

2006 Feb 19
4
is "display" a reserved name of some sort?
A view display.rhtml sees no controller state variables set in the corresponding display action. Why? -- fxn
2006 Jan 13
21
anyone interested in an Effect.Slideshow?
I had to make a sort of slideshow for a site I''m working on, and I was thinking of making it into a Scriptaculous object. Anyone think of reasons why I shouldn''t? You''d have to pass in all the image urls and a div id, with an optional delay parameter to determine how long to leave each image up before moving on. I could also have a ''randomize''
2008 Mar 24
2
link_to_remote and restful routes/urls
is there a way to access a restful resource with mike''s new link_to_remote helper? something like: <%= link_to_remote h(user.name), :update => "div_id", :url => user_url(user) %> of course, that doesn''t work. i have also been trying things like: :url => controller.asset_host +
2007 May 19
4
button_to_function with image?
Hi: does button_to_function allow the use of an image? I tried it in place of the text with "image_tag" and it doesn''t work. Maybe some form of button_to? Any direction you can give would be great! Mike -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2008 Aug 24
11
link_to_function check javascript attribute
How could I check the value of an javascript object''s attribute? <div id="new_item_details" style="display:none"></div> <%= link_to_function("Show details...", nil, :id => "show_details") do |page| page.visual_effect(:toggle_blind, :new_item_details) if (page[:new_item_details].style.visibility ==
2006 Jun 24
6
Ajax fade effect
I have a list of categories, when I delete one of them, I want that item to fade and then get removed. So I do the following: 1. home_controller: def delete @category = Category.find_by_name(params[:name]) @element_id = @category.name Category.delete_all(["name = ?", @category.name]) end 2. delete.rjs: if @element_id page.visual_effect :fade, @element_id
2007 Jun 26
3
what is the :or parameter in a submit_tag ?
I read the following tag in teh Beast example <%= submit_tag''Login'', :or => link_to_function(''forgotten password'', "$(''reset-password'').toggle();") %> I understand the link_to_function, but what is this :or parameter used for ? the link doesn''t appear, so it cannot be used... thanks for your lights kad --
2009 Sep 04
12
Changing cursor while waiting for remote function response?
Hello, Google and the search function didn''t help me this time. Is it possible to change the mouse cursor while waiting for a response of a remote function call? -- Posted via http://www.ruby-forum.com/.
2008 Nov 07
1
RJS show as 'try...' in AJAX update
Hi guys, I am trying to display Javascript code after an Ajax call. It is executing the JS code, but it''s also displaying it. It shows as: try { alert(...); } catch .. ... my controller code: render :update do |page| page.alert message_var end my Javascript code: new Ajax.Updater("div_id", my_controller_url, { asynchronous: true, evalScripts: true,
2006 Aug 08
1
link_to_function
Hello I wonder why this happens: this: <%= link_to_function image_tag("chart_bar.png"), :onclick=>"new Effect.toggle(''bar-project#{project.id}'')" %> outputs this: a href="#" onclick="onclicknew Effect.toggle(''bar-project188''); return false;"><img alt="Chart_bar"
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 Oct 31
6
link_to submit form value 2
Hi to all, I''d like to pass with a link to values inside some form. I''ve read in other posts that it''s possible if i include the forms inside a html <div>... So here it''s my code of the view : <div id="study"> <table> <tr><td><label for="study_titolo">Titolo di
2009 Oct 06
0
[PATCH server] new host networking wui
Frontend and backend changes needed to implement http://ovirt.org/page/Networking_UX#Option_3 --- src/app/controllers/host_controller.rb | 38 ++- src/app/services/host_service.rb | 35 ++ src/app/views/host/edit_network.rhtml | 593 ++++++++++++++++++++++++++++---- src/public/stylesheets/components.css | 76 ++++ 4 files changed, 676 insertions(+), 66 deletions(-) diff --git
2005 Dec 25
5
RJS not working?
I''ve been attempting to add a simple rjs ''delete'' method to my project. However, no matter what I try, it simply doesn''t work. Even the easy, easy stuff seems broken. (Yes, <%= javascript_include_tag :defaults %> is being included in the template.) For example, from: http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates VIEW: <h1
2006 Apr 21
4
link_to_function with submit
I looked everywhere but couldn''t find it. I don''t want a submit_tag or image_submit_tag but a normal link that submits my form. Normally I would do this with a javascript like function sendForm () { document.forms[0].submit(); } but this doesn''t work with form_remote_tag link_to_function( ''Send'' , "sendform();") So the question is:
2005 Oct 17
7
Ajax.MultiUpdater ?
Hi, I''m using prototype within ruby on rails. One limitation I''d like to overcome is the restriction of beeing able to update just one html elements content using from_remote_tag or link_to_remote. AFAICS this is just a restriction of the form_remote_tag/link_to_remote implementation and it''s underlying Ajax.Updater class. Right? In theorie there should be no problem,
2006 Jun 19
9
Railsday 2006
Can you guys post a demo of your application ? Would be great. Thanks, Pratik -- rm -rf / 2>/dev/null - http://null.in
2006 May 30
0
Ajax.Updater problem in IE
Hello All, Anybody can give me an advice why following code works in Firefox + Safari but not in IE? function load_mails(div_id){ $(div_id).toggle(); //hide or show var pars = ''id='' + div_id; var myAjax = new Ajax.Updater( div_id, ''../library/partials/load_messages.aspx'', { method: ''get'', parameters:
2009 Feb 15
2
Collapsible Fieldset
Hey there, (First steps in Ruby and Rails...) I''m trying to make a fieldset collapsible, like they are, for example, on many Drupal pages. What I''ve figuared out is the following: <fieldset id="addressdata" class="collapsible collapsed"> <legend> <%= link_to_function("Show/Hide Addressdata") { |page| page[:
2015 Apr 07
5
Asterisk Inbound calls, multiple SIP accounts, calledID
Hi Dmitriy and others and thanks for your help so far. The option "match_auth_username=yes" seems to have had no effect. From my reading, this option will try to match the username of the incoming SIP account to a section heading. If that is how it must work then i can see a big problem. I'm trying to present the receptionist with a nice display of which line the call came in on.