Results 1 to 2 of 2

Thread: Ajax Tabs and JavaScript

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

    Default Ajax Tabs and JavaScript

    http://www.dynamicdrive.com/dynamici...tent/index.htm

    I am trying to use the Tabs just like Yahoo. In each of the tabbed pages, I need JavaScript (because I am using RSS feeds to display other headlines under those tabs). I understand that the Javascript needs to be saved as a separate .js file and the "rev=whatever.js" attribute needs to be used. However it doesn't seem to be working for me. When I save my JavaScript as content.js and then use the code:
    <li><a href="content.htm" rel="contentarea" rev="content.js">Content</a></li> ,

    I get a js error when I try to view my page.

    Does anybody know the steps (or if it already exists, please point me to the page) that shows how exactly to do this?

    Thanks.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    What's the JavaScript you're trying to load? The load .js feature is simply offered as a convinience, and won't work well in complex JavaScript cases.

    An easier way perhaps is just to use an iframe based content loader instead, such as: http://www.dynamicdrive.com/dynamici...bdocviewer.htm

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
  •