|
 |
pro_jsp thread: passing parameters
Message #1 by "Manal Rayess" <m_rayess@h...> on Thu, 3 May 2001 10:30:18
|
|
Thanks alot it worked. but I have a question: would it be the same if the
input field was a text field and the user must type the value?
>
> Make sure you pass the variable into function abc. You
> should also make sure you do this on a javascript
> event at the point you are sure you want to go to the
> next page. If you are submitting a whole lot of other
> values you can do a:
>
> this.document.submit;
> in abc()
>
> This will post or get all your values in to the next
> page from "this" form.
>
>
>
> > <head>
> > <script>
>
>
> > function abc(Day) {
> > location.replace("page2.jsp?myDay="+Day.value)
> > }
> > </script>
> > </head>
> > <SELECT NAME="Day">
> > <option value="DA">Day
> > <option value="01">01
> > <option value="02">02
> > </select>
> > <a href="JavaScript:abc('Day');">link</a>
> >
> > Let me know...
> > Kapil
>
> --- Hari Yellina <yellina@i...> wrote:
> > hi Manal.
> >
> > When saying href please dont forget escape
> > function in java script. Or at
> > some point of time u r code doesnt work
> >
|
|
 |