How can I load a image AJAX - JAVASCRIPT?

Discussion in 'HTML & Website Design' started by XandroZ, Jan 24, 2007.

  1. #1
    I want to load a image in a <div> and replace the image that is inside the <div> element when someone click his thumb(image).
    I try to use Ajax but in Ajax you can only load text or XML.
    I want only to load the image when a user click his thumb not all the page(like in php).
     
    XandroZ, Jan 24, 2007 IP
  2. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Having javascript change the "src" attribute of the "img" tab would be one option.
     
    ServerUnion, Jan 24, 2007 IP
  3. Ginger Ninja

    Ginger Ninja Guest

    Messages:
    161
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could try Lightbox JS 2;
    huddletogether.com/projects/lightbox2/
     
    Ginger Ninja, Jan 25, 2007 IP