[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

01/30/2006 at 08:46PM PST, ID: 21716544
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

Child window onLoad firing early?

Asked by baal32 in Miscellaneous Web Development

Tags: onload, child, window

I'm trying to write to a child window launched with window.open but even when using the onLoad event on the child it appears that the event is firing before the dom is fully loaded.

calling page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Test me</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript" src="/js/popwindow.js" type="text/javascript"></script>
</head>

<body>
<a href='javascript: popevent("event title","event description",300,300)'>Email me</a></body>
</html>




popwindow.js
function firit(et,ed)
{
      popwin.document.getElementById('e_title').innerHTML = et+ " "+ed;
}
function popevent(eventtitle,eventdesc,wid,hei)
{
      popwin = window.open('/tools/blank.htm','eventwin','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width=400,height=400,left=200, top=150,screenX=200,screenY=150');
      popwin.onLoad=firit(eventtitle,eventdesc);
}



blank.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Event Viewer</title>
</head>
<body>
<div class="popupEventTitle s29" id="e_title"></div>
</body>
</html>




When I click the link on the calling page the child page opens but instead of getting "event title event description" written into it I get an error (popwin.document.getElementById('e_title') is null or not an object)

BUT if I place an alert in the firit function as teh first line it seems to buy the child page enough time to load such that the information IS written into the e_title div.

It seems like popwin.onLoad is firing prior to the child page being loaded...
[+][-]01/30/06 09:36 PM, ID: 15830936

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/30/06 11:21 PM, ID: 15831234

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/31/06 12:27 AM, ID: 15831494

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/31/06 08:36 AM, ID: 15835032

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/31/06 07:27 PM, ID: 15840121

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01/31/06 09:22 PM, ID: 15840711

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01/31/06 10:55 PM, ID: 15841022

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02/01/06 11:26 PM, ID: 15851001

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Miscellaneous Web Development
Tags: onload, child, window
Sign Up Now!
Solution Provided By: baal32
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02/02/06 11:39 PM, ID: 15860787

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]02/09/06 02:21 PM, ID: 15917384

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91