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 …..
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.
@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.