Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: .HTA problems

  1. #1
    New Coder
    Join Date
    Feb 2003
    Location
    WV
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .HTA problems

    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?

  • #2
    New Coder
    Join Date
    Jul 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I understood you, but maybe you forget this;
    The HTA framesets doesn't work like the HTML framesets.So,you can't use

    Code:
    parent.frames[0].href = location;
    I think you can try this to instead of your code:
    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 !
    Do you know Hakki Ocal ?

  • #3
    New Coder
    Join Date
    Jul 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    And then,

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

    Please enter the subject -> by Code_gate

    Bye...
    Do you know Hakki Ocal ?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •