Re: AjaxUpdateContainer reloading the whole page
Re: AjaxUpdateContainer reloading the whole page
- Subject: Re: AjaxUpdateContainer reloading the whole page
- From: Mike Schrag <email@hidden>
- Date: Wed, 5 Nov 2008 07:19:20 -0500
Using the AjaxUpdateLink was used in the examples as well and the
page wasn't reloaded.
It was used in that particular example because it was not submitting a
form, and the page wasn't reloaded because it did not have an onclick
that did a full page reload. Think about what your code is doing
here. onclick is called by javascript when you press the link, and
you're doing a form submit. A form submit is not a background
operation. You're literally just tossing the ajax operation out the
window and then submitting the form -- your onclick is overriding
exactly the point of AjaxUpdateLink and doing a completely different
non-ajax operation instead.
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden