Print Page | Close Window

javascript function in do while loop asp

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=26925
Printed Date: 29 March 2026 at 2:09pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: javascript function in do while loop asp
Posted By: gupta_ji
Subject: javascript function in do while loop asp
Date Posted: 02 February 2009 at 1:28pm
<%
 
do while not rs.EOF
        if rs("inumber")=inumber then
        Response.Write(inumber)
        end if
rs.MoveNext
loop
 
%>
 
in the above loop in place of response.write(inumber), i want to put a javascript function  code call, which will call a function written somewhere above in my document.  can anybody tell how that is possible.


-------------
http://www.sgrj.com" rel="nofollow - chartered accountants India , http://www.delhiprofessionals.com" rel="nofollow - accounting Outsourcing ISO Certification



Replies:
Posted By: cmv
Date Posted: 22 May 2009 at 10:30pm
Response.Write("<a href=""javascript:myFunction(" & myValue & ")"">" & myValue & "</a>")
Response.Write/<a href=""#"" onclick=""myFunction(" & myValue & ")"">" & myValue & "</a">)
simply double the quotes where they would appear as single quotes in *regular* HTML code
christian


-------------
and remember: a CRAY is the only computer that runs an endless loop in just four hours ...



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