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

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

Contributor ,
Jul 06, 2012 Jul 06, 2012

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
1.3K
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

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

Translate
Engaged ,
Jul 09, 2012 Jul 09, 2012

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

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

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