Reputation: 57
I want the following functions and I know about the client side domain restriction in javascript however I don't know if this restrictions applies to what I want the crawler to do.
Javascript to load the text content of a given website's url address to a div or assign it to a var.
the tags should then be parsed from the text.
3 the body of text should be searched for a specific word. If the word is found it should take the neighbouring sentence including the word and display it on the alert message.
I am writing a firefox application so everthing must be done on client side.
Upvotes: 2
Views: 889
Reputation: 48091
Best and easiest thing you can do is:
Upvotes: 1
Reputation: 887415
As you just said, you cannot use Javascript to retrieve arbitrary content from another domain.
However, you could write a server-side proxy in your own domain which forwards requests to arbitrary URLs and passes along the responses.
Upvotes: 3