This is a discussion on "getting source code of a page" within the JavaScript Forum section. This forum, and the thread "getting source code of a page are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
getting source code of a page
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
getting source code of a page
Hi, this is my first post (but not last), thanks for reading.
Here's my problem: I want a site with two frames: the left one has a button, and the right one is an external site (eg: google.com). And I want (need) that when the button in the left frame gets clicked it saves the source code of the site in the right one. I need to get this source in a String or in a file or in some other way that I can manipulate it (I know I can't modify an external page, and that's not what I want) I did the following code, that works when the left frame is an internal file (ex: frame_02.htm), but does't work when I use http://google.com
how can I have the source code of a external site? anyone could post a solution? can be in Java, or other language thanks for reading best regards Last edited by mikedikta; Oct 11th, 2007 at 01:50. Reason: add code tag |
|
|
|
#2
|
||||
|
||||
|
Re: getting source code of a page
Hmmmm frames
You could try this
</body> </html> [/code]
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#3
|
|||
|
|||
|
Re: getting source code of a page
thanks, but it doesn't work, permission denied in getting HTMLDocument.getElementsByTagName
as I said, the page I want the source is external (like yahoo.com) |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Source Code Library | Monie | Webforumz Cafe | 11 | Mar 10th, 2008 04:09 |
| Can somebody give me the code to hide the source code? | renren | JavaScript Forum | 7 | Mar 7th, 2006 12:27 |
| Source Code Clean-up Wizard | jswebdev | PHP Forum | 3 | Feb 7th, 2006 00:56 |
| Viewing source code?? | autumn_whispers2me | Web Page Design | 4 | Feb 14th, 2005 17:40 |
| need help-source code | ayus_82 | ASP.NET Forum | 1 | Sep 20th, 2004 07:48 |