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 8892515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:01:08+00:00 2026-06-14T23:01:08+00:00

Long story short: We’ve had errors being logged concerning a JQuery/JQueryUI based system for

  • 0

Long story short:

We’ve had errors being logged concerning a JQuery/JQueryUI based system for some time. At it’s core we’re doing a pretty basic click link -> JQuery AJAX GET -> Open JQueryUI modal pattern.

The error we were getting appeared simple – “Object doesn’t support property or method ‘dialog'” – leading us to believe there was an error with JQueryUI. After expending a lot of time ruling out browser incompatibilities, bad code on JQuery’s end, bad code on our end, angry code gods… we caught a lucky break. A 100% repro on one of the machines in the office.

Turns out the thing was riddled with adware – specifically [an older version of] easyinline – http://www.easyinline.com. When the user clicked any link a cascade of javascript files would be loaded, including reloading JQuery from Google’s CDN.

For most links this isn’t really a problem – they take you off the page anyway and everything reloads. But for our modals it meant that every modal link would stamp over our JQuery at the point the request was sent, resulting in the response trying to make use of the ‘new’ $ which would now be missing JQueryUI and any other plugins.

Initially we thought about making another global var ($$ or something) for ‘our’ JQuery and explicitly using that in our code instead of just $. The issue with that is that we were using a few other 3rd party tools which rely on $ and the adware-loaded $ is a different (older) version. So it’s important that we preserve $ correctly.

Any ideas? I’m aware of JQuery’s noConflict() method but after a cursory glance don’t think it fits the bill.

  • 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-14T23:01:11+00:00Added an answer on June 14, 2026 at 11:01 pm

    Ultimately we’ve decided to re-establish our JQuery integrity when we receive any ajax responses (i.e. just before the open modal code is executed). All our ajax stuff is wrapped in our own handler so this was fairly easy to inject across the board.

    Basically;

    We have the original JQuery ‘saved’ – we’ve got it in-scope thanks to our handler but it could be easily put into a separate global (like $$) just after it is loaded. In our ajax response handler we’ve got a fairly straightforward check;

    if (window.$ !== $$) {
        window.$ = window.jquery = window.jQuery = $$;
    }
    

    This will reset the global jquery back to what it should be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Long story short: I used reflector on the System.Security.Util.Tokenizer class, and there's loads of
Long story short: We've got a system that we're moving from one server to
Long story short, VSS decided I wasn't allowed to have some code changes. I
Long story short I need to get items based on a range (high/low value),
Long story short, I have a long code that uses jQuery. Lots of files,
Long story short, because of some issues with architecture and the fact that someone
Long story short, I'm rewriting a piece of a system and am looking for
Long story short, I'm making a racing game in Java. I'm self-taught using some
Long story short: I have some controller logic that requests a value from the
Long story short: I had to create a chat functionality which seems to work

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.