Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-25-2002, 03:50 PM   PM User | #1
msimmons
New Coder

 
Join Date: Jul 2002
Location: Houston, TX
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
msimmons is an unknown quantity at this point
(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
msimmons is offline   Reply With Quote
Old 07-25-2002, 04:09 PM   PM User | #2
msimmons
New Coder

 
Join Date: Jul 2002
Location: Houston, TX
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
msimmons is an unknown quantity at this point
It seems to be working but if anyone has a better way I'm all ears
Michael
msimmons is offline   Reply With Quote
Old 07-26-2002, 01:36 AM   PM User | #3
joh6nn
wei wu wei


 
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
joh6nn is an unknown quantity at this point
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.
joh6nn is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:05 PM.


Advertisement
Log in to turn off these ads.