| | |
How do I pass data from a recordset on asp page towards an array on js file
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2005
Posts: 4
Reputation:
Solved Threads: 0
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
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
![]() |
Similar Threads
- Retriving data from excel sheet into an asp page (ASP)
- Embed shockwave file in asp page? (ASP)
- problem in javascript coding in asp page (ASP)
- How do I pass data from a recordset on asp page towards an array on js file (JSP)
- How to Create TIME STAMP in ASP page (ASP)
Other Threads in the HTML and CSS Forum
- Previous Thread: Change Webpage Icon
- Next Thread: URL issue
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash font fonts form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl






