/    Sign up×
Community /Pin to ProfileBookmark

Can JavaScript interact with a database ?

does javascript interact with databases ?? can javascript read data ??? i mean as there is the document.write( ) is there a document.read() can it read form a file and can it input into a file ?? i hope i have made my self clear …..

Thanks
sherwin.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@PittimannMar 06.2005 — Hi!

Client side javascript alone cannot do such things. In Internet Explorer you can use javascript together with ActiveX for that but only under certain circumstances. If you want to read from and write to files/ databases, you should use a server side language like PHP, Perl, and others.

Cheers - Pit
Copy linkTweet thisAlerts:
@felgallMar 06.2005 — The only files that Javascript can both read and write are Cookies.

The only other files that Javascript can read are Javascript files. You read them into your page like this:

document.write('<script type="text/javascript" src="'+filename+'.js" /></script>");
Copy linkTweet thisAlerts:
@SpectreReturnsMar 06.2005 — [i]Originally posted by felgall [/i]

[B]The only files that Javascript can both read and write are Cookies.



The only other files that Javascript can read are Javascript files. You read them into your page like this:



document.write('<script type="text/javascript" src="'+filename+'.js" /></script>"); [/B]
[/QUOTE]

In some cases with unlimited access, JavaScript can read and write files too.
×

Success!

Help @sherwin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...