content-type image and javascript function

  • Thread starter CubicusInformatica
  • Start date
C

CubicusInformatica

Hi,
it's possible execute a javascript function in html page with this
header :"Content-type: image/jpeg"

Thank's
Samuele
 
T

Thomas 'PointedEars' Lahn

CubicusInformatica said:
it's possible execute a javascript function in html page with this
header :"Content-type: image/jpeg"

No, as the header says, what is transferred in the message body is image
data, not HTML text data. It is only that graphical Web browsers have to
render that and therefore sometimes use a temporary HTML document. But you
have no control over browsers or that document in that regard. So you
should write and serve a real HTML document (as text/html) and refer to the
image therein with an `img' element.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,146
Messages
2,570,832
Members
47,374
Latest member
EmeliaBryc

Latest Threads

Top