By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,568 Members | 1,688 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,568 IT Pros & Developers. It's quick & easy.

Read data from serverside file?

P: 51
Hey, This is a pretty simple question. Is there any easy way to read data from a server side file. I know that Javascript is client side. I was thinking you write a php script to get the data, then open that url in Javascipt? Is it possible to use javascript to get the code of a url? Sorry this is probably very noobish. Thanks guys!
Aug 21 '08 #1
Share this Question
Share on Google+
5 Replies


hsriat
Expert 100+
P: 1,654
Perhaps this is what that/those person(s) would have thought to do, who ended up developing Ajax.
Aug 21 '08 #2

P: 51
Ok wow, I'm smart. (sarcasm) Thanks!
Aug 21 '08 #3

hsriat
Expert 100+
P: 1,654
Of course you are smart! The only thing is you are few years late :) (j/k)
Aug 22 '08 #4

acoder
Expert Mod 15k+
P: 16,027
If the server-side file returns something which JavaScript can read, e.g. JSON, then you can also use a dynamically created script element.

PS. Ajax wasn't necessarily developed. It was a term coined to make it easier to refer to the new approach in web development in this article.
Aug 22 '08 #5

hsriat
Expert 100+
P: 1,654
PS. Ajax wasn't necessarily developed. It was a term coined to make it easier to refer to the new approach in web development in this article.
Oh man, could you please atleast let something sound good? :p

(j/k)


Regards
Aug 22 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.