•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 457,853 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,292 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 4049 | Replies: 2
![]() |
•
•
Join Date: Sep 2005
Posts: 4
Reputation:
Rep Power: 0
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
•
•
Join Date: Aug 2005
Location: Socialist Republic of Boulder
Posts: 216
Reputation:
Rep Power: 4
Solved Threads: 6
•
•
Join Date: Sep 2005
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
ow...okay ... ic
sorry to bother y'all here. I'll post my q on the other forum
thx
sorry to bother y'all here. I'll post my q on the other forum
thx
•
•
•
•
Originally Posted by hooknc
You might want to ask you question in the JavaScript forum.
Regards,
Nate
![]() |
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
.net access ajax asp breach broadband code combo crime custom daniweb data data protection data transfer database developer development dom drive dropdownlist feed forensics government hard hardware hitachi internet linux microsoft module msdn net news office reader reuse security skin software sql storage terabyte theme vista weather web wikipedia xml xoap
- 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 (HTML and CSS)
- How to Create TIME STAMP in ASP page (ASP)
Other Threads in the JSP Forum
- Previous Thread: Help with 301 redirect code - jsp in url
- Next Thread: getting error


Linear Mode