Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Addressing a SELECTed value of a form

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,133
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Addressing a SELECTed value of a form
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Addressing a SELECTed value of a form - 6/7/2001 9:21:20 AM   
  neilld

 

Posts: 13
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
Hi.

I have a form that contains a <SELECT> field among others. I'm using POST:

<FORM NAME="iview_select" METHOD="POST"
ACTION="http://HOUDS1201.ac.com/ttportal/iview_runtime/Dispatcher.asp";>

<SELECT ID="selected_iview" onchange="this.form.submit()" SIZE="1">
<OPTION SELECTED>Mor dispatcher test1 - Title<OPTION>Mor
Dispatcher Test2 - Title</SELECT>

<INPUT TYPE=HIDDEN NAME="iview_group" VALUE=1>
<INPUT TYPE=HIDDEN NAME="NumOfLines" VALUE=5>
<INPUT TYPE=HIDDEN NAME="URL"
VALUE=http://HOUDS1201.ac.com/TTPortal>;
<INPUT TYPE=HIDDEN NAME="IIS" VALUE=HOUDS1201.ac.com>
<INPUT TYPE=HIDDEN NAME="orig_iview_id" VALUE=743>

</FORM>

1. How do I address the SELECTED value of the SELECT field in the
destination page ?

2. If I want to add an INPUT TYPE=HIDDEN field that will contain the
SELECTED value, what should be this new added field's VALUE ?

Thanks,
 
 
Post #: 1
 
 Re: Addressing a SELECTed value of a form - 6/7/2001 9:42:01 AM   
  israelda

 

Posts: 13
Score: 0
Joined: 5/23/2001
From: Israel
Status: offline
give your select a name, the same as the id then:

document.iview_select.selected_iview.value

(in reply to neilld)
 
 
Post #: 2
 
 Re: Addressing a SELECTed value of a form - 6/7/2001 9:43:19 AM   
  neilld

 

Posts: 13
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
Thanks for your answer.

However, I don't see how this addresses my situation.

The SELECT field, being a part of a submited form, is being POSTed on
submition. I need to address the SELECTed value in the target (ACTION) page
to which the form is being submitted.

In other words, assuming the FORM NAME="myform" and the SELECT
NAME="myselect", what should I write where in order to be able to address the
selected value in the DESTINATION page, using variable myselect there ?

Thanks,

(in reply to neilld)
 
 
Post #: 3
 
 Re: Addressing a SELECTed value of a form - 6/7/2001 9:44:06 AM   
  israelda

 

Posts: 13
Score: 0
Joined: 5/23/2001
From: Israel
Status: offline
<%selval=Request("myselect")%>

then to write it somewhere:

<%=selval%>

(in reply to neilld)
 
 
Post #: 4
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Addressing a SELECTed value of a form Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts