Re: Question about "Rasmus' 30 second AJAX Tutorial"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/30/05, Jochem Maas <jochem@xxxxxxxxxxxxx> wrote:
>
> I'm guessing that trhe onclick and onsumbit handlers you set are hanging
> on a 'submit' type input? .. if so the form is submitting - in whcih case
> the
> AJAX request will arrive back at your page - and the page won't be there
> (so
> to speak). try changing your onsubmit to something like:
>
>
> <input type="submit" value="submit" onclick="myAjaxFunction(); return
> false;"/>
>
> the return false tells the browser block form submission.. the same
> technique
> is used to validate forms and stop submission in case of errors (in such
> cases
> the boolean return is conditional e.g.:
>
> <input type="submit" value="submit" onsubmit="return
> myValidationFunction();"/>
>
> >
> > Sorry about my english (I'm from the third world ;) )
>
> whatever happened to the 'second world'? and since
> when is it a competition? ;-)



Ok, its working now...

<input type="submit" value="submit" onclick="myAjaxFunction(); return
false;"/>

There was the form submision that was making troubles.

Thank you all!!
Regards,
Fede.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux