[Javascript] Can't create <IMG> with ASP...very strange.

Ben ben at babelfish.co.uk
Sun May 6 11:19:15 CDT 2001


Nothing wrong with that by the looks of it Rui, hmm, interesting.

What error do you get? any? no? can you run the page and send me the HTML
source?

Also, try this:

    strImage = "<img src=" & chr(34) & "images/house.gif" & chr(34) & ">"

or

    strImage = "<img src=" & chr(34) & "images/" &
rstMyRecordset("ImageField") & chr(34) & ">"

hth,

 .ben

 -----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Rui Fortes
Sent: 06 May 2001 14:49
To: javascript at LaTech.edu
Subject: [Javascript] Can't create <IMG> with ASP...very strange.


  Thanks Ben but I guess that's not whats missing.

  It was something to do with the concatenation of strings.(by the way, what
is the code to create a " inside a string?)

  The bottom line is that:

      myImageString = "<img src=images/house.gif>"

  works fine but this:

      myImageString = "<img src=images/" & "house" & ".gif>"

  and this:

      myImageString = "<img src=images/" & myRecSet(0) & ".gif>"

  doesn't.

  What's wrong with the concatenation???

  Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010506/f9254e22/attachment.htm>


More information about the Javascript mailing list