Re: AJAX and WOForm (ERXForm)
Re: AJAX and WOForm (ERXForm)
- Subject: Re: AJAX and WOForm (ERXForm)
- From: Chuck Hill <email@hidden>
- Date: Wed, 11 Feb 2009 18:17:25 -0800
On Feb 11, 2009, at 6:02 PM, John Larson wrote:
I am suffering from a cold and am very tired, so this might not be
what you want, but this is what I do whenever I'm in this very
situation. I put this in the form:
onsubmit="search_button.onclick();return false;"
Replace "search_button" with whatever the id is of your
AjaxUpdateButton. I use it all over the place on IE, Firefox and
Safari and never had a problem.
Yes, that should work. I was aiming for a solution that did not
require custom JavaScript on each form. It is just a question of how
to get the right stuff generated at the right time.
Chuck
On Feb 4, 2009, at 1:18 PM, Chuck Hill wrote:
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
--
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