How To Remove Jquery Json Popup?
Where I am going to add jquery json data in html page. All HTML page components disappear and only show json data in left top of the page: $.getJSON('http://api.wipmania.com/jsonp?
Solution 1:
Reading the documentation for document.write()
we find this:
Writes a string of text to a document stream opened by
document.open()
. [...]Writing to a document that has already loaded without callingdocument.open()
will automatically perform adocument.open
call
... and the documentation for document.open()
says:
The document.open() method opens a document for writing. [...]If a document exists in the target, this method clears it
Using document.write()
to inject raw HTML is possibly the most annoying tool to create dynamic documents. You are using jQuery—make use of its DOM manipulation tools.
Post a Comment for "How To Remove Jquery Json Popup?"