Admin interface Javascript errors after 7.0.7 upgrade

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
efficiondave
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Tue Dec 02, 2008 10:20 am
Location: St. Louis Missouri
Contact:

Admin interface Javascript errors after 7.0.7 upgrade

Post by efficiondave » Thu Aug 16, 2012 2:00 pm

I'm getting Javascript errors for the ComponentArt components on the admin interface whenever I try to do things link change tabs on the Dashboard page. The tabs change in highlighting but the corresponding content doesn't change.

In the FireFox error console, I see errors like this:
Timestamp: 8/16/2012 1:33:54 PM
Error: ReferenceError: MainContent_wpm_gwpSalesOverTime2_SalesOverTime2_MultiPage1 is not defined
Source File: https://www.makaboo.com/ScriptResource. ... t=230eb157
Line: 1

Everything works fine on the dev site and it seems all the relevant files match between the two sites.

Any ideas on what might be causing this?

User avatar
efficiondave
Commander (CMDR)
Commander (CMDR)
Posts: 151
Joined: Tue Dec 02, 2008 10:20 am
Location: St. Louis Missouri
Contact:

Re: Admin interface Javascript errors after 7.0.7 upgrade

Post by efficiondave » Thu Aug 16, 2012 5:28 pm

I dug into this further and noticed that on my dev site, all of the .NET controls were getting prefixed with "ctl100_" but on the live site, they weren't. I search for ctl100_ and learned that .NET 4.0 adds the ability to have cleaner markup that eliminates the extra control wrapper. It seems that ComponentArt was expecting the ctl100_ prefix and not having it caused the break. Microsoft added a web.config setting called ClientIDMode which lets you make changes according to your compatibility needs.

So, changing this line:

Code: Select all

<pages theme="AbleCommerce" enableEventValidation="false" validateRequest="false">
To this:

Code: Select all

<pages theme="AbleCommerce" enableEventValidation="false" validateRequest="false" clientIDMode="AutoID">
Fixed my problem. Now, I'd prefer to get rid of that setting so I'd get cleaner markup but I'm guessing the version of ComponentArt controls that's included with AbleCommerce doesn't support this.

Anyone know more on this?

Post Reply