Results 1 to 2 of 2

Thread: Ajax tabs content script image file

  1. #1
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax tabs content script image file

    Hi there,

    I want to use ajax tabs content script for show images but I can't do it there is simple code like bellow

    Code:
    <ul id="maintab" class="shadetabs">
    <li class="selected"><a href="#default" rel="ajaxcontentarea">Intro</a></li>
    <li><a href="external.htm" rel="ajaxcontentarea">Bird</a></li>
    <li><a href="external2.htm" rel="ajaxcontentarea">Dog</a></li>
    <li><a href="external3.htm" rel="ajaxcontentarea">Cat</a></li>
    <li><a href="external4.htm" rel="ajaxcontentarea" rev="content.css, content.js">Sea Otter</a></li>
    </ul>
    I wrotw for my links like bellow

    Code:
    <li><a href="mysimpleimg.jpg" rel="ajaxcontentarea">Bird</a></li>
    href="mysimpleimg.jpg"

    it doesnt work gives me image codes not image. How can I change it for my need ?

    Thank you

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

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

    You can't load an image directly using Ajax. That is to say, what Ajax does is fetch the textual representation of an external page, and if that page happens to include an <IMG> tag, the browser knows to show an image.

    If all you're doing is using the script to show images, you're better off just using Tabs Content script (not the Ajax version): http://dynamicdrive.com/dynamicindex17/tabcontent.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
  •