Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8837903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:50:54+00:00 2026-06-14T09:50:54+00:00

Background I have a snippet of javascript that sites on customer pages. When this

  • 0

Background

I have a snippet of javascript that sites on customer pages. When this script is executed, it loads necessary assets and scripts and then executes the main code.

One of the script’s I’m loading is Twitter’s bootstrap JS to create a modal window. It’s implemented as a jQuery plugin, and adds ‘$.modal()’ to a jquery object.

Problem

This works on all but one customer site. On this particular site, as I invoke $('#idOfWindow').modal();, the page throws a javascript error Object has no method 'modal'

I’ve verified that the bootstrap code is invoked, and $.fn.modal is called to setup the plugin, My hunch is that something is clobbering the jQuery object, but I’m not sure how to debug this.

Comments

I’m currently using Chrome’s Developer Tools to Debug, and I have verified that the plugin is loaded and executed before it’s ever called. The client site is using jQuery 1.7.2. I’m familiar with chrome tools, but I’m not a power user.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:50:56+00:00Added an answer on June 14, 2026 at 9:50 am

    If you are right, that your original jQuery object is being overwritten somewhere, you should be able to restore it with jQuery.noConflict().

    Demo: jsfiddle.net/KthZu


    Edit: Some debugging tips:

    To help in debugging, you can check the jQuery version in the console with this code:

    $().jquery
    

    Another potential debugging trick would be to store a reference to jQuery when you create you plugin.

    $.fn.myPlugin = function(){};
    window.jQueryWithMyPlugin = $;
    

    Then, when debugging, you can plainly see if window.$ has been overwritten:

    $ === jQueryWithMyPlugin
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code snippet: $(function() { $('.toolbar [id^=button]').on('click', function () { $(this) .css('background-color',
I have a jQuery menu that is represented with these paramaters: <script type=text/javascript> jQuery(document).ready(function(){
I have created this snippet http://jsfiddle.net/PexkV/ <script> var arc={}; arc.handler={ background_color:'#8DBC8F', console_this: function(str){ alert('lets
Background I have a function that takes a config object as an argument. Within
Background: I have a WebPart that makes use of the SPCalendarView control and in
Background I have a dimension table that has a single record for each day.
Background: I have this with rollup query defined in MySQL: SELECT case TRIM(company) when
In my application I have an image (world map) as background picture. Over this
I have a UIImageView inside of my UIViewController. It loads an image that is
I have a script embedded in a page, which is as follows: <script type=text/javascript>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.