Re: Force a subsequent call to a Javascript routine from within the Action method processing of a submit
Re: Force a subsequent call to a Javascript routine from within the Action method processing of a submit
- Subject: Re: Force a subsequent call to a Javascript routine from within the Action method processing of a submit
- From: "Daniele Corti" <email@hidden>
- Date: Fri, 15 Feb 2008 10:06:48 +0100
Hi,
2008/2/15, Baiss Eric Magnusson <email@hidden>:
I have a WOImageButton with an Action method which brings up an
editing pane.
I need to call _javascript_ to set the <selectedIndex> of one of the
WOPopupButtons in the editing pane, right now it always defaults to
zero.
The form has multiple submit buttons and each record shown on the
page has it own WOImageButton, clicking one of the image buttons
opens up that record for editing.
Does this refresh the page? if not, you should use an ajax call.
If this refresh the page, you should use a binding or set a variable in the java classwith the value.
I know about hidden fields so I can get to the correct value of the
<selectedIndex> for that record from within a _javascript_ function.
I already use <onLoad> from the <Body> tag to set up the _javascript_,
but that only happens on page load.
So you don't refresh... you should consider to use the Ajax.framework of Project Wonder
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
--
Daniele Corti
AIM: S0CR4TE5
Messenger:
email@hidden--
Computers are like air conditioners -- they stop working properly if you open
WINDOWS
--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
_______________________________________________
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