[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.

12/10/2007 at 09:34AM PST, ID: 23013522
[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!

7.4

what could prevent a function from working on load

Asked by Gemini532 in JavaScript, Active Server Pages (ASP), Web Languages/Standards

Tags: onload

Hello Everyone, I have several functions that should work onload and I call them from the main function but suddenly it stopped working, so to test it I added an alert("angie"); in the main function adn THIS DOES NOT WORK... so I'm wandering what could prevent a function from workign on load

Can you help me?

I cannot imagine why this suddenly stopped working... it worked on thursday...
Now this is a 15 page application based on a library,  there's so much code, but still whatever is wrong has to be in this particular page...

Any ideas?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
<form id="OPICForm" name="OPICForm" method="post">
 
<script language="JavaScript" type="text/JavaScript">
 
var bComplete = true;
window.onload = main;
 
function main(){
//page7
	alert("angie");
	alert(document.OPICForm.ProvideTraining.value);
	ProvideTrainingOptions();
}
 
function ProvideTrainingOptions(){
 
	if(document.OPICForm.ProvideTraining.value == "Yes"){	
		document.getElementById("ProvideTrainingOption1").style.display='';
	} else {
		document.getElementById("ProvideTrainingOption1").style.display='none';	
	}
}
</script>
 
<table class="content">
	<TR>		
      <TD colspan="3" class="heading" > 2. Training Outside of Country </TD>
	</TR>
	<TR>
		<TD class="number"></TD>
		<TD class="question">Will the project provide training outside of the host country?</TD>
		<TD class="response"><% DisplayYN(bProvideTraining) %></TD>
	</TR>
	<input name="ProvideTraining" type="hidden" value="<% DisplayYN(bProvideTraining) %>" />
	
	<TR name="ProvideTrainingOption1" id="ProvideTrainingOption1" style="display:none;">
		<TD class="number">&nbsp;</TD>
		<TD class="question indent1">If <b>Yes</b>, please indicate countries where training will take place:</TD>
		<TD class="response"><%=sProvideTrainingCountries%></TD>
	</TR>
</table><br>
 
<%
function DisplayYN(bVal)
	if bVal = 1 then
		Response.Write("Yes")
	elseif bVal = 2 then
		Response.Write("No")
	else     '<-------------the else option will display as blank if the question's not answered
		Response.Write("")
	end if
end function
 
%>
[+][-]12/10/07 09:39 AM, ID: 20443426

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.

 
[+][-]12/10/07 09:40 AM, ID: 20443442

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.

 
[+][-]12/10/07 09:54 AM, ID: 20443561

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.

 
[+][-]12/10/07 09:56 AM, ID: 20443576

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.

 
[+][-]12/10/07 09:56 AM, ID: 20443581

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.

 
[+][-]12/10/07 09:57 AM, ID: 20443587

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.

 
[+][-]12/10/07 09:59 AM, ID: 20443614

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.

 
[+][-]12/10/07 10:01 AM, ID: 20443644

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.

 
[+][-]12/10/07 10:02 AM, ID: 20443649

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.

 
[+][-]12/10/07 10:05 AM, ID: 20443668

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.

 
[+][-]12/10/07 10:27 AM, ID: 20443838

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.

 
[+][-]12/10/07 10:36 AM, ID: 20443927

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

Zones: JavaScript, Active Server Pages (ASP), Web Languages/Standards
Tags: onload
Sign Up Now!
Solution Provided By: sinoj
Participating Experts: 5
Solution Grade: A
 
 
[+][-]12/10/07 10:52 AM, ID: 20444045

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.

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