Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-25-2002, 09:01 AM   PM User | #1
chuahyen
New to the CF scene

 
Join Date: Jun 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
chuahyen is an unknown quantity at this point
Javascript accessing database

Is there a way for javascript to access database like Access 2000? If not, i am thinking of using ASP or PHP. However, I am now stuck in how to request ASP to get the required data so that Java script can be used to manipulate the data from ASP.

Please help..

Thanks
chuahyen is offline   Reply With Quote
Old 06-25-2002, 11:30 AM   PM User | #2
joh6nn
wei wu wei


 
joh6nn's Avatar
 
Join Date: Jun 2002
Location: 72° W. 48' 57" , 41° N. 32' 04"
Posts: 1,887
Thanks: 0
Thanked 1 Time in 1 Post
joh6nn is an unknown quantity at this point
no, javascript can't access a database. i know that you can pass variables from asp to javascript, and vice versa, but i don't know how.
__________________
bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

i am a loser geek, crazy with an evil streak,
yes i do believe there is a violent thing inside of me.
joh6nn is offline   Reply With Quote
Old 06-25-2002, 05:05 PM   PM User | #3
ecnarongi
Regular Coder

 
Join Date: Jun 2002
Location: Northern NJ
Posts: 401
Thanks: 0
Thanked 1 Time in 1 Post
ecnarongi is an unknown quantity at this point
I know how to do what you are looking for, ASP variables manipulated by JS and vice versa, but I am not clear on what you are asking for. explain
__________________
true lies
ecnarongi is offline   Reply With Quote
Old 06-26-2002, 01:28 AM   PM User | #4
chuahyen
New to the CF scene

 
Join Date: Jun 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
chuahyen is an unknown quantity at this point
Actually, I need to get the data from the database in my web page (either ASP, JSP or PHP). With the data, i need to do processing using javascript with DHTML
e.g.

document.getElementById("flightID" + pageRow).filters.revealTrans.apply();

document.getElementById("flightID" + pageRow).filters.revealTrans.play();

document.getElementById("flightID" + pageRow).innerText= flights[flightArrayIndex[row]];

The data from the database is big. I need to put these data into 10 rows of the table.
Now, in order to show 10 rows of data at a time without a TOTAL PAGE REFRESH of the web browser, i need to replace each content of the table from the data in the database.

Please advise on how to solve this problem

thanks
chris
chuahyen is offline   Reply With Quote
Old 06-26-2002, 08:26 AM   PM User | #5
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
i think you should consider using PHP with a mySQL database. this is the most common script-database combination (i think) and both are very widley used and docmented on the net. PHP supports quite a number of differnt databases but mySQL is the most common with hosts.
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Old 06-26-2002, 08:34 AM   PM User | #6
chuahyen
New to the CF scene

 
Join Date: Jun 2002
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
chuahyen is an unknown quantity at this point
But does mySQL support unicode? In Access 2000, the character fields are able to upport unicode. Thanks. I will look into PHP with mySQL and javascript.
chuahyen is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:56 AM.


Advertisement
Log in to turn off these ads.