Loading ...
Sorry, an error occurred while loading the content.

2618image question

Expand Messages
  • Lpais
    Apr 29 8:52 AM
    • 0 Attachment
      Could someone tell me what I am doing wrong here?

      I am trying to assign an image to a variable but it is not working:

      if(file.endsWith(".html") || file.endsWith
      (".HTML"))
      {
      newimage="/images/icon_ie.gif";
      }
      if(file.endsWith(".txt") || file.endsWith
      (".TXT"))
      {
      newimage="";
      }
      if(file.endsWith(".pdf") || file.endsWith
      (".PDF"))
      {
      newimage="pdf";
      }

      All it is doing is showing the oath and not the image.

      Thank you in advance
      Lance
    • Show all 2 messages in this topic