Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - forum_posts.asp code problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

forum_posts.asp code problem

 Post Reply Post Reply
Author
BrownGhost View Drop Down
Groupie
Groupie


Joined: 26 November 2002
Status: Offline
Points: 193
Post Options Post Options   Thanks (0) Thanks(0)   Quote BrownGhost Quote  Post ReplyReply Direct Link To This Post Topic: forum_posts.asp code problem
    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..)

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.