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 July 4th, 2008, 04:07 AM
davidrocastle davidrocastle is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 122 davidrocastle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 18 h 23 m 38 sec
Reputation Power: 2
JavaScript - Help with hyperlinking drop down value

Hey i was wondering if someone could help

I currently have a drop down that when clicked displays the data of an excel database.

Everytime the drop down is clicked for another value, the data will change. What i am trying to do is have a hyperlink beside the result. My output is displayed as spancust.

What i am trying to do is open a document like so
\\myserver\Document\$custnames[b][1] ".doc"

custnames[b][1] will change everytime the drop down is click.

Code:
strPath = "\\myserver\Document\"
spancust += ("<b>SheetForm1: </b> " + custnames[b][1] + "<br />");

Reply With Quote
  #2  
Old July 7th, 2008, 03:43 PM
davidrocastle davidrocastle is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Posts: 122 davidrocastle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 18 h 23 m 38 sec
Reputation Power: 2
Hi again

I know i am replying to my own message but just wanted to see if anyone would have any ideas on how to hyperlink an array value

I have declard a variable called strPath which remains contant.

Code:
strPath = "file://myserver/customer documents/
            if (custnames[b][1] != '') { 
               spancust += ("<b>SheetForm1: </b> " + custnames[b][1] + "href=<%strPath%> + custnames[b][1]" + "<br />");} 


The output displays perfect when i have custnames[b][1] but as soon as i try to append it to strPath nothing happens.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > JavaScript - Help with hyperlinking drop down value


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