Combining a previous thread...

Since you are using Javascript, use the onClick handler to set the NAME of
the HIDDEN field to the appropriate web event (whatever the method would
have been in the HREF's URL.)  This allows you to handle each different
HREF/Target page independently.  Obviously, if you are simply doing a
load("nextPage"), this is overkill.

[EMAIL PROTECTED]
Team NetDynamics

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 06, 1999 10:34 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [ND] How to get a reference to page's other componets in
> href's onWebEvent method???
> 
> 
> To expand on this, the default behavior when you do the submit 
> will be to call load().  To capture "what page to load next": 
> 
> -put a hidden field in the form
> -set the hidden field in the javascript method to be the name
>  of the next page to load
> -override "public int load()"
>  in the page (or an ancestor for all pages)
> -call getWebVar("nameOfHidden") to get the next page name
> -use CSpider.getCommonPage(nameOfPage) to get a handle 
> -call CSpHttp.reset(), pageHandle.load(), return STOP
> 
> -Chip
> 
> [EMAIL PROTECTED] wrote:
> >
> >1) add onClick javascript to the href which calls a javascript 
> >   method that submits the form; your UI designer gets the href,
> >   you get the submit
> >
> >-Chip
> >
> >"Mikko" <[EMAIL PROTECTED]> wrote:
> >>Thanks Aby, you understood my question.
> >>
> >>So, this href problem is quite difficult.
> >>
> >>My problem is precisely following:
> >>- have a radio buttongroup in parent page
> >>- user must select one of those radiobuttons
> >>- after selection user can go to different page via couple of hrefs.
> >>- in hrefs onWebEvent(in parent page) I tried to get the index of the
> >>selected
> >>  radiobutton  vie getting a reference to that radiobuttongroup object
> and
> >>then send
> >>  that parameter as an parameter(via method or sessionobject) to other
> page.
> >> (That index should tell the index of an list(or array) to be displayed)
> >>
> >>BUT as I mentioned I did not get correct reference to that
> radiobuttongroup
> >>object
> >>so exception flow "into the air".
> >>
> >>Of course I could use buttons instead, BUT one of our UI designers have
> >>decided
> >>that we should use hrefs instead of buttons ...
> >>
> >>Any suggestions?
> >>
> >>Regards
> >>
> >>Mikko
> >>
> >>PS. And thanks for the answer.
> >>
> >>-----------------------------------------------------------
> >>
> >>Mathew, Aby wrote in message
> >><[EMAIL PROTECTED]>...
> >>> Mikko,
> >>>
> >>> I am not quite clear about your question. Pls ignore if I am not
> >>>answering your question.
> >>>
> >>>> How can I get a reference to page's other visual components in page's
> >>>> hrefs onWebEvent method?
> >>>>
> >>> Are you  trying to get the values of other components?  You can't
> >>>(unless you do some special Javascript tricks) because..
> >>>
> >>> In buttons onWebEvent method this works?
> >>> What is wrong with href????
> >>>
> >>> Buttons do Submit and takes all the values in the Form to the
> >>>Server. Href doesn't.
> >>>
> >>>
> >>> Regards,
> >>>
> >>> Aby
> >>
> >>
> >
> 
> _________________________________________________________________________
> 
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
> 
> For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to