On 29. des. 2013 14:06, Tommi Mäkitalo wrote:
> If you want to display a image in a html page, you add a img-tag like
> that: <img src="/theimage.jpg">. The browser will do another request to
> the web server to load the image and display the image exactly, where
> the img tag is found.

Hi Tommi,

I have been trying the above, and I don't understand how this is 
supposed to work, and it isn't in my case.

I wrote the following html where the "arg1" input parameter is simply an 
image number in a list of images, so I can get different image results. 
Primitive, but that's fine in this case, and it works.

<html>
   <head>
   <title>Tntnet-application hello</title>
  </head>
   <body bgcolor="black" text="White" link="yellow" Vlink="yellow">
   <h1>hello</h1>
   <p>Hello Tntnet world!</p>
     <table>
       <tr> <td> <form> <input type="text" name="arg1" value=" 
<$arg1$>">  </form>  </td> </tr>
       <tr> <td> <img src="/theimage.jpg"> </td> </tr>
     </table>
   </body>
</html>


Once I get the image number I generate the image data and do the 
following as you explained before:

          reply.setContentType("image/jpeg");
          reply.out() << image_data;

The result is that the image fills the whole browser window, everything 
else is gone. Somehow, the image data is supposed be placed where the 
img-tag is, like you explained. But it isn't in this case, and what if 
there were several img-tags in the page? Where is the image supposed to 
go then?

Somehow there must be a match between the name of the image in html and 
the "name" of the data returned, but the exact technique eludes me.

Could you perhaps point me to where this is explained?

Best regards
Carsten Arnholm


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to