blog | bio | agenda | jobs | ajaxCFC

ajaxCFC update for Model Glue and MachII

I previously released some examples of Ajax for Model Glue, including port of the Contact Manager example that works with Ajax and XML Sockets. I missed to consider that most people will not be able to get the XML Socket server running, thus not being able to run this example on their servers. Added another example that uses only Ajax, without the sockets complication ... if you diff both versions, you'll find that I only changed a single line in the config file to use an ajaxLayout instead of socketLayout ... nonetheless, this should allow you to run this example out of the box ...

And the moment everyone has been waiting for: ajaxCFC for MachII is out thanks to Dan Wilson! He did a great job taking the same Contact Manager example and porting it to the MachII framework. His implementation is really clean, using Plugins and Filters to extend the MachII framework, not to mention that the layout he built for the example is much prettier than mines :)

The code is really clean and should make sense for every MachII developer. I'll try to write some documentation and instructions, but that will take some time. Sorry for delaying this post Dan, I really appreciate your contribution and so does the CF Community.

Enjoy.

Related Blog Entries

TrackBacks
Mach-II Contact Manager + ajaxCFC
Now this is seriously cool stuff. Rob Gonda has an example of Dan Wilson's port of the Contact Manager sample application I updated for Mach-II 1.1.0, now ajaxified! After MachBlog gets a 1.0 release out the door I was going to start doing some ajax stuff here and there so this will help tremendously.
Tracked by Matt Woodward's Blog | Tracked on 6/11/06 9:07 PM

Trackback URL for this entry:
http://www.robgonda.com/blog/trackback.cfm?C521D590-3048-7431-E42624B87EF1773D

Comments
Very nice layout...is there a link to download the code somewhere or am I just blind on this Monday morning? I've been looking forward to a MachII example for a long time, would really like to look into this.
# Posted By joel | 6/12/06 8:41 AM
The machII code is included in the main ajaxCFC download.
# Posted By Rob Gonda | 6/12/06 9:29 AM
Hi Rob,

Great work on all of this. I am an old-school PP ColdFusion guy getting back into the game to build a pretty hefty online application in the next few months. Currently it looks like i'll be using your fine ajaxcfc in conjunction with MG and perhaps reactor. In running your contactmanagerAJAX (the plain contact manager version works perfectly) example included in the ajaxcfc download, after changing the necessary mappings, i'm getting an "invalid reply from server" message. It's probably a stupid question, but i'll ask anyway - do you know why this might be?

Keep up the great work!
# Posted By christian briggs | 6/14/06 11:21 AM
I am also getting "Syntax Error" a lot. All I did was change the mappings. Any ideas?
# Posted By Sami Hoda | 6/19/06 3:18 PM
Rob,

I'm also getting the "invalid reply from server" msg.

What special things do we need to do for Mach-ii implementation?

Thanks,
Joe
# Posted By joe | 6/20/06 6:35 PM
Guys, I swear I didn't do anything special. Perhaps there are two things that could be messing you up:
1) CFMX DevNet Edition... The JS version inside the MachII example does not escape that nasty meta tag.
2) Debugging enabled in the CF Administrator. The controllers that respond the Ajax events do not remove debugging with cfsetting like the traditional ajax.cfc does.

Other than that, it should be as easy as changing the mappings... in a few places... make sure you change the config, filters, models, plugins... man, I wish there was some global var to change... anyways... all those.

Let me know.
# Posted By Rob Gonda | 6/20/06 10:14 PM
Hi Rob,I find a bug,if my CFC which extend ajax just returns a simple CF Date object,it can be converted to javascript date correctly.But if my CFC returns a query,the query contains CF Date,it can't work,throw an error "error object" by alert.Please path it,thanks.
# Posted By devilchild | 6/22/06 10:00 PM
Awesome! I just found this blog entry! I'll be working tonight to apply this to my Mach-II site ( http://www.flinkgames.com ) for my search results.
# Posted By Josh | 6/8/07 4:12 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.1.004.