Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Testing for 16 possible combinations with 4 pull-down menus

by JamesNC (Chaplain)
on Dec 12, 2004 at 04:39 UTC ( [id://414195]=note: print w/replies, xml ) Need Help??


in reply to Testing for 16 possible combinations with 4 pull-down menus

I don't think this is a job for Perl. I would write some javascript to do this and get rid of the pull downs. Make your javascript robust enough to handle various inputs. Once you build some date and time validators, you can reuse it. I do this for my customers with date and time fields. First, you want your customers to have instant feed back.(Be interactive when it needs to be - errors, prompting for missing fields, etc. ) Second, round trips to your script is unneccessary. Third, your content will be more user friendly to your customer.
JamesNC
  • Comment on Re: Testing for 16 possible combinations with 4 pull-down menus

Replies are listed 'Best First'.
Re^2: Testing for 16 possible combinations with 4 pull-down menus
by DrHyde (Prior) on Dec 13, 2004 at 09:26 UTC
    Anything done in Javasript in a browser can and will be subverted by a malicious user, or will break on certain browsers, or will simply not be executed when users have disabled Javascript, or will get blocked by content filters, or ...

    Sure, use Javascript if you want to be nice and friendly and give instant feedback on errors, but TEST TEST TEST so that it doesn't break hideously in browsers other than the one you habitually use. And even then, you must also validate the data on the server, lest you have a nasty user like me trying to break your data. Of course, using Javascript means you need to do at least twice as much work - you need to write and test and maintain Javascript as well as writing and testing and maintaining perl. Does your employer really want you to do that?

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-24 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found