On Fri, 11 Feb 2005 21:51:35 -0500, dave <[EMAIL PROTECTED]> wrote:
> well im sure html can too using java or anything else for that matter.
> are you saying that its easier with dhtml &  JavaScript then with flex?
> 
> ----------------------------------------
> From: Dave Watts <[EMAIL PROTECTED]>
> Sent: Friday, February 11, 2005 9:43 PM
> To: CF-Talk <[email protected]>
> Subject: RE: Flex
> 
> > Lcant recall dhtml being able to consume web services either.
> 
> Actually, you can use web services from DHTML using JavaScript.

It's pretty easy - 6 lines of code (could be less too)

//get a connection factory so we can make connections
httpFactory = new HTTPConnectFactory();
                
//create our play connection
httpcon = httpFactory.getInstance();
        
//our remote object creation factory
roFactory = new RemoteObjectFactory();  
roFactory.setAsync(true);
                
//pass in a connection object and the service we would
//like to use
roFactory.createObject(
        httpcon,
        "http://www.rohanclan.com/products/neuromancer/chatdemo.cfc";
);

robject = roFactory.getObject();

that unmarshals a coldfusion web serivce into a javascript object, and
will then handle translations of methods for you (so like
robject.getNumber() will call the cfc method getNumber)

http://www.rohanclan.com/products/neuromancer/chatdemo2.cfm
http://www.rohanclan.com/products/neuromancer

I hear flex is cool and powerful though I havent tried it. I just
don't want any misinformation about das-javascript.

Cheers,
Rob

-- 
~Blog~
http://www.robrohan.com
~The cfml plug-in for eclipse~
http://cfeclipse.tigris.org
~open source xslt IDE~
http://treebeard.sourceforge.net

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194407
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