Print Page | Close Window

response.write with hyperlinks: firefox

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=28299
Printed Date: 28 March 2026 at 9:10pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: response.write with hyperlinks: firefox
Posted By: emartel
Subject: response.write with hyperlinks: firefox
Date Posted: 30 January 2010 at 1:46pm
Hi,
one of my webages displays the entries in my database and turns them into hyperlinks. This works fine in explorer, but not in firefox. In firefox, the data appears as expected but the hyperlinks do not function.
Any help would be appreciated:

    response.write("<a href='" & rs.fields("Class") & "/" & rs.fields("Name") & "/'><td width='15%'>" & rs.fields("CandidateNo") & "</td><td width='20%'>" & rs.fields("Name") & "</td><td width='15%'>" & rs.fields("Course") & "</td><td width='15%'>" & rs.fields("UnitNo") & "</td><td width width='15%'>" & rs.fields("Class") & "</td><td width='20%'>" & rs.fields("CandidateName") & "</td></a>")

(Ie, the link path is formed from the db entry for the "Student'sClass/Student'sName", the link text dislayed is all the db fields in the record).
(also, Im not an expert!)

many thanks






Replies:
Posted By: godeep
Date Posted: 30 January 2010 at 4:06pm
I would put the url in the tr tag if your trying to make the entire row clickable. try doing something like this. just swapping yahoo for your info.
 
<tr onmouseover="this.style.cursor=pointer'" onclick="window.open('http://yahoo.com','_blank');">
 
...... your <td> tags ......
 
.... dont forget the </tr>.....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net