In article <6v2dnSuFvdvtmGndRVn->, remove_this_ash@a-
hall.com enlightened us with...
> Thanks for your quick and detailed response! I'm a little confused being a
> VB person, not Javascript and haven't yet come across the term 'Float', new
> territory!
Float is a floating point numeric value, as opposed to an integer.
123.234 is a float, as is 12.32, 0.34 and so on. 123 is an integer.
(The 10 was the base; not required, but recommended.)
VB in ASP.net also has a float data type.
http://msdn.microsoft.com/library/de...l=/library/en-
us/cpref/html/frlrfSystemSingleClassParseTopic1.asp
>
> I don't quite understand though from your rewritten function how the
> function understands which form to process, as it doesn't appear to specify
> the scope, i.e. document.form.element, or am I missing something?
>
It is passing the object itself rather than a string that represents the
name of the object. (which is why you needed eval in yours, b/c you were
just passing a string that represented the name of an object.)
Think of it like this: (VB-ish)
Public Void myFunc (Object formElement, Object formElement2)
Now, the formElement object knows which form it belongs to, so you could
do
formElement.form and it would know which form you meant. But if you just
want its value, it knows that, too.
An object has attributes. One of the attributes of a form element object
is which form it belongs to. Others include its name, its ID, its type,
and its value. The form object knows what document it belongs to, and
the document knows which window it belongs to. It's all about objects.
If you haven't done any real object oriented programming, it might help
you to read a bit about that.
Does that help?
--
--
~kaeli~
Murphy's Law #2000: If enough data is collected, anything
may be proven by statistical methods.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace