similar to: Ajax.Request onComplete

Displaying 17 results from an estimated 17 matches similar to: "Ajax.Request onComplete"

2006 Apr 07
1
Re: page.replace_html "#{var_containing_id_name}",:partial
On 4/7/06, Chris Hall <christopher.k.hall@gmail.com> wrote: > page.replace @user.id, :partial => "edit_form" Thanks a lot Chris. -- Unfortunately, it didn''t quite work when I tried it that way. However, when I tried it this way: page.replace_html "#{@user.id}", :partial => "edit_form" It worked! Thanks again!! : ) Jason
2008 Apr 22
1
Problem with Prototype 1.6.0.2, Opera 9 and Form.serialize()
Hello, following code fragment given: ~~~ function jsPostAppend(script, form_id) { if(form_id) //parameters=''&'' + $(form_id).serialize() // first flavour parameters=''&'' + Form.serialize($(form_id)) // second flavour [...] ~~~ This works perfect for FF2, IE7 and Safari3 (in both flavours). With Opera 9.x, I get the following javascript errors:
2006 May 29
3
IFRAME based RJS - responds_to_parent
** File uploads with AJAX mojo ** Respond with RJS to your parent window with a form action targeted to a hidden IFRAME. Handles all the painful situations like scoping your JavaScript to your parent window generating the script block for execution and clearing the IFRAME after execution so the back button doesn''t re-execute the action. `plugin install
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:
2006 Apr 07
2
Re: Re: page.replace_html "#{var_containing_id_name}", :partial
> you mean like this? > > def do_some_ajax_thing > <at> element_id = "content_div" > end > > do_some_ajax_thing.rjs > > page.replace_html <at> element_id, :partial => "edit" > > remember, the view templates have access to the attributes defined > in the controller Actually, its more like this: I have a list page. Each row
2007 Oct 24
3
Using Mechanize in Story Step Implementations
Hi, Thought this might be of interest story writers. The mechanize plugin seems to play nice with RSpec. The following mix of methods seems to work just fine. I especially like the helpers for populating forms. agent = WWW::Mechanize.new page = agent.get ''http://www.gmail.com'' page.should have_tag(''form'', :count => 1) form = page.forms.first form.email =
2006 Apr 07
0
Re: Rails Digest, Vol 19, Issue 216
On 4/7/06, Chris Hall <christopher.k.hall@gmail.com> wrote: > page.replace @user.id, :partial => "edit_form" Thanks a lot Chris. -- Unfortunately, it didn''t quite work when I tried it that way. However, when I tried it this way: page.replace_html "#{@user.id}", :partial => "edit_form" It worked! Thanks again!! : ) Jason Gotham City
2006 Apr 22
1
using file_column
I''m trying out this recipe from the Rails Recipes book (the tagging one) but I''m also trying to use file_column to handle the uploading of pictures. Basically I think the problem is I''m not using an instance variable in the view''s partial that shows the details of my item. Off of my original list.rhtml page I have a <%= render :partial =>
2008 Apr 09
13
submitting an ajax form via javascript not rendering
for some reason the controller is parsing everything fine, but the return is a page instead of code execution. I have other ajax forms no listed that are also running fine on this same page. there are supposed to be 3 ajax events: onblur event that calls a function to submit - doesn''t work. There is a submit button at the end of the form - works there is a delete image that removed the
2012 Mar 22
0
problems configuring cluster to lucci and virtual machines resource
I have Centos 6.1 and i'm configuring cluster with conga, lucci and ricci these services are installed and running without problem. I need this type configuration for a high availability of virtual machines which is run on kvm. My problem is at the time of configuring "service group", when i click to add appears the new windows wich say "add service to cluster" and i fill
2007 May 09
1
How can I change a form's onsubmit event handler using rjs?
Hi all, I have a ajax form creating by "form_remote_for", whose url is to create a new model by default. The page doesn''t change after the ajax call on submit button so the form is still there after the new model is created. But if I submit the form for the second time, I want to update the formerly created model using an Ajax post. I think I could render an rjs at the end of
2005 Dec 23
13
how to form.rest in RJS
is there any way to Form.reset (clear all fields of the form ) in form_remote_tag generated form? I want to reset fields after ''submit'' in .rjs. -- Hiroshi Takagi <gollum-u1eKKkw+WM0gE89CWYshPg@public.gmane.org>
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
I attached a rails helper implementation of the fb_table described here: http://wiki.developers.facebook.com/index.php/Facebook_Styles I included testing and comments. I hope you find it useful. Curiously, it''s really a small extension of FBML. Richard -------------- next part -------------- Index: test/rails_integration_test.rb
2006 Jul 27
1
form_remote_tag
How can I get a name/id for a form using the remote form tag? <%= form_remote_tag :url => { :action => :add_to_cart, :id => timecard } %> gives me: <form action="/timecard/add_to_cart/4" method="post" onsubmit="new Ajax.Request(''/timecard/add_to_cart/4'', {asynchronous:true, evalScripts:true,
2006 Jan 17
2
link_to_remote() - can I post data with it???
can I post data with link_to_remote(), link_to() has special option :post => true and viola Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060117/2a0a00af/attachment.html
2006 Mar 22
2
observe_form without ajax?
This betrays my lack of javascript knowledge, but is it possible to watch a whole form for changes and activate some javascript when those changes occur without any remote request? That is, I want to do exactly what observe_form does, but without the ajax call actually happening. I realize I could use the form_tag :onchange parameter, but that seems to be incapable of doing things like
2005 Jul 18
13
in place text edit
I''ve written a pretty nice Flickr style in place text edit JavaScript control based on the Script.aculo.us library. API is like this: <span id="editme">Edit me!</span> <script> new InPlaceEditor($(''editme''), ''url/to/action''); </script> Background changes to gray as mouse hovers over the text (like flickr) and the