Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 418085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:38:39+00:00 2026-05-12T18:38:39+00:00

ok here is the full code with the spelling corrections and everything. I am

  • 0

ok here is the full code with the spelling corrections and everything. I am still getting an error.

code for parent is :

$("#leftNav").accordion({autoHeight: true});

<div id="leftNav">    <h3><a href="#">Client</a></h3>
<div>        static text    </div>
<h3><a href="#">Account Summary</a></h3>
<div>        static text    </div>
<h3><a href="#"> Profile</a></h3>
<div>        static text    </div>
<h3><a href="#">trip</a></h3>
<div>
    <div id="tripHolder">
    </div>
</div>

the code for the iFrame :

$(".bookingClass").click(function(){
     var thisBookingClass = 'bClass='+$(this).attr("id");
           $.ajax({
                type:"POST",
                url:"bookIt.jsp",
                data: thisBookingClass,
                cache:false,
                success: function(msg) {
                    $("#tripHolder",top.document).html(msg);
                    $("#leftNav",top.document).accordion('activate',3);
                 }
           });
});

The error I am getting in fire bug is now

$("#leftNav", top.document).accordion is not a function
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T18:38:40+00:00Added an answer on May 12, 2026 at 6:38 pm

    you’ve spelt accordion wrong in your code.

    EDIT:

    I have a Working Demo that works in Firefox (tried in IE6 but it failed), only if the “client” header is the one currently selected. You can see the code by adding /edit to the URL.

    This seems to be a tricky problem to solve and unfortunately I don’t have the time to look into it further at the moment. To prevent the error

    $("#leftNav", top.document).accordion is not a function
    

    I had to add a reference to the jQuery UI script to the source of the iframe.

    It appears that the accordion becomes inaccessible from inside the iframe, the reason I’m not sure. The way that I got the activate to work was very hacky and basically called .accordion() on the #leftNav again, followed by .accordion('activate',3); as in the following

    $.ajax({
      type:"POST",
      url:"http://jsbin.com/etiju",
      data: {},
      dataType: 'html',
      cache:false,
      success: function(msg) {
        $('#tripHolder',parent.document).html(msg);
        $("#leftNav",parent.document).accordion({ autoHeight:true }).accordion('activate',3);
      }                                
    });
    

    notice that I also used parent.document instead of top.document – the latter wasn’t working but normally does in Firefox.

    I hope it’s got you a little further along. I may come back to this one when I have more time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 208k
  • Answers 208k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer All cookies (including session cookies) have a path parameter that… May 12, 2026 at 9:30 pm
  • Editorial Team
    Editorial Team added an answer I had a similar problem (on Windows XP), where my… May 12, 2026 at 9:30 pm
  • Editorial Team
    Editorial Team added an answer That nothing happens is a result of the missing case… May 12, 2026 at 9:30 pm

Related Questions

We are using MySql 5.0 on Ubuntu 9.04. The full version is: 5.0.75-0ubuntu10 I
I'm using the Scriptaculous Ajax.InPlaceEditor to edit data from my database. Actually, it works
ok, I'm back. I totally simplified my problem to just three simple fields and
I'm trying to integrate a NSURLConnection object with UIProgressView, so I can update the
I am creating a simple web app for TFS2008, so I am using the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.