[AWS] embedding an image into a html response

hrvoje pejcinovic hrvojep at yahoo.com
Sun Jul 23 16:05:03 CEST 2006


Hello,
I'm trying to return a simple html page back to the
browser with a bit of html and an gif image. Here is
my
response 

return AWS.Response.Build("text/html",
"<html><body>" &
AWS.Parameters.Get(AWS.Status.Parameters(Request),
"name")
& " your name has been stored. You can view it at <a
href=""/third-page""> the third page</a>"
& "<table><tr><td><img src=""/dw.gif"" width=""192""
height=""18""" 
& " alt=""testing"" /></td></td></body></html>");


I have build/packaged the dw.gif with awsres utility,
and then "with" res in my main adb file. But when
response gets sent to the browser, no image appears.
Does this mean that the only way to return image back
to the user is with 

return Response.File (Content_Type => "image/png",
                               Filename     =>        
         
                               "test.png");
Clearly this would only return one image to the user,
with no html. How are css,images,or javascript files
to be included into response?

Many thanks
Hrvoje


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the AWS mailing list