hmmm not sure how to make that work, I didn't even know you
could have
numeric object names in javascript (I'm pretty sure you
cannot).
Basically the script uses the fieldname as an identifier in
the pages
dom as access to the calendar control and uses a javascript
variable
as the fieldname you specify in string format to the
constructor.
And, under the hood, i am using the javascript
"eval()" statement to
convert that string to the actual js variable that holds the
control
and its properties. So passing in "010101" as the
field name would
eval out to a numeric number and therefore fail when trying
to set
properties etc.
So really the only way I can think of doing that would be to
prefix
your fieldname with "cal_" or "txt_"
(like "cal_010101" and pass that
in as the variable name in the constructor). and then to
translate
back to your field names for the app you are using, just
strip off the
first 4 characters of the variable name...
Or you could always tweak the code to allow another property
to hold
that numeric field value from the other app...
hope this helps..
baz
--- In spiffyDHTML@yahoogroups.com, "xxbazzyxx"
<xxbazzyxx ...> wrote:
>
> Great script! Love it.
>
> I've been wondering how to go about naming a field with
numbers only
> vs. text.
>
> For example: txtDate as field name works fine. But
010101 doesn't not
> work as a field name. I'm using an app that spits out
field names as
> numerics so that the values can pass back to the app so
I have to use
> the numeric field names...
>
> Any help would be greatly appreciated!
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://gro
ups.yahoo.com/group/spiffyDHTML/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http:/
/groups.yahoo.com/group/spiffyDHTML/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:spiffyDHTML-digest@yahoogroups.com
mailto:spiffyDHTML-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
spiffyDHTML-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|