Displaying 20 results from an estimated 8000 matches similar to: "Serializing Forms with disabled fields"
2006 Apr 02
13
autocompletion: hooking ''afterUpdateElement'' in Rails
Hi everyone,
I need to trigger a Rails action after the autocompletion is completed
(when the user has selected an option).
From the scriptaculous doc, I figured out ''afterUpdateElement'' is the
place to be but I wonder if/how and where I can hook my javascript code
to this event in Rails code (I''d like to keep using the helper, if
possible)?
I tried passing many
2006 May 19
6
Multiple dynamic Sortables
I''m writing an appliation that contains several dynamically created lists. I
had hoped that the following method for using the Sortable library from
scriptaculous would work:
1) create the list
2) create a Sortable for it
3) create another list
4) create a Sortable for it
and so on. Unfortunately this doesn''t work. I can''t find any info in the
documentation for
2007 Feb 22
7
Serializing non-ascii characters
Hello, I''m new to the Prototype Framework.
I''m trying to serialize a simple form with a few checkboxes.
It seems like non-ascii characters, like Ö, are not encoded properly
in some cases.
Please take a look: http://troxy.net/serialize.htm
Checking both boxes gives the following string:
namn=%25C3%25B6rjan&namn=adam
..while it should look like this:
2006 Feb 21
7
non simultaneous effects
Hi all,
If I call this function bla:
function bla() {
Effect.Appear('some_element');
Effect.Appear('some_other_element');
}
Both effect happen at the same time. Is there a way to stop this from
happening? I mean, how can I delay the effect on 'some_other_element'
from happening until the effect on 'some_element' is finished?
thanks and regards,
Jeroen
2006 Mar 29
2
Drag/Drop and KeyPress
Hi!
is it possible to make a drag dependent on a KeyPress event? I couldn''t
find any information on that on the script.aculo.us website.
My scenario is the following:
I have a tree with several nodes (like windows explorer). Right now i
use Drag & Drop to move a node below a new parent.
Now i want to implement a copy mechanism which allows the user to copy a
node through Drag
2007 Sep 28
2
Event.observe doesn't work
Hi,
The following simple html doesn''t work with errors, why?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/
html4/strict.dtd">
<html>
<title>click</title> <head>
<h2>Click!</h2>
<script type="text/javascript" language="javascript">
2006 Aug 15
4
observe_form not serializing form
I want to use observe_form to automatically save notes in a text_area.
This is the code I have:
<form id=''notes_form''>
<%= text_area :contact, :notes, :cols => 40, :rows => 10,
:id =>''notes_text_area'' %>
<%= observe_form(''notes_form'',
:frequency => 1,
2006 Mar 03
8
How to use the sortable_element tagname option?
I''m having some difficulty adding drag-and-drop sorting to my
application. I''m hoping that someone can help me figure out what I''m
doing wrong:
#view
<table>
...
<tbody id="item-list-body">
<tr id="view-item-<%= item.id %>"....</tr>
</tbody>
...
<%= sortable_element(''item-list-body'',
2006 Mar 22
4
Serialized form... problems with accents
Hi,
I''m working on a french website and I use the Form.serialize method to
send the info through AJAX. The thing is that the accentuated letters
(é,ê,à, etc.) don''t get replaced by their HTML entities and they get
corrupted when retrieving the data. How could I fix that?
thanks a lot,
Blaise Bernie
2007 Jan 25
2
serialize() takes too long when serializing to a raw vector
Hello,
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
Calling serialize() with a NULL connection serializes it to a raw vector. However, when the object to be serialized is large, it takes a very long time:
> system.time( serialize(matrix(0, 1000, 1000), NULL) )
[1] 38.25 40.73 81.54 NA NA
> system.time( serialize(matrix(0, 2000, 2000), NULL) )
[1] 609.72 664.75 1318.57 NA
2006 Apr 06
1
Bug? In scriptaculous -- double text drawn one pixel off
Hello, I''m working with scriptaculous, and i''ve narrowed down a bug i''m
having to the following code:
http://rate.urbanpug.com
I''m using the latest release (as of sending this mail) of scriptaculous.
I''ve actually seen this bug before, and random tweaking fixed it.
Unfortunately, i can''t figure it out this time. I''ve reduced the bug
2006 Apr 22
2
Form.serialize problem
I''m sure I''m missing something dumb but I cannot get Form.serialize to
work. I have an alert in the function as a debug to show me what''s
supposed to be the serialized line of values but it always shows
nothing. Can somebody show me what I''m doing wrong? Thanks in advance.
function submitprofile() {
var url = "/profile/submitprofile.html?";
2006 Apr 27
2
check_box_tag and :disabled => ''disabled'' problem
I''ve been using the check_box_tag to generate checkboxes for an application
I am working on and I''ve run into a little hiccup.
When I set the options for the checkbox to be { :disabled => "disabled" }
the checkbox becomes disabled, as I would expect. However, if I set the
checked value to true and keep the disabled option, the value for the
checkbox is not returned.
2005 Dec 14
1
RE: Form.serialize and Ajax.Request ->fileserialization and encoding
I''ve not looked into how it''s done but adding an attachment in Gmail (UK version) uploads the file without refreshing the window, and http://www.yousendit.com <http://www.yousendit.com/> appears to send a file via some sort of RPC or AJAX. Maybe this could be another starting point for you.
Paul Shannon
Web Applications Developer
Codeweavers Limited
Tel: 0870 443
2024 Jan 12
2
Choices to remove `srcref` (and its buddies) when serializing objects
Dear R devs,
I was digging into a package issue today when I realized R serialize function not always generate the same results on equivalent objects when users choose to run differently. For example, the following code
serialize(with(new.env(), { function(){} }), NULL, TRUE)
generates different results when I copy-paste into console vs when I use ctrl+shift+enter to source the file in RStudio.
2006 Mar 09
6
[Prototype] Ajax.Request include form fields?
Hi,
Is it possible to submit my form (or part of my form) with an ajax
request? I had been using dojo to do this, but having just read up on
the prototype library, I think I''d rather use prototype. The one
thing I don''t see (maybe I''m just missing it) is the ability to submit
my form (actually just parse through an element and include all inputs
as request parameters)
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:
2015 Mar 17
2
Reduce memory peak when serializing to raw vectors
Hi,
I've been doing some tests using serialize() to a raw vector:
df <- data.frame(runif(50e6,1,10))
ser <- serialize(df,NULL)
In this example the data frame and the serialized raw vector occupy ~400MB each, for a total of ~800M. However the memory peak during serialize() is ~1.2GB:
$ cat /proc/15155/status |grep Vm
...
VmHWM: 1207792 kB
VmRSS: 817272 kB
We work with very
2005 Dec 14
1
RE: Form.serialize and Ajax.Request -> fileserialization and encoding
1/ I am trying to send a multipart/form-data encoded form through Ajax
with
by calling Form.serialize, but it seems that files fields does not
support this very well
Is there any special mode to use ?
You cannot send a file through Ajax. You''ll have to submit the form
normally. To mimic Ajax functionality, you could set the target to a
hidden iframe, and on the server side,
2005 Dec 14
2
RE: Form.serialize and Ajax.Request->fileserialization and encoding
I''d bet money that they use a hidden iframe. Gmail already uses that to
avoid breaking the back button, from what I''ve read. It''s impossible to
send multipart form data through XMLHttpRequest, or so everything I read
says and my own personal attempts confirm. There is an IE ActiveX
plugin that will let you send files in a similar fashion, but it''s IE
only. I