Model-Glue with Ajax - Watch Your Debug Output

Sorry about the non-creative title for the post. So last night I was working on a MG application and came across a bit of Spry in my page that would not work. I goofed around a bit with the code, assuming I had done something wrong. Double checked that the Spry libs were being included - yep. I checked everything - nothing seemed off. Then (after an hour) I remembered that I had read somewhere in my Model-Glue research that having debugging turned on can interfere with JavaScript. If you've done any work with MG you'll know that your views are actually rendered within the debug output - which means your JS is potentially included more then one time. Sure enough, turning off debug output did the trick and everything was back on track. Just another bump in the road on the path to MG enlightenment.

Comments
I'm sure I've read this somewhere too but had forgotten. Thank you for the reminder Todd.
# Posted By Boyan | 7/19/07 10:16 AM
Little discussed tidbit:
Do a <cfset request.modelGlueSuppressDebugging = true /> and it'll shut off debugging during that request...
# Posted By Joe Rinehart | 7/19/07 11:25 AM
Joe - at the risk of embarassing myself - why not just a cfsetting?

Wait I get what you're saying that would shut off the MG debug output too. But the MG debugging was not goofing me - turning off the CF debugging worked. Am I missing something?
# Posted By todd sharp | 7/19/07 2:59 PM
I modified the CF Debug Template to address this limitation.

More info here:

http://www.jeffryhouser.com/index.cfm/2007/1/10/CF...
# Posted By Jeffry Houser | 7/20/07 7:38 PM
And for the sake of letting you know, I got an error when submitting the previous comment.
# Posted By Jeffry Houser | 7/20/07 7:39 PM

Calendar

Sun Mon Tue Wed Thu Fri Sat
     12
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       

Subscribe

Enter your email address to subscribe to this blog.

Tags

actionscript ajax blogging cfsnippets coldfusion flash forms flex funny stuff misc model-glue off topic personal project learn slidesix sql

Recent Comments

Adding Auto Generated Code Downloads to BlogCFC
ada5fsa said: http://www.mountwashingto... http://extjs.com/forum/me... h... [More]

BlogCFC Survey #2
ada5fsa said: http://www.mountwashingto... http://extjs.com/forum/me... h... [More]

Most Difficult Captcha Of All Time
kokkooo said: [url=http://synchrophase.info/...]消費者金融 ブラック[/url] [url=http://geji-geji.com/]消費者金融ブラック[/url] [url=http... [More]

Most Difficult Captcha Of All Time
kokkooo said: <a href="http://synchrophase.info/...">消費者金融 ブラック</a> <a href="http://gej... [More]

Using A PlayStation 2 HDD In Your PC
Vodin said: Well dang. Thanks man, my uncle who owns a Video Game shop had a PS2 harddrive in the junk box, I sn... [More]

RSS


coldfusionbloggers

FullAsAGoog MXNA

Consumed By Feed-Squirrel.com