Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 3rd, 2003, 10:10 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Javascript and Mysql

Is it possible to use Javascript to lookup a mysql table?

Reply With Quote
  #2  
Old September 3rd, 2003, 11:07 AM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Javascript and Mysql

That would not be possible directly from Javascript as it is a client side language and MySQL is a server side application as well as the fact that javascript does not have the capability of connecting to any DB. (that I am aware of...)

Reply With Quote
  #3  
Old September 3rd, 2003, 12:00 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,323 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 20014 Folding Title: Starter FolderFolding Points: 20014 Folding Title: Starter Folder
Time spent in forums: 6 Days 10 h 53 sec
Reputation Power: 4
RE: Javascript and Mysql

Blindeddie, I disagree. It would be possible if JavaScript just had these functions. Remember that MySQL server is different than a HTTP server.

But because JavaScript can't do this, I suggest that if you have to do a db connection from client side then study Java Appletts. But on the other hand I'm not sure if even appletts can do this. Perhaps if there's a good JDBC configuration on the server.

Reply With Quote
  #4  
Old September 3rd, 2003, 01:24 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Javascript and Mysql

T,

Yes it would be possible (if the functions existed), but it currently is not (since the functions do not exist)and client/server db connections are so unstable (in my opinion...and that opinion comes from experience) that to build an application based on it would not be the way to go. all that aside, the answer to the posters question is still...

'No you can not connect to MySQL from Javascript!'

Reply With Quote
  #5  
Old September 3rd, 2003, 02:06 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,323 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 20014 Folding Title: Starter FolderFolding Points: 20014 Folding Title: Starter Folder
Time spent in forums: 6 Days 10 h 53 sec
Reputation Power: 4
RE: Javascript and Mysql

Quote:
'No you can not connect to MySQL from Javascript!'


I haven't denied this... I just noticed your poor point:
Quote:
client side language and MySQL is a server side application


This is the correct point when we're talking about passing variables to PHP from javascript because PHP always requires page reload.

Reply With Quote
  #6  
Old September 3rd, 2003, 02:36 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: Javascript and Mysql

#1
Quote:

Blindeddie, I disagree.


#2
Quote:
I haven't denied this...



well do you agree or disagree?

only kidding, i get your point...my statement could be misinterpreted

Reply With Quote
  #7  
Old September 3rd, 2003, 04:01 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,323 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 20014 Folding Title: Starter FolderFolding Points: 20014 Folding Title: Starter Folder
Time spent in forums: 6 Days 10 h 53 sec
Reputation Power: 4
RE: Javascript and Mysql

Okay, you asked for it. From now on, this thread is the official codewalkers.com kidding thread :laugh:

As for agreeing or disagreeing: I agree that you cannot connect to a db from JS but I disagree that you javascript being a clien-side application would be the reason. ;)

Okay, let's bury this thread deeper than any thread!

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Javascript and Mysql


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT