Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Recordset NavBar VBscript error

New Here ,
Apr 30, 2007 Apr 30, 2007
My application works. However, upon placing the Dreamweaver MX 2004 Recordset NavBar on the page I get the error below.
Any suggestions?

Microsoft VBScript compilation error '800a0401'
Expected end of statement
/sboard/index.asp, line 5
var objRS_total = objRS.RecordCount;
-----------------------------------^
TOPICS
Server side applications
662
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 30, 2007 Apr 30, 2007
I'd suggest that you rebuild the page. Looks like you've got VB Script and
Javascript mixed up.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004





Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 30, 2007 Apr 30, 2007
What's the code on line 5 of the page that's giving the error?

Mat
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 30, 2007 Apr 30, 2007
Check to see if you have an End If statement for every If statement before Line 5.

David Pearson
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 30, 2007 Apr 30, 2007
Once again, the app performs perfectly without the inclusion of the Dreamweaver Recordset NavBar application behavior. There is no instance of JavaScript in the code.

Line 5 (the first program line) references the database object: var objRS_total = objRS.RecordCount;

I have attempted to attach the code in its entirety, but when I do and 'Reply to topic', I receive an error message from this site that a page does not exist.

Thank you for your help.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 30, 2007 Apr 30, 2007
The code is attached.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 30, 2007 Apr 30, 2007
LATEST
This code:

var objRS_total = objRS.RecordCount;

is an instance of javascript. I'd suggest that you rebuild the page from
scratch.

--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004





Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 30, 2007 Apr 30, 2007
Attachment Failed.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines