javascript - Grabbing contents from another web page using jQuery -


I have just started learning jQuery I came into this "grabbing material from other webpages" I code in any one site Was going through how to get it, here its part is:
  $ (document) .ready (function () {$ ('# list') .load (" Http://www.narutoget.com ul ", function (response text) {$ ('#otherHtml'). Text (feedback text);});});   

I'm not able to get content from the page. I Narutoget.com. Can anyone help me as to how to achieve this? And I would like to know if it is legal to do it.

As you do not maintain another site, this can be prevented if other sites Obviously it allows to include it well and the only solution is to side the server where you can ask the server if you wish.

If you also keep the other site, you need to insert a good corso headers to query your first site.

Here is a good tutorial for enabling cross-root requests for various server side technologies:

Once you do this, you simply ask the server and analyze the page. Must do:

  $ Get ("http://www.narutoget.com", function (html) {var ul = $ ('ul', html) .val (); $ ('#otherHtml'). Text (ul);}) ;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -