Results 1 to 2 of 2

Thread: AJAX Tabs Content Script to display images

  1. #1
    Join Date
    Jan 2008
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default AJAX Tabs Content Script to display images

    1) Script Title: Ajax Tabs Content

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

    3) Describe problem: I tried to use tabs to display images. When I click on the 1st tab, I'd like the content area to show myimg1.gif. Click on the 2nd tab to show myimg2.gif and so on.

    instead, I got this:



    Searched here and found no answer.

    much appreciation,

    Michael

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

    Default

    Make sure your server side script returns the image as an HTML tag, not the actual image in binary format. So something like:

    Code:
    <img src="http://mysite.com/mygif" />
    DD Admin

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
  •