codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  problem in onload method in javascript  mishra.amit@hcl.in at 14:03 on Wednesday, August 23, 2006
 

Hi,
I am very new to javascript. Problem is when Jsp load first time onload method is called,but whenever I click on a button on that jsp page onload method is called again .Part of code below here..





function loadNewErrorValues(){
<%for(int i=0;i<objMenuForm.arrMemberOfLibraries.size()-1;i++){%>
<%for(int j=0;j<((java.util.ArrayList)objMenuForm.arrTotalNoOfXlsSheet.get(i)).size();j++){
String strT="id_spread"+String.valueOf(i)+String.valueOf(j);%>
document.getElementById('<%=strT%>').disabled=true;

<%}
}%>
}

<body bgcolor="#E6F4FD" leftmargin="1" topmargin="0" marginwidth="0" marginheight="0" onLoad="loadNewErrorValues();">


<table>
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
<tr>
<td> <dmf:button nlsid='MSG_START' id="id_Start" height='16' imagefolder="images/titlebar1" cssclass="wkButtonLink1" onclick ='onClickStart' /></td>
</tr>
</table>





It does not go for 'onClickStart' .
Thanx in advance..






Useful Links



CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• Run a program both on windows and linux
• VERO.SurfCAM.v2014
• Schlumberger.Petrel.V2013.2
• Petrel.V2013.2
• Altair.HyperWorks.v12
• VoluMill.v6.1
• VoluMill.NEXION.6
• VERO.SurfCAM.v2014
• Schlumberger.Petrel.V2013.2


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2014