I would like to post a flash document through the <img> tag

P

Pete M

I currently frequent a forum for Audi's cars and, while posting, only
have access to a couple HTML tags: <a> and <img>. I have written a
script to choose a random img and return it from a pre written file;
this is all for my signature at the end of each post. Unrelated, I
would like to be able to post a flash document instead of an image. I
realize you need to be able to have the <object> tag somewhere in
there, along with all the accompanying info related to Flash.

What do you think?
 
G

Gunnar Hjalmarsson

Pete said:
I currently frequent a forum for Audi's cars and, while posting,
only have access to a couple HTML tags: <a> and <img>. I have
written a script to choose a random img and return it from a pre
written file; this is all for my signature at the end of each post.
Unrelated, I would like to be able to post a flash document instead
of an image. I realize you need to be able to have the <object>
tag somewhere in there, along with all the accompanying info
related to Flash.

What do you think?

I think you should ask for comments on your thoughts somewhere else.
This group is defunct, and when it was alive, it dealt with the Perl
programming language.
 
P

Pete M

Gunnar Hjalmarsson said:
I think you should ask for comments on your thoughts somewhere else.
This group is defunct, and when it was alive, it dealt with the Perl
programming language.

Well, anybody know of a way to make perl do this anways, even though
the HTML is expecting an image?
 
J

Joe Smith

Pete said:
Well, anybody know of a way to make perl do this anways, even though
the HTML is expecting an image?

First figure out how to do is with an plain HTML file.
If you can't do that, perl won't be of any help.
-Joe
 
J

Jürgen Exner

Pete said:
Gunnar Hjalmarsson said:
Pete said:
[Some HTML problem]
What do you think?

I think you should ask for comments on your thoughts somewhere else.
This group is defunct, and when it was alive, it dealt with the Perl
programming language.

Well, anybody know of a way to make perl do this anways, even though
the HTML is expecting an image?

Sure, no problem.
_YOU_ show us how the HTML code is supposed to look like and _WE_ will be
happy to show you how to use Perl to generate the desired HTML code.

jue
 
P

Pete M

What the crap? Perl frickin programming language ;) What's to miss?

The question is: how can I write a <I'm underlined>PERL script</I'm
underlined> to return an object, in this case a Flash document, when
it is called through the image tag in an HTML file. Gall, everyone
makes it seem like you don't know what the stink PERL is. I'm asking
if it's possible.

Making perl produce a page with an object in it is not hard, but when
the script is called through an image tag, that's where the secret
lies.

Man, it's no wonder the first person that responded said this plays is
defunct and dead... you guys alienate anyone that comes in here! :)
 
J

Jürgen Exner

Pete said:
What the crap? Perl frickin programming language ;) What's to miss?

The question is: how can I write a <I'm underlined>PERL script</I'm
underlined> to return an object, in this case a Flash document, when
it is called through the image tag in an HTML file. Gall, everyone
makes it seem like you don't know what the stink PERL is. I'm asking
if it's possible.

You don't get it, do you? In which way does your choice of programming
language impact the answer to your question? Would the solution be any
different if you were to use C or Pascal or Haskel? You would still generate
the same output.
Making perl produce a page with an object in it is not hard, but when
the script is called through an image tag, that's where the secret
lies.

Again, how would this be any different if that script was written in sh or
bash or any other programming language. Your question in not about how to
generate response "x" in Perl (that's would be a Perl question and is as
simple as using print()) but how response "x" must look like.

You are barking up the wrong tree because YOU DON'T HAVE A PERL PROBLEM.
Most likely you have a CGI or web server configuration question, maybe an
HTML question. But certainly not a Perl question.

Or do you also believe that just because I am managing my cooking recipies
with a Perl script the baking of a cheese cake becomes a Perl problem, too?

jue
 
J

Joe Smith

Pete said:
What the crap? Perl frickin programming language ;) What's to miss?

The question is: how can I write a <I'm underlined>PERL script</I'm
underlined> to return an object, in this case a Flash document, when
it is called through the image tag in an HTML file.

When the browser sees an image tag, like
<img src="http://www.example.com/cgi-bin/send-jpeg.cgi?random1">
it expects the web server to send a response that includes the
header "Content-Type: image/jpeg" or any other recognized "image/" type.

If your CGI program sends "Content-Type: application/x-shockwave-flash"
instead, the browser will not be able to handle it. Many browsers
can only display Flash animatings if they are specified as an <embed>
tag inside an <object> tag.

I fear that what you're asking for, using *only* an <img> tag, is impossible.
-Joe
 

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

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top