Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 5th, 2003, 01:09 AM
Registered User
 
Join Date: Jun 2003
Location: Hyderabad, A.P., India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default dynamic rs gen image with javascript

Hi
My Problem goes like this
See i have a client side javascript programm downloaded which displays images or text scrolling
actually the it uses a function with parameter as text which could be plain text or html tag if it is a html may ge <img> tag also then the it parses it appropriately and shows the relevent result.

I want to pass a set of recordset elements which give the path of the image file as parameter using the do untill rs.EOF clause.

it is not working
the client side scrolling program uses to script files used by <script tag>
how can i use the server side generated rs(0) object, with my client side program

Alls well that ends well
  #2 (permalink)  
Old June 5th, 2003, 03:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: High Wycombe, UK, United Kingdom.
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

As you are using your ASP to generate the output, why not use it write out the Javascript with the RS data in it ?

e.g. :

response.write("<script language='javascript'>")
response.write("var myArr = new Array();")

for count=0 to 10
    response.write("myArr(" & count & ")='" & rs[count] & "';")
next

response.write("</script>")


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading Image to Image Control using JavaScript ctranjith General .NET 1 May 28th, 2013 05:43 AM
Expanding on chapter 6 and the movie site in gen newbreed65 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 September 27th, 2008 11:56 AM
RS Manager and RS Server on 2 different computers Choose File BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 July 22nd, 2004 10:56 AM
HELP ME PLEASE!!! XML to XSLT FORM GEN elysio XSLT 1 November 15th, 2003 05:37 PM
Dynamic Image rajanikrishna Beginning PHP 1 October 8th, 2003 02:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.