Universal Form Validator ASP Support Product Page

This topic was archived

validatorAjax//dmxValidatorAjax3.asp does not exist

Reported 01 Dec 2009 22:09:47
1
has this problem
01 Dec 2009 22:09:47 Michael Hogan posted:
I'm not sure why the extra / is in the path, but it's screwing up my page. A search through the page code shows all paths looking correct for that asp file. and the file itself does indeed exist (not with the double //, of course).

Replies

Replied 01 Dec 2009 22:28:58
01 Dec 2009 22:28:58 Patrick Julicher replied:
Hi Michael,

Please explain in more detail how you have setup UFV in order to reproduce this issue.

Kind regards, Patrick
Replied 01 Dec 2009 23:40:09
01 Dec 2009 23:40:09 Michael Hogan replied:
It's my first. It's a simple unsubscribe form. I created a new ASP/vbscript page in DW and added a field and button. I set the default field value to a request variable and the form action to insert the field value into a SQL table. I uploaded and tested the form.

I then added UFV through "Server Behaviors" and set validation rules for the single field on the form. I added two - email, and does NOT exist in database of UNsubscribers. I uploaded the file to the server and tested it, and the SUBMIT button did not work.

Then I re-opened the UFV dialog and got the validatorAjax//dmxValidatorAjax1.asp does not exist error (with the two slashes instead of one).

The Unsubscribers table has only one field.

Let me know if you need more info. The form is at: www.condoconduit.com/CondoApp/NewsletterUnsubscribeUFV.asp?email=
Replied 02 Dec 2009 11:10:20
02 Dec 2009 11:10:20 Patrick Julicher replied:
Hi Michael,

Please post the complete source code of your test page.

Kind regards, Patrick
Replied 02 Dec 2009 16:01:40
02 Dec 2009 16:01:40 Michael Hogan replied:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Connections/CondoConduit_Data.asp" -->
<!--#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.1
dim dmxval1, DMX_validateAction
set dmxval1 = new dmxValidator
dmxval1.ScriptFolder = "ScriptLibrary"
dmxval1.CSValidateOnChange = true
dmxval1.CSValidateOnSubmit = true
dmxval1.UseBotCheck = true
dmxval1.ReportType = 4
dmxval1.ErrorFont =  "Arial"
dmxval1.ErrorFontSize = 12
dmxval1.ErrorColor = "#ffffff"
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 = "solid"
dmxval1.FocusBorderSize = 1
dmxval1.FocusBorderColor = "#C3D9FF"
dmxval1.FocusBgColor = "#FFFFFF"
dmxval1.FocusTextColor = "#000000"
dmxval1.UseCustomValidClass = "fixed"
dmxval1.ValidBorderStyle = "solid"
dmxval1.ValidBorderSize = 1
dmxval1.ValidBorderColor = "#00FF00"
dmxval1.ValidBgColor = "#FFFFFF"
dmxval1.ValidTextColor = "#000000"
dmxval1.UseCustomInvalidClass = "fixed"
dmxval1.InvalidBorderStyle = "solid"
dmxval1.InvalidBorderSize = 2
dmxval1.InvalidBorderColor = "#FF0000"
dmxval1.InvalidBgColor = "#FFFFFF"
dmxval1.InvalidTextColor = "#000000"
dmxval1.AddRule "form1", "Email", "emailcond", ",,", "true", "", "", "", ""
dmxval1.AddRule "form1", "Email", "ajaxexistscond", "validatorAjax/dmxValidatorAjax1.asp,,", "true", "", "", "", ""
dmxval1.Validate
%>
<
%If (CStr(Request("MM_insert")) = "form1") Then
  If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd

    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_CondoConduit_Data_STRING
    MM_editCmd.CommandText = "INSERT INTO dbo.NewsletterUnsubscribeList (useremail) VALUES (?)" 
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 201, 1, 40, Request.Form("Email")) ' adLongVarChar
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    ' append the query string to the redirect URL
    Dim MM_editRedirectUrl
    MM_editRedirectUrl = "NewsletterUnsubscribed.html"
    If (Request.QueryString <> "") Then
      If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0) Then
        MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
      Else
        MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
      End If
    End If
    Response.Redirect(MM_editRedirectUrl)
  End If
End If
%>
<!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>Unsubscribe</title>
<link href="CondoMaster.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body,td,th {
	font-family: Verdana, Geneva, sans-serif;
}
-->
</style>
<link rel="stylesheet" href="Styles/dmxValidator/validatorHint1.css" type="text/css" />
<link rel="stylesheet" href="Styles/dmxValidator/validatorError1.css" type="text/css" />
<script src="ScriptLibrary/jsvat.js" type="text/javascript"></script>
<script src="ScriptLibrary/jquery-latest.pack.js" type="text/javascript"></script>
<script src="ScriptLibrary/jquery.inputHintBox.js" type="text/javascript"></script>
<script src="ScriptLibrary/jquery.maskedinput-1.2.2.js" type="text/javascript"></script>
<script src="ScriptLibrary/jquery.validate.min.js" type="text/javascript"></script>
<script src="ScriptLibrary/dmx.jquery.validate.js" type="text/javascript"></script>
<script src="ScriptLibrary/jquery.tooltip.min.js" type="text/javascript"></script>
<script src="ScriptLibrary/jquery.hoverIntent.min.js" type="text/javascript"></script>
<% 
' dmxValidatorJSStart
dmxval1.GenerateJavascriptAndCss
' dmxValidatorJSEnd
%>
</head>

<body>
<p>[img]Images/cclogo1.gif" width="256" height="100" alt="Logo" longdesc="http://www.CondoConduit.com" /></p>
<form id="form1" name="form1" method="POST" action="<%=MM_editAction%>">
Email address to unsubscribe from the CondoConduit Newsletter:
  <input name="Email" type="text" id="Email" value="<%= dmxSetValue( Request("email") , FormRequest("Email")) %>" />
  <% dmxval1.GenerateError "form1","Email","ajaxexistscond","validatorAjax/dmxValidatorAjax1.asp,," %>
  <% dmxval1.GenerateError "form1","Email","emailcond",",," %>
  <input type="submit" name="Submit" id="Submit" value="Unsubscribe" />
  <input type="hidden" name="MM_insert" value="form1" />
  <% dmxval1.ShowBotCheckError() %>
</form>
<p>Click the 'Unsubscribe' button to remove your email address from the CondoConduit Newsletter mailing list.</p>
</body>
</html>

Replied 03 Dec 2009 13:38:00
03 Dec 2009 13:38:00 Patrick Julicher replied:
Hi Michael,

Please make sure you have uploaded all the necessary files for the Validator to work. We are getting a couple of errors when testing your page. Start by uploading your complete ScriptLibrary and Styles folders.

Kind regards, Patrick
Replied 03 Dec 2009 16:52:25
03 Dec 2009 16:52:25 Michael Hogan replied:
Done. The page now displays, but the button does not fire, and I still get the "//" problem in DW when trying to edit the extension on the page. Let me know what you discover.

Edited by - Michael Hogan on 03 Dec 2009  16:59:02
Replied 04 Dec 2009 10:17:04
04 Dec 2009 10:17:04 Miroslav Zografski replied:
Hello Michael,

Please, make sure you have a web.config file in your site root -> validatorAjax folder and the following is in it:


  <configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration> 



This will show exact error that appears in dmxAjaxValidatiorAjax1.asp.
As far as I know double slashes in the Path are being interpreted as one so that is not your problem. I can see an Server Error 500 that comes from this file. But since you have a custom error messages I cannot tell what exactly gone wrong. So please, create a web.config file and place it in the validatorAjax folder in your Site root.

Regards,

Reply to this topic