[Rails] Re: form_remote_tag running only once

2010-06-12 Thread Frederick Cheung
On Jun 12, 10:51 pm, AGoofin amor...@gmail.com wrote: I'm trying to add a simple search to an index page of my project. It takes a term, does a 'like' query and populates a common partial which is displayed with javascript in the div 'search_remote'. It runs fine, once. If you run multiple

[Rails] Re: form_remote_tag does not update div

2009-03-30 Thread Siddick Ebramsha
I think, the /ticket/status.rhtml contain a tag with the id as statdiv. Check-it-out. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: form_remote_tag does not update div

2009-03-30 Thread Jeba Momin
Siddick Ebramsha wrote: I think, the /ticket/status.rhtml contain a tag with the id as statdiv. Check-it-out. Thanks for the reply. I tried it but things are the same :( The div does not get updated... -- Posted via http://www.ruby-forum.com/.

[Rails] Re: form_remote_tag does not update div

2009-03-30 Thread Siddick Ebramsha
I am not Giving the correct solution, but it will work. Solution :- form_remote_tag(:update=statdiv,:url = { :controller=test,:action = status }, :before = $('statdiv').update(''); ) -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received

[Rails] Re: form_remote_tag does not update div

2009-03-30 Thread Jeba Momin
Siddick Ebramsha wrote: I am not Giving the correct solution, but it will work. Solution :- form_remote_tag(:update=statdiv,:url = { :controller=test,:action = status }, :before = $('statdiv').update(''); ) Hey thank you so much for your solution but I got it working by: %

[Rails] Re: form_remote_tag

2009-03-03 Thread Adam Akhtar
hi vimal thanks but i dont think thats right. could you or someone show a call to form _remote_tag that will degrade if javascript is enabled in the browser? if youd like something to work on how about his from railscasts % form_tag complete_tasks_path, :method = :put do % ul % for task

[Rails] Re: form_remote_tag

2009-02-27 Thread Adam Akhtar
can anyone help?: -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To

[Rails] Re: form_remote_tag

2009-02-27 Thread vimal
do |form| --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to

[Rails] Re: form_remote_tag comes back before saving really done?

2009-02-11 Thread MaD
try a current_user.reload or current_user.pending_friends_by_me.reload in your controller after the save. maybe this helps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: form_remote_tag comes back before saving really done?

2009-02-11 Thread comopasta Gr
Ha! current_user.pending_friends_by_me.reload Yeah that fixed it! Thanks MaD! -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this

[Rails] Re: form_remote_tag

2009-02-04 Thread Julian Leviston
Do you mean a js alert? Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 05/02/2009, at 2:22 AM, Shandy Nantz rails-mailing-l...@andreas-s.net wrote: I have this strange situation where I have a form and when you hit the form button an indicator is supposed to

[Rails] Re: form_remote_tag and :with

2008-10-17 Thread David
turns out you need to use submit_to_remote: % form_tag :url = {:controller = 'foo', :action ='bar', :month = @month, :day_number = @day_number, :day_name = @day_name, :id = @id} do % %= text_field request, request %br/ %= submit_to_remote('submit', 'Send Request', :url =

[Rails] Re: form_remote_tag and :with

2008-10-03 Thread Frederick Cheung
On Oct 3, 7:43 am, David [EMAIL PROTECTED] wrote: I am trying to pass the result from a javascript function along with the result from a text_field with form_remote_tag.  This is what I have so far, but no go:     % form_remote_tag(:url = {:controller = 'requests', :action = 'create'},  

[Rails] Re: form_remote_tag and :with

2008-10-03 Thread David
result() is the name of a javascript function that I have defined within a script in the head element. calling it in :with sets this result to data, which can then be accessed with params[:data] in the action create. On Oct 3, 1:34 am, Frederick Cheung [EMAIL PROTECTED] wrote: On Oct 3, 7:43 

[Rails] Re: form_remote_tag and :with

2008-10-03 Thread Frederick Cheung
On Oct 3, 9:43 am, David [EMAIL PROTECTED] wrote: result() is the name of a javascript function that I have defined within a script in the head element.  calling it in :with sets this result to data, which can then be accessed with params[:data] in the action create. Well your initial

[Rails] Re: form_remote_tag and :with

2008-10-03 Thread David
Oh i forgot to include the % end % code. I have that and it still does not work. On Oct 3, 2:20 am, David [EMAIL PROTECTED] wrote: So this returns the correct value in params[:data]:     %= link_to_remote 'Send Request', :url = {:controller = requests, :action = create,       :date = @date,

[Rails] Re: form_remote_tag and :with

2008-10-03 Thread David
So this returns the correct value in params[:data]: %= link_to_remote 'Send Request', :url = {:controller = requests, :action = create, :date = @date, :weekday = @weekday, :id = @id}, :with = 'data='+newFunction(), :update = 'request_sent' % but this returns nil: %