+ Reply to Thread
Results 1 to 2 of 2

Thread: show image in VBScript

  1. #1

    Default 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. #2

    Default 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

+ Reply to Thread

Similar Threads

  1. calling RPG program with VBScript
    By David Abramowitz in forum Visual Basic
    Replies: 3
    Last Post: 01-04-2005, 08:01 AM
  2. Replies: 1
    Last Post: 03-03-2004, 06:40 AM
  3. Show alarms in SQL results
    By Guest.Visitor in forum Programming
    Replies: 7
    Last Post: 10-29-2001, 10:34 PM
  4. iSeries infomercial on .COM TV Show this weekend...
    By Guest.Visitor in forum IBM i (OS/400, i5/OS)
    Replies: 1
    Last Post: 02-05-2001, 08:45 AM
  5. Let's have a show of hands...
    By Guest.Visitor in forum Analysis
    Replies: 59
    Last Post: 06-08-2000, 08:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts