how we can read the div jag using AJAX or javascript

M

mekalai82

I have the URL for example (http://www.example.com)
from that url have the <div class = "abc"> xxxxx</br><div>........<div
class = "abc">yyyyyyy</div>................
i need to read the content from the URL is xxxxx only....... how to
read the Div tag value from the specific webpage using javascript or
AJAX

Thanks in advance
manimekalai.S
 
P

Peter Michaux

I have the URL for example (http://www.example.com)
from that url have the <div class = "abc"> xxxxx</br><div>........<div
class = "abc">yyyyyyy</div>................
i need to read the content from the URL is xxxxx only....... how to
read the Div tag value from the specific webpage using javascript or
AJAX

You cannot make a request from one domain (i.e. yourdomain.com) to
another domain (i.e. example.com).

<URL: http://developer.yahoo.com/javascript/howto-proxy.html>
<URL: http://www.mozilla.org/projects/security/components/same-origin.html>
<URL: http://jibbering.com/faq/#FAQ4_28>

It is important to have permission from the website you are "scraping"
for information if that page is copyrighted.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top