I looked all over for tutorial or explanation to my issue to no avail.
I need to be able to open a target ajax tab in an external page

Basically  homepage (link) ------> new page with selected tab
opened...

So tried various ?query string with links it loads the page but will
not select the tab.

Any help would be great.



Jetlogs method works perfect for what I need it for except no dynamic
tab selection form an external source.

var pageUrl = new Array();
pageUrl[1] = "tab1.html";
pageUrl[2] = "tab2.html";
pageUrl[3] = "tab3.html";
pageUrl[4] = "tab4.html";

function loadTab(id)
{
    if (pageUrl[id].length > 0)
    {
        $("#preloader").show();
        $.ajax(
        {
            url: pageUrl[id],
            cache: false,
            success: function(message)
            {
                $("#tabcontent").empty().append(message);
                $("#preloader").hide();
            }
        });
    }
}

$(document).ready(function()
{
    $("#preloader").hide();

    $("#tab1").click(function()
    {
        loadTab(1);

});



Thanks For any help or pointers.

Reply via email to