Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Source Code Parser via URL?

Status
Not open for further replies.

Daemn

Programmer
Sep 23, 2007
1
CA
Can JS parse source code from any URL specified?

Would I be able to put that html code returned into a string?

It doesn't matter if I have to load the website to an iframe first.

Thanks much in advance!
 
I don't think that's possible for a generic URL for security reasons loading it on an iframe. I think you can do that if the page is in the same domain.

But you could do an xmlhttp call to retrieve the contents of a URL

Cheers,
Dian
 
Please elaborate on your question. I am sorry I do not thoroughly understand.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top