PDA

View Full Version : Serialize on Javascript


ansa
12-20-2008, 10:34 AM
Hi,

I'm very confused. Why does serialize() for form inputs work on one web server but not on another for the same exact code? That happens to my code. I have two different web hostings. I just migrated all files from one to another. Both servers are using Apache.

Did I miss something here or perhaps I should set something up first on my new web server ?

Here is my code:

HTML:
<form id="f_profile_personal" onsubmit="SubmitForm(this); return false;" method="post">
...

JS:
SubmitForm = function(form)
{
...
var params = Form.serialize(form, false);
...
}

Can anyone give me a clue?

RysChwith
12-22-2008, 08:33 AM
I don't think it's a standard function. Thus, individual browsers can implement it if they choose, but you can't depend on every browser doing so. Better to not use and develop your own method to handle it.

Rys