944,153 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 4978
  • JSP RSS
Sep 27th, 2005
0

How do I pass data from a recordset on asp page towards an array on js file

Expand Post »
Hi all,

I'm kinda new to all this stuff so maybe I'm totally starting off on the wrong foot here...

Here is my problem..

I have an acces database residing on the webserver from where I get some information onto my webpages, these pages are asp. The database connection and building recordset working just fine.
Second I have a js file, in this file I have some functions that display some info in a praticular way on the asp webpage. This info I have now is in a declared array 'hardcoded'. It works fine as well.

What I would like to do to is to pass on some off the info I have from the recordset into the array in the js file, this instead of having the info hardcoded in there.


//the declaration and filling of the array in the js file
var text = new Array();text[0] = "blabla";text[1] = "ouchouch";
var date = new Array();date[0] = "19-08-2005";date[1] = "19-09-2005";
var go_to = new Array();go_to[0] = "http://www.somewhere.com";go_to[1] = "http://www.anywhere.com";
var target = new Array();target[0] = "_parent";target[1] = "_parent";


If someone has any idea, pls let me know...I might be overlooking something fundamental here

thx in advance
Reputation Points: 10
Solved Threads: 0
Newbie Poster
LA-Vida is offline Offline
4 posts
since Sep 2005
Oct 3rd, 2005
0

Re: How do I pass data from a recordset on asp page towards an array on js file

You might want to ask you question in the JavaScript forum.

Regards,

Nate
Reputation Points: 11
Solved Threads: 8
Posting Whiz in Training
hooknc is offline Offline
216 posts
since Aug 2005
Oct 4th, 2005
0

Re: How do I pass data from a recordset on asp page towards an array on js file

ow...okay ... ic

sorry to bother y'all here. I'll post my q on the other forum

thx


Quote originally posted by hooknc ...
You might want to ask you question in the JavaScript forum.

Regards,

Nate
Reputation Points: 10
Solved Threads: 0
Newbie Poster
LA-Vida is offline Offline
4 posts
since Sep 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Help with 301 redirect code - jsp in url
Next Thread in JSP Forum Timeline: getting error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC