We help IT Professionals succeed at work.

reading the contents of a file or database

onyourmark
onyourmark asked
on
suppose I have a file like the attached (in Json format) and I want to read the contents and then display them on the page. This is actually for a mobile web page but I don't think it matters.  Suppose I want to display the fields
stockname     stockmarket     date          explanation     market open time     prediction
sony                TSE                      10/2/12    Open                12:30 GMT                    up
nintendo        TSE                      10/2/12   Open                12:30 GMT                     up

etc.


If possible I would like to use jquery but if not ajax is good. I think it is possible to do this without php but just using javascript.

Thank you.
jsonFormattedFileForJacob
Comment
Watch Question

Meir RivkinFull stack Software Engineer
CERTIFIED EXPERT

Commented:
do u need help parsing the file? or downloading the file from a remote server
do u want to use ajax request to get the file and then display it?
Full stack Software Engineer
CERTIFIED EXPERT
Commented:
do u mean something like this:
http://api.jquery.com/jQuery.getJSON/

Author

Commented:
Thanks.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.