...

View Full Version : reading from file?



Duffman12
10-19-2005, 08:37 AM
i'm trying to load in pages using innerHTML. is it possible to read a txt or html file using javascript? or in-line php/javascript?

nikkiH
10-19-2005, 03:22 PM
I assume pages on the server?
Since Javascript runs on the client, it can't access pages on the server without help from server-side scripting.
If you have PHP, you can use that instead.
If you don't want the client to have to refresh, use an AJAX methodology to call PHP (or another scripting language that runs on the server) from the client-side javascript.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum