Thanks for the cleanup. I have made those changes. Feel free to post
others. The problem I have is that the form had two dynamic places:
div id=territories/div
and
div id=adjForm/div
There is an onChange that calls the javascript function getTerritories
() allows the
div id=territories/div to
Ok, I have found a better way to explain this.
var params = $('createAdjForm').serialize();
alert(params);
This does not show the form elements that were included via: div
id=territories/div
Why is that the case?
On Jun 17, 9:06 am, anthony mrsmi...@gmail.com wrote:
Thanks for the cleanup.
-scriptaculous@googlegroups.com
Sent: Wednesday, June 17, 2009 4:52 PM
Subject: [Proto-Scripty] Re: Prototype and forms
Ok, I have found a better way to explain this.
var params = $('createAdjForm').serialize();
alert(params);
This does not show the form elements that were included via: div
id=territories
.
OR..
They are outside the /form tag
Paste full code to a pastie and we can help
- Original Message -
From: anthony mrsmi...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, June 17, 2009 4:52 PM
Subject: [Proto-Scripty] Re: Prototype
...@gmail.com
To: Prototype script.aculo.us
prototype-scriptaculous@googlegroups.com
Sent: Wednesday, June 17, 2009 4:52 PM
Subject: [Proto-Scripty] Re: Prototype and forms
Ok, I have found a better way to explain this.
var params = $('createAdjForm').serialize();
alert(params
Maybe add it on onSuccess too ! just to be safe!
- Original Message -
From: anthony mrsmi...@gmail.com
To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com
Sent: Wednesday, June 17, 2009 5:30 PM
Subject: [Proto-Scripty] Re: Prototype and forms
Here was the problem
A few things...
var params = Form.serialize($('createAdjForm'));
You can clean this up as:
var params = $('createAdjForm').serialize();
There are other points that you could optimize, but thats not your
question...
And at whatever point you want adjForm to appear, you need to add: