Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

A container for images from a server perl

by heatblazer (Scribe)
on May 02, 2012 at 16:13 UTC ( [id://968476]=perlquestion: print w/replies, xml ) Need Help??

heatblazer has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks.

I have a request. I need to make a script that gets an element from 10 images displayed in thumbs from a HTML then open a new window which has <- back and -> forwar buttons showing prev and next images from the gallery. Is it good to use perl or just plain javascript?

  • Comment on A container for images from a server perl

Replies are listed 'Best First'.
Re: A container for images from a server perl
by JavaFan (Canon) on May 02, 2012 at 16:48 UTC
    Is it good to use perl or just plain javascript?
    That's a strange question considering that JavaScript typically runs in the client, and Perl runs on the server. Solutions exists that use both, either or neither.

    But, my guess is, someone else has done this before. It's hard to imagine noone else on the web got the idea of showing pictures with back and forward buttons. Perhaps you can just use a canned solution, in whatever language?

Re: A container for images from a server perl
by Anonymous Monk on May 03, 2012 at 03:47 UTC

    Use plain html but don't open new windows. If a browser user wants a new window, they know how to middle click :)

      Thanks for advices both of you. Actually I wanted to make a new window like amazon.com`s images. They are opened in a new window without flasy effects. It`s like a html with 8 visible images and if you click on 4th one, it is opened in a new smaller window showing the image and you can back and forward to other ones. Kind of image viewer... but I think that JS is for this task rather perl/php/server scripts... Maybe some ready made jQueries codes.

        You could achieve all of this using Perl to generate the HTML, though it you combined it with some JavaScript you could make it aesthetically smoother.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://968476]
Approved by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-24 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found