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?
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?