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
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to