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.
John
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/the_larsons%40mac.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]