It seems like your code depends on some modules other than jquery itself, and i don't think all the relevant code is in there. I think it would still be better to post a link to the page you made, or even better, reduce it to a test case that shows the problem.

Does your html validate at least?

Jonathan

KhanZeeshan wrote:
JQuery Code:
<code>
function Tabs(jQuerySelector) {
    $(jQuerySelector).tabs();
    this.bag = new Array();

    this.add = function(title, uniqueHash) {
        var deleteString = '<a href="#"><img border="0"
class="tab_delete" src="Images/delete-img.png" onclick="tabs.remove(';
        deleteString += "'";
        deleteString += uniqueHash;
        deleteString += "'";
        deleteString += ')"></a>';
        $(jQuerySelector).tabs(
                        'add',
                        '#' + uniqueHash,
                        title + deleteString);
        $(jQuerySelector).tabs('select', this.bag.length);
    }

    this.tab = function(title, uniqueHash) {
        for (i = 0; i < this.bag.length; i++) {
            if (this.bag[i].uniqueHash == uniqueHash) {
                $(jQuerySelector).tabs('select', i);
                return;
            }
        }

        this.add(title, uniqueHash);

        var str = {};
        str.title = title;
        str.uniqueHash = uniqueHash;
        str.idx = this.bag.length;
        this.bag.push(str);

        return true;
    }

    this.remove = function(uniqueHash) {
        for (i = 0; i < this.bag.length; i++) {
            if (this.bag[i].uniqueHash == uniqueHash) {
                this.bag.splice(i, 1);
                $(jQuerySelector).tabs('remove', i);
                return;
            }
        }
    }
}
</code>
Function Calling:
<code>
tabs = new Tabs($("#Gtabs"));  // Gtabs is name of div that is loading
Tabs

//Full Access path of A Href

    $("#Leftbar > table tr td > div#TabOptions > div#Cat1 > ul#sliding-
navigation a").click(function() {
        var tabHash = jsHash($(this).attr('id')); //Id contains ASPX
page name with unique hash value (for hash value is used another third
party JQuery Library [hash.js])
        if ($(this).attr('id') != "") {
            tabs.tab($(this).attr('title'), tabHash); //title contains
the Tab Display Name
            $('#' + tabHash).load($(this).attr('id') + '.aspx'); //
Loading the Name
        }
    });
</code>

Html Code:
<code>
<li><a href="#" title="First Aspx Page" id="Page1">First Aspx Page</
a></li>  //Assigning tabs value & making its Link on navigation panel

<div id="Gtabs">  //Loading Tab here
        <ul id="tabsUl">
        </ul>
</div>
</code>


Hope this helps.

On Apr 22, 1:12 pm, "Jonathan Vanherpe (T & T NV)" <[email protected]>
wrote:
KhanZeeshan wrote:
Hi all,
Problem that i'm facing is that i'm loading external ASPX pages in
AJAX tabs..its working great in FF3.0,Safari,Chorme & IE8 but it gives
"Object doesn't support this property or method" error in IE6/IE7 when
ever a new page is about to load in tab & it also doesn't load...
Please Fix this bug or tell me the solution if you've any solution
regarding this bug..please keep in mind i'm new to JQuery
Regards;
IE's error reporting is pretty crappy, which is why the error message
you gave us is pretty useless because it could mean anything.

The best way to get help is to upload your stuff somewhere and let us
have a look at it.

Or at least post the offending code.

Jonathan

--
Jonathan Vanherpe - Tallieu & Tallieu NV - [email protected]



--
Jonathan Vanherpe - Tallieu & Tallieu NV - [email protected]

Reply via email to