[thelist] CF: No IsDefined()?

Joshua Olson joshua at alphashop.net
Thu Sep 13 17:02:06 CDT 2001


: for those browsers that can submit forms with the enter button, they send
: the coordinates 0, 0.

It's been my experience that some browsers (ie 5.0 at least) return -1 for x
and y, not 0.  So, depending how -1 is interpreted as a boolean, your tip
may produce incorrect results.

It's much simpler in this case to use StructKeyExists than cfparam and val.
It's shorter and less prone to error depending on what the browser sends as
the value of x and y since it only assumes they send it at all.


More information about the thelist mailing list