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
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
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/.
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
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:
%
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
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
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
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
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
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
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 =
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'},
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
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
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,
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:
%
17 matches
Mail list logo