[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread anthony
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

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread anthony
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.

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread Alex McAuley
-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

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread anthony
. 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

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread Rick Waldron
...@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

[Proto-Scripty] Re: Prototype and forms

2009-06-17 Thread Alex McAuley
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

[Proto-Scripty] Re: Prototype and forms

2009-06-16 Thread Rick Waldron
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: