• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with jQuery

 
Greenhorn
Posts: 27
MyEclipse IDE Firefox Browser Windows XP
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!

I am learning Jquery and I need your help!
I want to use the JQuery get function and display the got page using document.write();
But i am not able to do this !

<script type="text/javascript">
$(document).ready(function(){


I added this,imported jquery, hosted in google.
Now how must i get this url and write it?
http://icanhazip.com/
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'll need to better explain what you are trying to do.
 
gowtham potter
Greenhorn
Posts: 27
MyEclipse IDE Firefox Browser Windows XP
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
srry for the late reply by it must get the contents of that page in HTML and use document.write() to display it on the page!
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
document.write() is no longer used. It is a dinosaur from days long past.

If you are using jQuery and have an HTML fragment that you would like to load into the DOM, that's what the .html() method is for. If you want to fetch it using AJax and have it automatically inserted into the DOM, the .load() method is what you need.
reply
    Bookmark Topic Watch Topic
  • New Topic