On Fri, 30 Jul 2004 20:44:14 -0400, Michael Peters wrote:
> Arkady Grudzinsky wrote:

Hi Arkday

>> <img src=plot.cgi?prm=1;prm=2;prm=3...> tag.  The list of
>> parameters may be very long.

If the list is long, I think you can safely assume the user is not
going to be reading the list, so you can replace it as Michael
suggests.

>> to override that.  Mozilla does not have this limitation
>> (why should it?).
> Ahh, the joys of IE.

But then Firefox 0.9.1 has a list of bugs I'm just about to document
:-(.

>> There is no problem when parameters are submitted using POST
>> method through forms, but if I want to show the plot in
>> HTML, I have to provide plot URL, don't I?

Ahh, 'you are choosing' to display the parameters, as distinct from
'you must display' the parameters. Have a think about this, Why
display them?

>> I consider the following solutions:
>> 1. Detect when the URL is too long and place a submit button

No need to do this.

>> 2. Find a way to submit parameters for the image using POST

Nor this.

>> down the application.  Is there a way to insert an image
>> DIRECTLY into HTML (I mean the actual PNG file, not the
>> image URL)?

You are inserting the image directly, as I see it.

> When that data is submitted to the backend script, process it and
> generate the image you need. Take the incoming parameters and
> create an
> MD5 hash key from those parameters. Name the image with that hash
> key.
> Return a page to the user where the name of the image refers to the
> hash

Exactly, so the end result would be something like:

<img src="0123456789ABCDEF.png">.

Even better, put the parameters and the hash key into a database
table, with a timestamp.

If another request comes in with the same parameters, you get the
image name immediately, and the image still exists.

And use cron to delete images a couple of days old, say.
--
Ron Savage, [EMAIL PROTECTED] on 2/08/2004. Room EF 312
Deakin University, 221 Burwood Highway, Burwood, VIC 3125, Australia
Phone: +61-3-9251 7067, Fax: +61-3-9251 7604
http://www.deakin.edu.au/~rsav



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to