Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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

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
Reply With Quote
  #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

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] & "';")

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:13 PM.

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