Skip to content Skip to sidebar Skip to footer

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 calling document.open() will automatically perform a document.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?"