Hi, thank you for your answer but then I get:
"post is not defined".
I have used:
var input= this.getElements('input[name=inputname]');
so I hope this is OK, but maybe accessing this will take more memory
as accessing post?
Thank you.
Aaron Newton napsal(a):
> $$('form.formclass').each(function(form){
> var postInput = post.getElement('input');
> //etc.
>
> });
>
> On Mon, Sep 7, 2009 at 10:36 AM, H13 <[email protected]> wrote:
>
> >
> > Hi, I am trying to solve the following situation with mootools
> > On a site, there will be an undefinded count of forms. Every form will
> > include submit. I want only get data from the form, where the submit
> > were clicked. (Without indenfing form with ID, because loaded
> > javascript - AJAX will not know which IDs where loaded on the site)
> > E.g.:
> >
> > <form name="form1" class="formclass">
> > <input type="submit" ... >
> > </form>
> >
> > <form name="form2" class="formclass">
> > <input type="submit" ... >
> > </form>
> >
> > I am sorry for adding examples from jquery, but I used jquery and need
> > to convert it to mootools:
> > This is the jquery code which worked for me:
> > $('form.formclass').submit(function(){
> > var postInput = $(this).find('input');
> >
> > So AJAX get only information from the form where the submit was
> > clicked. $(this) will only set data from the form where submit was
> > clicked.
> >
> > The problem is, I cannot get it working with Mootools, as I cannot get
> > only the form data where submit were clicked :-(
> >
> > Thank you for any help
> >
> >