Re: AJAX and WOForm (ERXForm)
Re: AJAX and WOForm (ERXForm)
- Subject: Re: AJAX and WOForm (ERXForm)
- From: Chuck Hill <email@hidden>
- Date: Wed, 4 Feb 2009 11:18:52 -0800
On Feb 3, 2009, at 10:03 AM, Amedeo Mantica wrote:
Hi,
A simple question...
I have a WOForm with an AjaxSubmitButton that works very nice,... if
the user clicks on the AjaxUpdateButton
I'm getting in trouble in the user hits the return button because
the WOForm does't do an Ajax request.
At the moment I workarounded the problem using the
AjaxUtils.isAjaxRequest method to check the request and return the
response according the request.
How to force wo form submitting an ajax request?
I have been thinking about this too. So far, no good solutions. I
made a DefaultButton that I put first in my regular forms, like this:
Button: WOImageButton {
action = ^action;
src = "/cadre/images/clear1x1.gif";
tabindex = "";
class = cssClass;
style = ^style;
id = ^id;
}
You then bind this to what you want called when the user hits Enter.
It should be possible to make an Ajax version. It is on my "To Do"
list to find a solution.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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