Or do you mean with?

with someObject {
        var1 = "not";
        var2 = "sure";
        var3 = "about";
        var4 = "this";
        var5 = "syntax";
        var6 = "or";
        var7 = "whether";
        var8 = "it's a JavaScript";
        var9 = "thing or not";
}

alert(someObject.var1);

Adrian
Building a database of ColdFusion errors at http://cferror.org/

-----Original Message-----
From: Ian Skinner
Sent: 12 November 2008 19:34
To: cf-talk
Subject: OT JavaScript question.


Quick question that I just can not think of the right terms to find in 
Google.

There is a syntax short cut in JavaScript if you are assigning several 
properties to the same object.  What is it?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:315161
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to