Ajax inserts / updates and CF

0 views
Skip to first unread message

hofar...@houseoffusion.com

unread,
Jan 7, 2013, 6:28:33 PM1/7/13
to ColdFusion Technical Talk

Hi Folks,

We're getting ready to implement some ajax code in our application to enable
queries (esp inserts and updates) to run without having to do a full page
refresh (the main goal being to just improve page load performance).
There's obviously a lot of info out there on this topic and I'm interested
in getting a little feedback about what might be best or most appropriate.
For instance, are there any recommended examples / tutorials for doing this
with CF? Would this sort of thing likely use jquery or just straight custom
javascript?

Many thanks in advance.

Nick





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353803

hofar...@houseoffusion.com

unread,
Jan 8, 2013, 8:57:42 AM1/8/13
to ColdFusion Technical Talk

I would really suggest using the stuff built into CF.
Your better off using jquery, there are tons of tutorials out ther eon
jquery and jquery with CF.
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353807

hofar...@houseoffusion.com

unread,
Jan 8, 2013, 1:48:33 PM1/8/13
to ColdFusion Technical Talk

Russ, were you advising Nick to "not" use the
stuff built into CF?

If so, I agree. jQuery is the way to go. I tried
working with CF's functionality, jQuery was much
easier for me to learn.

Rick
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353813

hofar...@houseoffusion.com

unread,
Jan 8, 2013, 2:05:45 PM1/8/13
to ColdFusion Technical Talk

yes, I mistyped, should have said "I suggest NOT using" :-)
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353814

hofar...@houseoffusion.com

unread,
Jan 8, 2013, 3:22:47 PM1/8/13
to ColdFusion Technical Talk

I would advise being a bit more careful about this. I agree - don't use the
stuff built in CF directly - but I think we are all talking about the CF
"UI" stuff. I consider the CFC/returnFormat=json as part of CF's Ajax
support and I'd definitely recommend using it.
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353815

hofar...@houseoffusion.com

unread,
Jan 9, 2013, 2:15:24 PM1/9/13
to ColdFusion Technical Talk

This is a great move and highly recommended for the reasons you mention, but also if you plan to go mobile. Just a tip for you...make sure you turn CF debugging OFF when testing your jquery ajax calls because if you leave it on, it may appear that your ajax is not working at all with no js errors. Also, I would recommend you use firefox as a browser and firebug to debug your jquery code. Hope this helps.
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353817

hofar...@houseoffusion.com

unread,
Jan 9, 2013, 2:45:45 PM1/9/13
to ColdFusion Technical Talk

If you are on a properly patched (and updated) version of CF 9.01 or
higher, then CF Debugging will/should have no effect on your ajax calls,
if you are directly calling a cfc.

Steve 'Cutter' Blades
Adobe Community Professional
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer
____________
http://cutterscrossing.com


Co-Author "Learning Ext JS 3.2" Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

"The best way to predict the future is to help create it"
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353820

hofar...@houseoffusion.com

unread,
Jan 10, 2013, 2:58:04 PM1/10/13
to ColdFusion Technical Talk

You don't necessarily have to turn it off. Just select dockable.cfm - that I believe allows you to have debugging on while using Ajax.

That said, I've found it much better simply to use the firebug and web tools plugins in either FF or Chrome to debug Ajax requests.
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353822
Reply all
Reply to author
Forward
0 new messages