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

TypeError: 'undefined' is not a function...

Contributor ,
Jul 06, 2012 Jul 06, 2012

Copy link to clipboard

Copied

Hi Guys

Fo some reason it seems like the included jQuery script that comes with BC gives me errors when I try to create a simple DOM change.

I get this error:

TypeError: 'undefined' is not a function...

When I add a CDN link to the latest jQuery from Google then my script works fine but all other BC specific modules (such as the menu) get stuffed...

See sample page where I am trying to add a simple background color where the word "Outdoors" appears in a span.

$("span:contains('Outdoors')").css('background','red');

http://stsstone.businesscatalyst.com/sample-page-1

Cheers

Micha    

TOPICS
How to

Views

1.2K

Translate

Translate

Report

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

correct answers 1 Correct answer

Contributor , Jul 09, 2012 Jul 09, 2012

Thanks

I found out that any new jquery scripts would give me some error. This is due to the embedded jquery script in the BC template. Once a removed BC scripts and added my own jquery or a CDN link all worked well.

Cheers

Micha

Votes

Translate

Translate
Engaged ,
Jul 09, 2012 Jul 09, 2012

Copy link to clipboard

Copied

Hello Micha,

Your example link goes to a 404 page. Have you resolved this issue?

Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

Votes

Translate

Translate

Report

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
Contributor ,
Jul 09, 2012 Jul 09, 2012

Copy link to clipboard

Copied

LATEST

Thanks

I found out that any new jquery scripts would give me some error. This is due to the embedded jquery script in the BC template. Once a removed BC scripts and added my own jquery or a CDN link all worked well.

Cheers

Micha

Votes

Translate

Translate

Report

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