Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

show image in VBScript

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • show image in VBScript

    Hi, I'm a complete newby to VBScript and am trying to figure out how to show an image using the IE browser. I've been trying to glean the information from tutorials but am obviously missing something, as it isn't working. My plan is to have the user enter an 8 digit number and then append ".jpg" to that and display that image. My code is:

    Certificate Number

    Certificate
    As it is, it will write Your certificate is: 12345678.jpg, but if I comment out the line where I force 12345678 into CertNbr and try to get the value from the box, I get a page error. I also get nothing if I comment out the document.write and try to display the image whether or not I use the line where I hardcode the jpg or the line where I use the variable. Utlimately, I'd like to display the image if the jpg exists and display "no certificate found" if the jpg doesn't exist. Any help would be greatly appreciated.

  • #2
    show image in VBScript

    Hi, I put my code in the code place. I didn't realise that putting it in the message box would run it. Ha.
    Code

    Comment

    Working...
    X