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








CodeToad Experts

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








Recent Forum Threads
• SoftIce Driver Suite 3.0.1
• metrowerks codewarrior 9.0
• Mapinfo.Professional.v7.0
• GardenGraphics DynaSCAPE Professional 3.02
• Embroidery Great Notions 2004 part01-74
• EFI_BEST_COLORPROOF_V5.0
• AViD.SOFTiMAGE.XSi.V4.2.CD1-NNiSO
• AUTOFX.PHOTOGRAPHIC.EDGES.6.0.CD1
• 0 STI.SASSPro.v2.0.0.2 working full


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