Click here to Skip to main content
14,972,640 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
I was preparing to do some additions to by CodeProject Chrome Extension This One[^], and i thought while i am at it i would upgrade the JQuery and JQueryUI cores to the latest versions.

The original versions are V1.4.2 and V1.8.2 (UI) and was taking them up to V1.5.1 and V.8.11.

On the extension, I have a tab control, with Tabs 1 and 3 are standard markup, Tabs 2 and 4 are ajax calls. This works fine with the original versions, but throws an error (which is only visible in the Chrome Console) of WRONG_DOCUMENT_ERR: DOM Exception 4, and the respective tab is just blank when clicked.

The code for the tabs is;
<script type="text/javascript">
    //Initiate the JQUuery tabs
    $(function () {

<div id="tabs" style="height: 400px;">
            <!-- Tab Pages -->
                <li><a href="#tabs-1">Reputation Points</a></li>
                <li><a href="repgraph.html">Reputation Graph</a></li>
                <li><a href="#tabs-3">Options</a></li>
                <li><a href="about.html">About</a></li>
            <!-- Tab 1 Rep Points -->
            <div id="tabs-1" style="padding-left: 5px">
                ..... tab content removed....
            <!-- Tab 2 Graph ; Note: This does not require a section as it is a link URL in tab definition above-->
            <!-- Tab 3 Options -->
            <div id="tabs-3" style="padding-left: 5px">
                ..... tab content removed....
            <!-- Tab 4 About ; Note: This does not require a section as it is a link URL in tab definition above-->

The markup for the reference page, e.g. the about.html page (Tab 4) is;
<link type="text/css" href="css/custom-theme/jquery-ui-1.8.11.custom.css" rel="Stylesheet" />
<script type="text/javascript" src="jquery/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="jquery/jquery-ui-1.8.11.custom.min.js"></script>
<script type="text/javascript" src="js/cpjshelper.js"></script>

<body bgcolor="#ffcc66">
    <script type="text/javascript">
<div style="padding-left: 5px">
    <h3>CodeProject Reputation Watcher Chrome Extension</h3>
    Version: V2.0<br /> of html markup removed.....

Any ideas what has changed between the Jquery versions as its really frustrating. I have had a look at the JQuery upgrade guides and see nothing relating to this that may be attributable to the failures.

Any help or pointers appreciated....i'm lost now!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900