Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get html's original source code

27 views
Skip to first unread message

philippe

unread,
Nov 21, 2007, 9:55:55 AM11/21/07
to
Hi

I wrote a gecko embedded browser.

I load the following page
______________________________
|<html> |
|<body> |
|<script> |
| document.write('TEST'); |
|</script> |
|</body> |
|</html> |
|______________________________|

I want to get the original code of the page (like this one, not with
the script executed).

I tried to get it into onStateChange of the nsIWebProgressListener
interface's implementation

with

(nsIWebNavigation)->GetDocument(getter_AddRefs(myDomDoc));


But everytime I get the page with the script executed and not the
original page.

_______________________________
|<html> |
|<body> |
|<script> |
| document.write('TEST'); |
|</script>TEST |
|</body> |
|</html> |
|______________________________|

how can I get the original page ?

Thanks a lot for your responses

philippe

long...@gmail.com

unread,
Nov 29, 2007, 11:30:40 AM11/29/07
to
> how can I get the original page ?

Turn javascript off.

Robert.

0 new messages