...

.HTA problems

Code_gate
02-10-2003, 03:20 PM
I am hoping that maybe someone familiar with HTA applications will be able to answer my question. I had originally posted this in the Javascript programming section and I was able to get help with the javascript portion, but here is the problem I am experiencing now:

I used the following bit of javascript in my app.

var location=("http://" + theURL);
parent.frames[0].href = location;

The above works perfectly when I save and test the file as HTML. However, upon saving it as an .HTA file I receive the error message "parent.frames.0.location is null ir not an object" (however, in the code it was typed as parent.frames[0].location.href).

It is really imperative that this be saved as an HTA file, but I can't figure out how to get by this obstacle. Any ideas?

MUBNET
02-13-2003, 05:49 PM
I understood you, but maybe you forget this;
The HTA framesets doesn't work like the HTML framesets.So,you can't use


parent.frames[0].href = location;


I think you can try this to instead of your code:

var location = ("http://" + theURL);
document.yourObjectsname.location.href = location;


Maybe your problem can solve.And if you tell me what you wanna to do, I can more help you.

Good luck ! :thumbsup:

MUBNET
02-13-2003, 05:52 PM
And then,

my e-mail adress is: mahiruskan@yahoo.com

Please enter the subject -> by Code_gate

Bye...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum