Print Page | Close Window

forum_posts.asp code problem

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=11935
Printed Date: 09 April 2026 at 2:54am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: forum_posts.asp code problem
Posted By: BrownGhost
Subject: forum_posts.asp code problem
Date Posted: 24 September 2004 at 2:27pm

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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net