Universal Form Validator ASP Support Product Page

Answered

Validator no longer working on several websites

Asked 15 Jul 2014 20:09:25
2
have this question
15 Jul 2014 20:09:25 karl hemmings posted:
This validator has been working fine for several months, and now it is not working on any of the websites that have it incorporated.

Here is a simple form I have just created as an example of the problem.
webzen.co.uk/1form.asp

All associated files have been uploaded to the server.

I am using the latest version of the extension.

Please visit the above page and click the submit button without completing the two fields. The page gives only the following error no matter what device the page is viewed from:

You did not pass the bot check. Please make sure you have javascript and cookies enabled.

Here is the code for the page:


<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="ScriptLibrary/dmxValidator.asp" -->
<
%Dim MM_editAction
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
  MM_editAction = MM_editAction & "?" & Server.HTMLEncode(Request.QueryString)
End If

' boolean to abort record edit
Dim MM_abortEdit
MM_abortEdit = false
%>
<
%' Universal Form Validator ASP 1.5.6
dim dmxval1, DMX_validateAction
set dmxval1 = new dmxValidator
dmxval1.ScriptFolder = "ScriptLibrary"
dmxval1.CSValidateOnChange = true
dmxval1.CSValidateOnSubmit = true
dmxval1.ReenableJavascript = true
dmxval1.UseBotCheck = true
dmxval1.ReportType = 4
dmxval1.ErrorFont =  "Arial"
dmxval1.ErrorFontSize = 12
dmxval1.ErrorColor = "#ffffff"
dmxval1.ErrorBgColor = "#ff0000"
dmxval1.ErrorBold = true
dmxval1.ErrorItalic = false
dmxval1.ErrorImage = ""
dmxval1.ErrorFixed = "Custom"
dmxval1.ErrorPadding = 4
dmxval1.BorderColor = "#FF0000"
dmxval1.CssErrorFile = "validatorError1"
dmxval1.ErrorPreset = "error_five.txt"
dmxval1.TooltipPosition = "top"
dmxval1.CssHintFile = "validatorHint1"
dmxval1.HintPreset = "blue.txt"
dmxval1.HintTooltipPosition = "top"
dmxval1.HintBorderColor = "#0099ff"
dmxval1.HintBorderStyle = "solid"
dmxval1.HintBgColor = "#003399"
dmxval1.HintTextColor = "#ffffff"
dmxval1.HintTextFont = "Arial"
dmxval1.HintTextSize = 12
dmxval1.HintTextBold = false
dmxval1.HintTextItalic = false
dmxval1.HintBoxWidth = 200
dmxval1.HintImage = ""
dmxval1.HintFixed = "Custom"
dmxval1.HintPadding = 4
dmxval1.UseCustomFocusClass = "fixed"
dmxval1.FocusBorderStyle = "groove"
dmxval1.FocusBorderSize = 2
dmxval1.FocusBorderColor = "#C3D9FF"
dmxval1.FocusBgColor = "#FFFFFF"
dmxval1.FocusTextColor = "#000000"
dmxval1.UseCustomValidClass = "fixed"
dmxval1.ValidBorderStyle = "groove"
dmxval1.ValidBorderSize = 2
dmxval1.ValidBorderColor = "#00FF00"
dmxval1.ValidBgColor = "#FFFFFF"
dmxval1.ValidTextColor = "#000000"
dmxval1.UseCustomInvalidClass = "fixed"
dmxval1.InvalidBorderStyle = "groove"
dmxval1.InvalidBorderSize = 2
dmxval1.InvalidBorderColor = "#FF0000"
dmxval1.InvalidBgColor = "#FFFFFF"
dmxval1.InvalidTextColor = "#000000"
dmxval1.AddRule "form1", "textfield", "allformats", ",,", "false", "please complete", "", "", ""
dmxval1.AddRule "form1", "textarea", "allformats", ",,", "false", "oi!!!!!!!!!!!!", "", "", ""
dmxval1.Validate
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link rel="stylesheet" href="Styles/dmxValidator/validatorHint1.css" type="text/css" />
<link rel="stylesheet" href="Styles/dmxValidator/validatorError1.css" type="text/css" />
<script type="text/javascript" src="ScriptLibrary/jsvat.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.inputHintBox.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.maskedinput-1.2.2.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.validate.min.js"></script>
<script type="text/javascript" src="ScriptLibrary/dmx.jquery.validate.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.tooltip.min.js"></script>
<script type="text/javascript" src="ScriptLibrary/jquery.hoverIntent.min.js"></script>
<% 
' dmxValidatorJSStart
dmxval1.GenerateJavascriptAndCss
' dmxValidatorJSEnd
%>
</head>

<body>
<form id="form1" name="form1" method="post" action="<%=DMX_validateAction%>">
  <table width="90%" border="0" cellspacing="1" cellpadding="1">
    <tr>
      <td><label for="textfield"></label>
        <input name="textfield" type="text" id="textfield" value="<%= dmxSetValue("", FormRequest("textfield")) %>" />
        <%= dmxval1.GenerateError("form1","textfield","allformats",",,") %></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><label for="textarea"></label>
        <textarea name="textarea" id="textarea" cols="45" rows="5"><%= dmxSetValue("", FormRequest("textarea")) %></textarea>
        <%= dmxval1.GenerateError("form1","textarea","allformats",",,") %></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td><input type="submit" name="button" id="button" value="Submit" /></td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
  <% dmxval1.ShowBotCheckError() %>
</form>
</body>
</html>


Any advice ?

Replies

Replied 16 Jul 2014 08:24:09
16 Jul 2014 08:24:09 karl hemmings replied:
I have received great tech support and have resolved this issue as follows:

Firstly, I needed to check for two jQuery instances and conflicts
and if jquery is of version higher than 1.8
Then used: github.com/jquery/jquery-migrate/

Thanks again for all of your help!
Replied 03 Apr 2015 04:14:13
03 Apr 2015 04:14:13 Fred Muchmore replied:
I have the same problem, Validator no longer working on several websites
I created a form, added the form mailer and Captura to it and all was working great.

Then I updated my template for text and images, uploaded the images and bang, got this error message: "You did not pass the bot check. Please make sure you have javascript and cookies enabled."

Any Idea what could have happened here?

Reply to this topic