How can i use a information in a data file on a free hosting service where only jawascript and html is allowed
Question by india_ujwala_patil: How can i use a information in a data file on a free hosting service where only jawascript and html is allowed
I have a website on a free hosting where only jawascript and html programming is allowed. I want to use data from data file or variables or fields etc. such that different page may be opened with different data as per search
Best answer:
Answer by Marius
You could use Javascript to download a file and use the data to update the page dynamically. This is done using the XmlHttpRequest object, but it’s usually easier to use one of the many javascript libraries that are out there
Examples:
http://developer.yahoo.com/yui/connection/
http://www.jquery.com/Ajax ( http://www-128.ibm.com/developerworks/library/x-ajaxjquery.html )
What do you think? Answer below!
- Tags: allowed, Data, File, Free, Hosting, HTML, information, jawascript, only, service.