HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

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:
  #1  
Old September 12th, 2004, 03:55 AM
asp_js_newbie asp_js_newbie is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 asp_js_newbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Get URL variable on .asp page with ASP or JS

I need to retreive a URL variable on a .asp page using either ASP or JS and then put in into the URL of an img tag.

Example:
- The page we are looking at has URL "https://aaa.bbb.net/ccc.asp?var1=12345&var2=True&var3=hello"
- I need to use JS or ASP to build a tag "<IMG border=10 hspace=10 vspace=10 width=1 height=1 src="https://ddd.eee.com/fff.asp?vara=fixed&varb=fixed&varc=fixed&vard=12345&vare=fixed">"
- Basically, the value of var1 from the URL should be used as the value from vard in the img tag

Your help is appreciated.
Charles

Reply With Quote
  #2  
Old September 12th, 2004, 04:34 PM
EnenDaveyBoy's Avatar
EnenDaveyBoy EnenDaveyBoy is offline
Apprentice
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Sep 2003
Location: Manchester, England
Posts: 1,480 EnenDaveyBoy User rank is Sergeant (500 - 2000 Reputation Level)EnenDaveyBoy User rank is Sergeant (500 - 2000 Reputation Level)EnenDaveyBoy User rank is Sergeant (500 - 2000 Reputation Level)EnenDaveyBoy User rank is Sergeant (500 - 2000 Reputation Level)EnenDaveyBoy User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 13 h 6 sec
Reputation Power: 24
Send a message via ICQ to EnenDaveyBoy Send a message via AIM to EnenDaveyBoy Send a message via MSN to EnenDaveyBoy Send a message via Yahoo to EnenDaveyBoy
not sure thisis what you want but

if your url is www.blah.com/index.asp?var1=1234

to get the info you would do

dim url_var
url_var = request.querystring("var1")

if you then wanted to put it back in the url you would then do

<a href="www.blahsomemore.com/index.asp?var1=<%= url_var %><img src="/imahe/blah.jpg")</a>

Somthing like that

Hope that helps sry if it doesn't
__________________
Around a circle you can always draw a bigger circle.

EnenDaveyBoy

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > Get URL variable on .asp page with ASP or JS


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