> This capability can be INSANELY useful however.  A great use is in adding
> information to form elements.  You might, for example, add a property
called
> "LastUpdate" to all your form elements - you can then set this to the
> current date/time onChange().

> Another process might run on an interval which loops through the form
> elements on a page and checks the LastUpdate dates to see which form
> elements have been changed since the last run through.

Can you expand on this for me?  What do you mean by "to see which form
elements have been changed since the last run through."  Are you talking
about the last time the form element itself was changed by the programmer
or about the last time information was entered?  Don't quite understand...

And can this info that is generated by JS be used by CF as a variable?
Stored in a DB or used in a query, etc.?

Thanks,

Rick


-----Original Message-----
From: Jim Davis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 30, 2005 11:38 PM
To: CF-Talk
Subject: RE: What's wrong with the Javascript?


Off the top of my head I think the property is "defaultStatus" - capital
"S".

Coming from CF case sensitivity in JS will slap you around like a red-headed
step child.  ;^)

Just so you know what's happening tho:

JavaScript is an open "prototype" language.  This means you can add things
(properties, functions, events, etc) to the objects on the fly anytime you
like.

In your case you're actually creating a brand new property on the statusbar
object called "defaultstatus".  The system doesn't have anything to do with
it but it is there and can be used for something.

This is why you're not getting an error.

This capability can be INSANELY useful however.  A great use is in adding
information to form elements.  You might, for example, add a property called
"LastUpdate" to all your form elements - you can then set this to the
current date/time onChange().

Another process might run on an interval which loops through the form
elements on a page and checks the LastUpdate dates to see which form
elements have been changed since the last run through.

You could add a "Source" property to OPTION objects to make related
select-box functionality insanely simple.

All very, very powerful stuff.

Jim Davis






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200938
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to