If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Thanks for the information! I ended up using the JSON Object for the screenSize like you suggested. One question I do have about it though, why and where to use a JSON Object? I read around and understand JSON is a smaller and simpler XML, but I can't understand when to use it. Or in other words what is the main difference between a JSON Object and a regular JavaScript Object?

For the Ajax, I ended up creating my own callAjax function to handle my Ajax calls.

if after 10 seconds the clock target is not available, the callback is stopped.

The example layout groups a number of functions that all work together for a specific purpose, this is handy because when things work, you can discount them from debugging code problems, a working json function that is not reliant on any external functions won't suddenly develop a bug, so they have advantages.

The only draw back to a JSON object is that it has to fully initalize before any part of it can be used, so auto:setInterval("json.init()",1000) has to have its function call in quotes otherwise ti wouldn't properly initialize and the function would have an error in it.

--> JavaScript Frameworks like JQuery, Angular, Node <--
... and please remember to wrap code with forum BBCode tags:- [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]If you can't think outside the box, you will be trapped forever with no escape...