druss
12-17-2003, 10:25 PM
i am getting no errors from the javascript however i still cannot use the html that is extracted by using then document.innerHTML method.
i have a page that decrypts a javascript encryption that i am using, so far i am able to decrypt and even write the output in another fram however i cannot get the html source code in an iframe one the same page as the decryption script. the page in the ifram is not a third party page.
so far this is where i think its going wrong:
var counter = document.frames['test'].document.innerHTML;
function decryptform() {
encryptedsource = decrypt(counter, "`", "78")
it works fine when on the page in the 'test' iframe has the following content
<script>window.top.decryptform('9834756383479')</script>
however then the main script page must be changed to the following:
function decryptform(counter) {
encryptedsource = decrypt(counter, "`", "78")
could someone please tell me where i am going wrong while trying to get the html from the page in the 'test' iframe and put it in the variable counter.
also the html in the iframe is a single line.
i am sorry that i cannot post the actual whole script but it is far too large.
Thanks
Goran
i have a page that decrypts a javascript encryption that i am using, so far i am able to decrypt and even write the output in another fram however i cannot get the html source code in an iframe one the same page as the decryption script. the page in the ifram is not a third party page.
so far this is where i think its going wrong:
var counter = document.frames['test'].document.innerHTML;
function decryptform() {
encryptedsource = decrypt(counter, "`", "78")
it works fine when on the page in the 'test' iframe has the following content
<script>window.top.decryptform('9834756383479')</script>
however then the main script page must be changed to the following:
function decryptform(counter) {
encryptedsource = decrypt(counter, "`", "78")
could someone please tell me where i am going wrong while trying to get the html from the page in the 'test' iframe and put it in the variable counter.
also the html in the iframe is a single line.
i am sorry that i cannot post the actual whole script but it is far too large.
Thanks
Goran