close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Javascript error

Thread began 3/21/2009 11:47 pm by bigmike3d | Last modified 3/24/2009 6:54 am by bigmike3d | 1276 views | 4 replies |

bigmike3d

Javascript error

I'm getting this error when trying to Add To Cart while using the Live View in DreamWeaver CS4.
"Microsoft VBScript compilation error '800a03f2'

Expected identifier

/FreshElSabor/WA_eCart/WA_eCart_Definition_VB.asp, line 81"

I have no idea what this means and can't find any answers. Can someone help me?

Sign in to reply to this post

Ray BorduinWebAssist

What code appears on that line of code referenced in the error? That is where you would start when debugging this problem.

Sign in to reply to this post

bigmike3d

re:Javascript Errror

Thank you for you response.
T
his is the function that the error refers to: Which is part of the WA_eCart_Definition_VB.asp.

"function WA_eCart_DisplayInfo(cartObj, ItemProperty)
retVal = ""
if (NOT WA_eCart_IsEmpty(cartObj) AND NOT WA_eCart_EOF(cartObj)) then
retVal = (eval("cartObj.Items(cartObj.DisplayIndex)." & ItemProperty))
end if
WA_eCart_DisplayInfo = retVal
end function"

Line 81 is "retVal = (eval("cartObj.Items(cartObj.DisplayIndex)." & ItemProperty))"

I've looked and I can't see a problem with this code. This happens when I click the Add To Cart Button. What is good is that the item is added to the shopping cart, but this error is stopping the shopping cart from coming up.

Sign in to reply to this post

Ray BorduinWebAssist

OK, this is in the DisplayInfo() method definition. Which means you have a bad DisplayInfo() reference on the page. Do you get the same error when browsing your page on your web server. You may have to go through the page to find the typo causing the problem in that method reference.

Sign in to reply to this post

bigmike3d

re: vbscript error solved.

Ok!! I finally found the error, based on your response I looked at the script related to the Display Info() routine and found that the Add Item Details To Database had an empty string where it shouldn't have. So I went back and found that the price field didn't have a value linked to it. I thank you for your response which gave me the clue I needed to figure it out.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...