Difference between revisions of "Javascript"
From Bashlinux
Line 6: | Line 6: | ||
# ExtJS |
# ExtJS |
||
− | == |
+ | == 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: |
* To print out objects, even the ones coming from PHP, use Firefox or Google Chrome and the add to the code: |
||
Line 15: | Line 15: | ||
Useful to see the object structure |
Useful to see the object structure |
||
+ | |||
+ | == How to update html sections 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 |
||
+ | |||
+ | <pre><nowiki> |
||
+ | $(".tag").load("page.php?"+Math.random()*99999); |
||
+ | </nowiki></pre> |
Revision as of 07:09, 14 October 2011
Javascript
Javascript frameworks
- jQuery
- ExtJS
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 sections 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);