SunQuest
 
           .NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old December 18th, 2000, 09:54 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Passed values Using Onclick event of Input type=button

<i><b>Originally posted by : Arbil (rickysantos.com)</b></i><br />I have this asp page which contains several forms. One form has a Submit and a Button. The Submit button has an ONCLICK event which is triggering a specified asp page on a targeted frame. Here's the Code:<br /><br /><form name="bmcform" method="Post" target="MapFrame"><br /><br /><select name="lCity" id="lCity"><br /> <option value="San Juan">San Juan</option><br /> <option value="Valenzuela">Valenzuela</option> <br /></select><br />....<br />....<br /><select name="lClass" id="lClass"><br /> <option value="AIRLINE COMPANY">AIRLINE COMPANY</option><br /> <option value="APARTMENT">APARTMENT</option><br /></select><br />....<br />....<br /><br /><input type="Submit" value="Show" name="submit" onclick="this.form.action='newsmc.asp';"><br /><br />This works fine. The other Button, when clicked will open a new window passing the selected values from the two options into the new page.<br /><br />Here's the Input Button:<br /><br /><input type="Button" value="List" name="bmclist" onclick="window.open('bmc.asp?lCity=<%Request("lCity")%>&lClass=<%Request("lClass")%>','bmcwin1','toolbar=no,location=no,directories=no ,status=yes,menubar=no,scrollbars=yes,resizable=ye s,copyhistory=yes,width=300,height=500')"><br /><br />There is no process done in the calling page. It is just a button calling a new page which passes the selected values from the two Options.<br /><br />But I can't seem to get the passed values in the opened page.<br /><br />Here's the code I used in the 2nd page to get the passed values:<br /><br />lClass2 = ucase(Trim(Request.Querystring("lClass")))<br />lCity2 = lcase(Trim(Request.Querystring("lCity")))<br /><br />And I made an instant response.write to see if I get the values:<br /><br />Response.Write lClass2<br />Response.Write lCity2<br /><br />What is wrong with this? How can I get the value from the 1st page and passed it in the other page using ONCLICK event of an INPUT type=Button?<br /><br />Need your help/ideas? Thanks in advance.<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Passed values Using Onclick event of Input type=button


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway