SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Dec 2005
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reset div with a new image but the image doesn't show up

    Hey everyone,

    I have some javascript that changes the text of a div to an img, eg <img src="" height="400" width="400" />, but when the javascript updates the div the image doesn't appear. Anyone know why this would be happening? I'm using Firefox 2.

    Thanks,
    Kevin

  2. #2
    SitePoint Wizard wonshikee's Avatar
    Join Date
    Jan 2007
    Posts
    1,223
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    have u looked at the error console? if the img link is correct it will show up

  3. #3
    SitePoint Enthusiast
    Join Date
    Dec 2005
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah I've checked the error console but there aren't any errors

  4. #4
    SitePoint Wizard wonshikee's Avatar
    Join Date
    Jan 2007
    Posts
    1,223
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    post the applicable code and i'm sure someone can be of better help.


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
  •