Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Dim to Javascript Var???

Status
Not open for further replies.

budapestnori

Technical User
Jan 15, 2004
33
HU
So I am setting up a web site for a photographer. In his gallery, he will have five categories of images, ie., wedding, event, sports, etc. Normally, I would set up a template ASP page and pass it a variable such as cat=web in the url. Then, on the receiving page, I have a script that preloads images and populates an array for a slideshow presentation. Here is the problem I am up against. I want to allow him to enter as many images into the databaase as he wants to be in his gallery. So, for the array, I would need somehow to open the asp page, run a query to get a count of the records, build the array. Also, what about file names, I would name the images such as w_img_1,...w_img_21; e_img_1...e_img_17, etc. I think you see where I am going with this. I can get the data I want easily enough from the ASP knowledge that I know, it is just passing it to javascrip that is a challenge for me. Here is the link to the page I am working on, this would be the "receiving" page. Thanks in advance, you guys are so helpful.
 
Hi, firstly ur link is not working;
What u have to do is ,after declaring the value in the VBScript; for example( dim value ), to refer to this value in javascript just use it like this &quot;<%= value %>&quot; .
Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top