Do you have a clue what you are talking about?? I am trying to send MULTIPLE forms to the mootools ajax demo.....
At the moment it is only set up to POST one form............?? On May 25, 3:00 pm, Fábio Costa <fabiomco...@gmail.com> wrote: > demo.js is not meant to be used on your site, it an example file. > You should modify it for your needs. > Its not part of the mootools framework, just an example of how to use the > Mootools framework. > Cheers. > > Fábio Miranda Costa > Engenheiro de Computaçãohttp://meiocodigo.com > > On Mon, May 25, 2009 at 10:58 AM, js_dev <smac5...@hotmail.co.uk> wrote: > > > Ok i have setup 2 forms with different form ID's on the same page both > > forms look extact tge same. > > > First form is = 'myform' > > second form id = 'testform' > > > The response from the 'myform' AJAX is written too the 'log_res' div > > The response from the 'testform' AJAX is written too the 'testdiv' div > > > The myform works but the testform doesn't beacuse only 'myform' is > > hardcoded into demo'js. > > > So how can i use this method to allow 2 or more forms on the same page > > with different ID's to post using AJAX. > > > Here is the setup > > >http://etwolf.no-ip.org/Form.Send/index_test.html > > > thanks > > > On May 25, 2:17 pm, Fábio Costa <fabiomco...@gmail.com> wrote: > > > The examples are intended to show what Mootools can do and give that > > little > > > push on your first scripts. > > > Read it, understand it and mae your own for your own needs. > > > I dont understand what you are wanting. > > > Maybe if you could send a script that is having errors we could help you > > > find the errors. > > > > Cya. > > > > Fábio Miranda Costa > > > Engenheiro de Computaçãohttp://meiocodigo.com > > > > On Mon, May 25, 2009 at 9:56 AM, js_dev <smac5...@hotmail.co.uk> wrote: > > > > > That may not be worded very well as i think demo.js runs when the page > > > > loads so maybe you couldn't pass values to it but anyway i will try > > > > and explain. > > > > > So demo = form.send. > > > > > So you have a demo.js which loads it's js into the page when the html > > > > page loads(i think) and you have set the form id ("myForm") to POST > > > > it's values to the *.php script in demo.js and have also set the (in > > > > this case) div to write the response too, ("log_res"). > > > > > So i want a generic case where you can pass the form name you are > > > > wanting to POST and also pass the element name you want the reposnse > > > > written to instead of hard coding because say i have multiple forms > > > > on the page and i want to use AJAX fill them. > > > > > So your example as far as i can see will only work for one form with > > > > it's hardcoded example, how do i have a generic demo.js and be able to > > > > pass whatever form id and output div? > > > > > An i would rather not have multiple hardcoding in the demo.js...... > > > > > thanks.