adam84 Posted July 6, 2007 Share Posted July 6, 2007 is there any way of loading the code say from 'http://en.wikipedia.org/wiki/cats', into a javascript variable so i am able to look through the code? Quote Link to comment https://forums.phpfreaks.com/topic/58750-loading-a-page-into-a-variable/ Share on other sites More sharing options...
RichardRotterdam Posted July 7, 2007 Share Posted July 7, 2007 you could use a iframe or frame to put a site in it and then read the iframe on the mainpage with javascript Quote Link to comment https://forums.phpfreaks.com/topic/58750-loading-a-page-into-a-variable/#findComment-291869 Share on other sites More sharing options...
nogray Posted July 9, 2007 Share Posted July 9, 2007 You only can read pages from the same domain for security reasons. If you want to capture the code, you'll need to make a server side script (like PHP or ASP) that will grap the site content and display it on your domain. Quote Link to comment https://forums.phpfreaks.com/topic/58750-loading-a-page-into-a-variable/#findComment-293875 Share on other sites More sharing options...
mainewoods Posted July 11, 2007 Share Posted July 11, 2007 the best way to look through code: Use the dom inspector, css inspector, and the other programmer facilities of the FireFox browser! Quote Link to comment https://forums.phpfreaks.com/topic/58750-loading-a-page-into-a-variable/#findComment-294951 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.