I've been staring at this for a few hours and I am going mad. I am getting an error in Internet Explorer saying that there is a Syntax Error at Line: 52, Char: 34, but there is only 32 characters in the line. The offending line and lines around it are (I have added line numbers for clarity):
47 <html>
48
49 <head>
50 <script language = "JavaScript">
51
52 function frmShiftInfo_onsubmit()
53 {
54 alert("in frmShiftInfo");
55 var form = document.frmShiftInfo;
I had added line 54 in to see it was reaching the function; it wasn't. I am using this to call it:
<form action="UpdateHead.asp" method="post" name="frmShiftInfo" onsubmit="return frmShiftInfo_onsubmit()">
It had been working and I am unsure what has changed. On the same page is an onchange function, it is no longer working. The odd thing is that other page's javascript functions work with very similar code, so I am perplexed.
Any ideas?
Thanks,
Mark.



Reply With Quote




Bookmarks