Comparing JSON and iFRAME?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
myleow
Forum Contributor
Posts: 194
Joined: Mon Jun 21, 2004 7:05 pm
Location: California

Comparing JSON and iFRAME?

Post by myleow »

Can you even compare these two?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

care to elucidate some more?

what does Javascript Object Notation have to do with inline frames?
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

They are both methods of the AJAX concept :P Although IFRAME/GIF/COOKIE was the old way to make this wonderful concept work, JSON is an implementation of AJAX but instead of transporting in XML, you transport in JSON, so really, it should be AJAJ.

See JSON-PHP or JSON-JS (json.org)

I am just starting to learn JSON, as I've heard from a fellow php'er that it beats the infamous XML anyday. So I'm pretty new to it.
Last edited by Pyrite on Fri Jul 22, 2005 8:50 am, edited 1 time in total.
thedamo
Forum Newbie
Posts: 9
Joined: Fri Jul 15, 2005 7:23 am
Location: Sydney Australia

Post by thedamo »

so have you found any major differences between httpxml and json?

i think i will do some research on this now! I wonder what browsers are supported by json...
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

json is not a alternative to using the XMLHTTPReq object. You still use that. But, instead of sending the data in XML format, it is sent in JSON format. So the technology is really AJAJ instead of AJAX, but both use XMLHttpReq object.
Post Reply