Displaying 11 results from an estimated 11 matches for "form_id".
Did you mean:
forum_id
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 java...
2005 Dec 13
2
Ajax.Request onComplete
Hello,
I have a small class where i want to use attributes of the instance when an
ajax call returns, so I wrote:
*var* MyClass = Class.create();
MyClass.prototype = {
initialize: *function*(form_id, rendered_id) {
this.form_id = form_id;
*var* edit_form = $(form_id);
*var* rendered_node = $(rendered_id);
*if* (!edit_form || !rendered_node) {
this.enabled = *false*;
}
*else* {
*// getting the action value*
this.form_action = edit_form.action;
t...
2008 Apr 09
13
submitting an ajax form via javascript not rendering
...sert
as well, but no dice.
The controller code is pretty standard
....
render :update do |page|
page.call "update_row", id,v1,v2,v3,v4,v5
end
Here is a chunk of the rendered html, sorry, its not very pretty.
<SCRIPT type="text/javascript">
function submit_form(obj, form_id)
{
document.getElementById(form_id).submit();
}
</script>
.....
<form action="/assignment/update_assignment/16" id="frm_16"
method="post"
onsubmit="new Ajax.Request(''/assignment/update_assignment/16'',
{asynchronous:true, evalScr...
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>
2006 Apr 22
1
using file_column
...9;s partial that shows the details of my item. Off of my original
list.rhtml page I have a
<%= render :partial => "detail", :collection => @recipes %>
then in my details partial i have a
<%= render :partial => "content", :locals => {:recipe => detail, :form_id =>
form_id} %>
so in my content partial I''m using local variables.
Now if I just try to add
<%= image_tag url_for_file_column("recipe", "image") %>
I get
You have a nil object when you didn''t expect it! The error occured while
evaluating nil.im...
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
2012 Mar 22
0
problems configuring cluster to lucci and virtual machines resource
...ars: (MultiDict([('old_name', 'centos_vm'),
('svc_name', 'centos_vm'), ('autostart', 'on'), ('exclusive', 'on'),
('domain', ''), ('recovery', 'disable'), ('parent_id', 'esvc_root'),
('form_id', 'res_0'), ('oldname', ''), ('type', 'vm'), ('migrate', 'live'),
('migration_mapping', ''), ('status_program', ''), ('xmlfile',
'/etc/libvirt/qemu/centos5.xml'), ('path', '/etc/l...
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