Results 1 to 2 of 2

Thread: PLEASE HELP! Iframe SSI script II & document.location.hash

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PLEASE HELP! Iframe SSI script II & document.location.hash

    Dear guys, hi!

    Please I need a help! I have stuck with applying a click into iFrame.

    I have a page with navigation. so when i need to open a page from URL with a certain tabs opened and clicked. i just use document.location.hash property.

    It works perfectly if I put the desired (that has to be clicked) content into div.
    then when I type in address line

    index.html?tab=0#members_menu1_submenu1

    it clicks all off them correctly.

    BUT

    if the last part that contains submenu i cut and put into <iFrame> the whole
    thing doesn't get initilized.

    I'm sure it is working correctly with divs. but how to force the document.location.hash click it in a iFrame?? so 2 clicks on the same page (#members_menu1) and third one (submenu1) in to iFrame??

    PLEASE HELP! SPEND 3 days already with that!!

    here is .js for document.location.hash



    $(document).ready( function () {

    if (document.location.hash) {
    var pnp = document.location.hash.split('_');


    $("a[href='"+pnp[0]+"']").click();

    if (pnp[1]) {
    $("a[href='"+pnp[0]+'_'+pnp[1]+"']").click();
    }

    if (pnp[2]) {
    $("a[href='"+location.hash+"']").click();
    }


    }
    if ($.browser.mozilla) {
    $('a').click(function() {
    this.blur();
    });
    }

    });

  2. #2
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    anyone could help please??

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •