Universal Form Validator ASP Support Product Page

This topic was archived

Error message 800a03ee - Expected ')' IE8 and FF

Reported 14 Sep 2009 16:09:41
1
has this problem
14 Sep 2009 16:09:41 Graham Southgate posted:
Hi,

I get the following error message when trying to use Universal Validator in a page.

Microsoft VBScript compilation error '800a03ee'

Expected ')'

/BookTicketsLogin.asp, line 558

Response.Write(dmxSetSelectOption("<%=(rsTitles.Fields.Item("Title".Value))
-------------------------------------------------------------^

The message is when the page tries to compile a dynamic combo box. It worked fine before the Universal Validator was installed.

I just added the server behaviour and choose the fields and saved the file - no manual changes to the page at all once the script had run.

The pre code was:

<select name="Title" class="Input_box" id="Title">
<option value=""></option>
<
%While (NOT rsTitles.EOF)
%>
<option value="<%=(rsTitles.Fields.Item("Title").Value)%>"><%=(rsTitles.Fields.Item("Title").Value)%></option>
                                      <
%  rsTitles.MoveNext()
Wend
If (rsTitles.CursorType > 0) Then
  rsTitles.MoveFirst
Else
  rsTitles.Requery
End If
%>
</select>

The post validation code is:
<select name="Title" class="Input_box" id="Title">
<option value=""></option>
<
%While (NOT rsTitles.EOF)
%>
 <option <%= dmxSetSelectOption("<%=(rsTitles.Fields.Item("Title").Value)%>",FormRequest("Title"),false) %> value="<%=(rsTitles.Fields.Item("Title").Value)%>"><%=(rsTitles.Fields.Item("Title").Value)%></option>
<
%  rsTitles.MoveNext()
Wend
If (rsTitles.CursorType > 0) Then
  rsTitles.MoveFirst
Else
  rsTitles.Requery
End If
%>
 </select>



Thanks

Graham

Replies

Replied 17 Sep 2009 22:07:54
17 Sep 2009 22:07:54 Patrick Julicher replied:
Hi Graham,

Could you also post the page code after applying the extension? I'd like to compare these two.

Kind regards, Patrick
Replied 18 Sep 2009 14:13:43
18 Sep 2009 14:13:43 Graham Southgate replied:
Hi Patrick,

The code generated is:

<select name="Title" class="Input_box" id="Title">
<option value=""></option>
<%
While (NOT rsTitles.EOF)
%>
<option <%= dmxSetSelectOption("<%=(rsTitles.Fields.Item("Title".Value)%>",FormRequest("Title",false) %> value="<%=(rsTitles.Fields.Item("Title".Value)%>"><%=(rsTitles.Fields.Item("Title".Value)%></option>
<%
rsTitles.MoveNext()
Wend
If (rsTitles.CursorType > 0) Then
rsTitles.MoveFirst
Else
rsTitles.Requery
End If
%>
</select>
<% dmxval1.GenerateError "RegisterForm","Title","allformats",",," %>

Hope this is enough to work out what is going on. I would really like to get this page working asap.

Thanks

Graham
Replied 18 Sep 2009 17:15:28
18 Sep 2009 17:15:28 Patrick Julicher replied:
Hi Graham,

It looks like something is going wrong with the dynamic values. Your code looks like this:

<option <%= dmxSetSelectOption("<%=(rsTitles.Fields.Item("Title".Value)%>",FormRequest("Title",false) %> value="<%=(rsTitles.Fields.Item("Title".Value)%>"><%=(rsTitles.Fields.Item("Title".Value)%></option>


As you can see there are at least two times the <%= behind one another. This is causing the problem.
At the moment I have no way of testing, but I will look into this first thing on Monday.

Kind regards, Patrick
Replied 18 Sep 2009 17:23:34
18 Sep 2009 17:23:34 Graham Southgate replied:
Thanks

I am using Dreamweaver CS4.

Thanks.
Replied 18 Sep 2009 19:49:00
18 Sep 2009 19:49:00 Patrick Julicher replied:
Hi Graham,

Could you please try to edit the code for the list/menu like this:

<option <%= dmxSetSelectOption((rsTitles.Fields.Item("Title").Value),FormRequest("Title"),false) %> value="<%=(rsTitles.Fields.Item("Title").Value)%>"><%=(rsTitles.Fields.Item("Title").Value)%></option>


Upload the page and try to open it.

Kind regards, Patrick
Replied 24 Sep 2009 00:55:42
24 Sep 2009 00:55:42 Graham Southgate replied:
Hi Patrick,

Sorry for the delay in replying - life gets in the way.

Changed the code for the new code. That dropdown now works perfectly. I am assuming that if I try to validate the other dropdown box on the page it will again fail.

Thanks

Graham
Replied 24 Sep 2009 08:01:45
24 Sep 2009 08:01:45 Patrick Julicher replied:
Hi Graham,

Please give that a try and let me know what happens. Also check if the code for the first dropdown stays ok. This seems to be a bug when using dynamic content. I will report this to the Support and Development Team.

Kind regards, Patrick
Replied 25 Sep 2009 13:22:42
25 Sep 2009 13:22:42 Graham Southgate replied:
OK,

That page now allows me to change any validation on the page -

I haven't tried removing the validation on the title field and readding it but I have added validation to another dropdown and other fieldsand it works fine - so I have two validating dropdowns on one form.

So that seems to have fixed that page. However, each time I save an ammended page, I get a dialog box that pops up with the following content.

"The file Error: File ‘validatorTooltips.css’ could not be copied! Has been copied to the “ScriptLibrary” folder in your site root. Please make sure it is uploaded to your live server."

If I search for "val*.css" on my local machine I do not find that file anywhere. I have unistalled the extension and reinstalled it but I still get the same message.

In the directory C:\Users\Graham\AppData\Roaming\Adobe\Dreamweaver CS4\en_US\Configuration\Shared\DMXzone\DMXVAL I have some css but no the missing file. Don't know if that is the correct location.

Also when I look at the form and submit the form, the field tip box is shown, but the styling is incorrect - can't read the text. I assume that this is to do with the ToolTips.css file that appears to be missing.

Thanks

Graham
Replied 25 Sep 2009 21:15:31
25 Sep 2009 21:15:31 Patrick Julicher replied:
Hi Graham,

I'm experiencing exactly the same while testing, so I have consulted the Development Team and will get back to you as soon as I have more information.

Kind regards, Patrick

Replied 04 Oct 2009 18:13:26
04 Oct 2009 18:13:26 Patrick Julicher replied:
Hi Graham,

Please check your e-mail.

Kind regards, Patrick
Replied 09 Oct 2009 22:11:25
09 Oct 2009 22:11:25 Patrick Julicher replied:
Hi Graham,

Just wanted to know if you are still experiencing this issue.

Kind regards, Patrick
Replied 21 Nov 2009 15:53:24
21 Nov 2009 15:53:24 Nicholas Maloney replied:
Using the latest version I also find I cannotuse the new form validator as it cteates thgis error in every existing form I have. Also the CSS styling does not work. Tool tips are unreadable.
Replied 21 Nov 2009 22:14:18
21 Nov 2009 22:14:18 Patrick Julicher replied:
Hi Nick,

Please check your e-mail.

Kind regards, Patrick

Reply to this topic