|
There is some error in this code, it gets all messed up in dreamweaver, the code coloration, from this point ot and down its all blue code..
any one know why and can i fix this code.. its from file: forum_posts.asp and from WWF version 7.01
<script language="JavaScript">
function CheckForm() {
var errorMsg = ""; <% 'If this is a guest posting check that they have entered their name If blnPost And lngLoggedInUserID = 2 Then %> //Check for a name if (document.frmAddMessage.Gname.value==""){ errorMsg += "\n\t<% = strTxtNoNameError %>"; } <% End If
%> //Check for message if (document.frmAddMessage.message.value==""){ errorMsg += "\n\t<% = strTxtNoMessageError %>"; }
//If there is aproblem with the form then display an error if (errorMsg != ""){ msg = "<% = strTxtErrorDisplayLine %>\n\n"; msg += "<% = strTxtErrorDisplayLine1 %>\n"; msg += "<% = strTxtErrorDisplayLine2 %>\n"; msg += "<% = strTxtErrorDisplayLine %>\n\n"; msg += "<% = strTxtErrorDisplayLine3 %>\n";
errorMsg += alert(msg + errorMsg + "\n\n"); return false; }
//Reset the submition action document.frmAddMessage.action = "post_message.asp?PN=<% = Request.QueryString("PN") %>" document.frmAddMessage.target = "_self"; <% If IEWin() AND blnIEEditor AND blnWYSIWYGEditor Then Response.Write(vbCrLf & " frmAddMessage.Submit.disabled=true;") %> return true; } </script>
Thanks a lor dudes :) (sorry cant update to new version of the forum, as we have modefied our version to much to work whit our site..)
|