Javascript
From Bashlinux
Revision as of 15:36, 4 June 2012 by (talk)
Javascript
How to debug objects
- To print out objects, even the ones coming from PHP, use Firefox or Google Chrome and the add to the code:
console.log(object)
Useful to see the object structure
How to update html code and make it works on IE9
And probably in the rest of the Internet Explorer. The IE browsers are unable update the HTML code of any tag because probably it is being cached. In order to update a page in the properly way, just add a random number as a parameter to the page
$(".tag").load("page.php?"+Math.random()*99999);