I wrote onLoad method in body tag of the html. it’s not calling the onload method. is any reason?? I testing like this onLoad=”alert(‘hi’)” it’s working but the following method is not working.
@svidgenJan 15.2010 — #It's probably this line here: [code=html] var type = ;[/code]
This is the type of thing you'd probably be able to hone in on using your browser's javascript error-log and trying to run the method code independently of the [B]onLoad()[/B] event. Are you familiar with finding the javascript error-log with your current browser?
@FangJan 15.2010 — #and this (corrected) var popWin = window.open('ozPpolApptChangeStartTime.jsp?apt=RptAppt&apptId=293&rptId=818&date=01/14/2010','PpolApptLov','left=100,top=60,width=640,height=300,scrollbars=yes,resizable=yes');
@AdusumalliauthorJan 15.2010 — #I am trying to call this method. is anything wrong in this method .
<i> </i> function screenOnload() { alert('hello>>'); var type = '<&#37;=recur%>'; alert('type>>'+type); if ( type == 'rptAppt') { <br/> alert('hi>>'); var popWin = window.open('ozPpolApptChangeStartTime.jsp?apt=RptAppt&apptId='+<%=id%>'&rptId='+<%=repeateid%>'&date='+<%=date%>'','PpolApptLov','left=100,top=60,width=640,height=300,scrollbars=yes,resizable=yes'); popWin.opener = self; popWin.focus(); } }