> I was wondering if you could just call a web service with just two lines of > code? Like so ... > > req = new XMLHttpRequest(); > req.open("POST", "http://dan:8500/myCFC/cgitest.cfc",true, "", ""); > > But I get the component browser page, which is strange.
You need to call a method of that CFC ( cgitest.cfc?method=runTest) that has output allowed and returns nothing. If you do <cfreturn myResults> it will convert that data to WDDX. I prefer to <cfoutput>myResults</cfoutput> which is either an XML or JavaScript string depending on what the application is. -- Marc http://www.vertabase.com/ Project Management Made Easy! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:196520 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