Results 1 to 6 of 6

Thread: Ajax Tabs Content script minor problem/question..

  1. #1
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax Tabs Content script minor problem/question..

    1) Script Title: Ajax Tabs Content script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...axtabscontent/

    3) Describe problem: Hmm very simply, I have my project I am working on for my web site 98% done but ran into a minor sang that maybe this script cannot even do, or maybe I am doing something wrong.

    I have, to illustrate my problem, taken the demo files from the web site and posted them up on mine, http://thedrunkgeeks.com/demo.htm, and I am trying to make a link in one tab call another external page into the current tab.

    Let me state it again, I call an external page, which also has links on it, when they click those links I would like it to open in the same tab that external page opened. All pages are within the domain; maybe I am using the wrong control. I have tried an IFRAME and do not like the results.

    At the location above I have set up, like I said a demo, where the dog tab has a link to the otter tab.

    I get this error when I click the link;

    Line: 27
    Char: 1
    Error: 'parentNode' is null or not an object
    Code: 0
    URL: http://thedrunkgeeks.com/demo.htm

    Any help would be appreciated as I am not very good with JavaScript, thanks in advance.

  2. #2
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry, I forgot to mention I am using the following line to open the link;

    Code:
    <a href="javascript:ajaxpage('ajaxfiles/external4.htm', 'ajaxcontentarea');">Otter Page</a>
    Also there is one other thing I do not understand, what is the;

    Code:
    function ajaxpage(url, containerid, targetobj)
    URL: Truely the url to the next page I am guessing

    CONTAINERID: Would this be the rel= segment? and can these be set to anything or is there something specific to be put in here

    TARGETOBJ: Do not know what this does

    Again, thanks in advance.

  3. #3
    Join Date
    Sep 2006
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I am also looking for this solution
    http://www.dynamicdrive.com/forums/s...ad.php?t=13070

    I don't really know JS that well, but I'm sure it's a conflict with the two scripts on the same page.

  4. #4
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    well if that was true then the orignal script i put out on the web site would work as there is no additional code other then what they have stated works.

    But I am like you, I just dont know JavaScript that well so I am at a loss

  5. #5
    Join Date
    Sep 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    bump..

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You should take a look at the thread mentioned by synergy, I solved his problem there. It sounds like the same thing you are struggling with. Here is the link again:

    http://www.dynamicdrive.com/forums/s...ad.php?t=13070
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •