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
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Houston, TX
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    (javascript) Keep checking for a element before proceeding.

    from a hidden frame I am loading a page that has quite a few input boxes and directly after that I am location.href'ing a page into that hidden frame that will outerHTML some values to some of the inputs just added. Theoreticly it works The problem I am having is that my computer or internet connection is too fast and the inputs are not there in time. I wrote a function that I thought would work but it didn't.
    Code:
    function loadPropertyInfoPage(){
    	if (!parent.frames[2].document.all.HotelID){
    		parent.frames[2].location.href = "propertyinfo.asp";
    		setTimeout("loadPropertyInfoPage()",1000); 
    	} 		
    }
    //-->
    </SCRIPT>
    </head>
    <body>
    <script>
    loadPropertyInfoPage();
    .then do outerHTMLs
    </script>
    any suggestions?
    Thanks
    Michael

  • #2
    New Coder
    Join Date
    Jul 2002
    Location
    Houston, TX
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It seems to be working but if anyone has a better way I'm all ears
    Michael

  • #3
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    use the onload event of the hidden frame, to execute the function? just a thought.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.


  •  

    Posting Permissions

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