Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript 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
 
Old October 31st, 2005, 01:31 PM
Registered User
 
Join Date: Oct 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default capturing asp data in clientside javascript

I need to either open a database with javascript or pass an asp array to a javascript array, the following is what I've tried.
In the <head>:

var arrCollageImg = new Array;
arrCollageImg = <%=arrCollageData%>;

Then later in the <body> of the page I will do the following:

<script type="text/javascript">
  for(var i=0;i<arrCollageImg.length - 1; i++){
   document.write("<div>");
   document.write("<img src='images/collage/" + arrCollageImg[4][i] + "'")
   document.write("/<div>");
  }
</script>

Any help will be apprieciated.



Terry Migliorino
[email protected]
 
Old October 31st, 2005, 01:42 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Please do not cross-post: http://p2p.wrox.com/topic.asp?TOPIC_ID=36209






Similar Threads
Thread Thread Starter Forum Replies Last Post
Capturing MSHFlexGrid Data davekrunal46 VB How-To 2 November 30th, 2005 03:00 AM
capturing asp data in clientside javascript Terry Joseph Migliorino Javascript How-To 9 November 2nd, 2005 09:10 AM
Global Variables and ClientSide Javascript haricot Classic ASP Basics 3 September 7th, 2005 10:00 AM
Capturing Javascript form via Excel web query helentoomik Javascript 3 November 25th, 2004 12:19 PM





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