wed_hacker
02-18-2003, 10:18 AM
Can JavaScript read page content (html source) ? Please help...:confused:
|
Click to See Complete Forum and Search --> : read document html source using javascript wed_hacker 02-18-2003, 10:18 AM Can JavaScript read page content (html source) ? Please help...:confused: khalidali63 02-18-2003, 10:45 AM The way your questionis structured it seesm like you want to pass a url to a javascript function and then spit out the html of the page. You can not do the above witht JavaScript. Khalid wed_hacker 02-18-2003, 10:58 AM I was using a perl cgi to do the http request, but the target site was denied to do so. When I requested from the browser, it displayed nicely, that's why I was think if I can use javascript in a hidden frame and do a source read using javascript... but thanks Khalid khalidali63 02-18-2003, 12:05 PM When you try to get a html page using an http request programmaticaly rather using a browser,in this case you will have to set a HTTP property "user-agent" to a browsers http equilant name. Khalid webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |