Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Hidden fields and a partial HTML download

by hiseldl (Priest)
on Apr 11, 2003 at 13:30 UTC ( #249875=note: print w/ replies, xml ) Need Help??


in reply to Hidden fields and a partial HTML download

Have you tried using just a session ID with all the fields stored locally? Use the session ID as the key to find all the values, e.g. session ID is a column name in a database, or session ID is key of a tied hash. CGI::Session has a cookbook and a nice tutorial if you want to try it.

Also, why don't you use the "height" and "width" attributes in the <img> tag to create your thumbnail images? For example, the original image is 400x600, you could put a thumbnail using just the attributes, i.e. <img height="40" width="60" src="img.gif">. Unless you are doing other transformations with Magick, this may work a little faster for you.

--
hiseldl
What time is it? It's Camel Time!


Comment on Re: Hidden fields and a partial HTML download
Select or Download Code
Re: Re: Hidden fields and a partial HTML download
by jasonk (Parson) on Apr 11, 2003 at 13:59 UTC

    Also, why don't you use the "height" and "width" attributes in the <img> tag to create your thumbnail images? For example, the original image is 400x600, you could put a thumbnail using just the attributes, i.e. <img height="40" width="60" src="img.gif">.

    ARRRGGGHHHH. The world would be a better place if people would STOP DOING THIS. The point of a thumbnail is to give you a preview of the image before you download the whole thing. By doing your thumbnails in this manner, you force the browser to download the entire 400x600 image, and then display it as a tiny representation of itself. You didn't save anything, you might as well have just shown it full size. It may work great for you when you view the page from your hard drive while you develop it, but it's a huge waste of time and bandwidth to do this over the net.


    We're not surrounded, we're in a target-rich environment!
Re: Re: Hidden fields and a partial HTML download
by hiseldl (Priest) on Apr 11, 2003 at 14:58 UTC

    That's a great answer! Thanks. I'll add that to my tips and techniques page. :-)

    dek did say it is on an intranet, so I didn't think that the bandwidth issues would be so great.

    --
    hiseldl
    What time is it? It's Camel Time!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://249875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-08-31 04:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls