954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cfgrid onendrequest.cfm

Hi to all....

i signed up in google analytics and i copied paste the javascript code in a onendrequest.cfm file. The issue is that in pages that i use cfgrid, the content of the cfgrig is not showning up at all. I have the header bar the footer bar but nothing in between. Of course when i remove the analytics code everyhting works perfeclty. Is there anyway to disable the google script for a specific subfolder? ex www.sth.gr/googlefree/

zero_sequence
Newbie Poster
17 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

I don't know about onRequestEnd.CFM. But with Application.cfc the "targetPage" is passed into the onRequestEnd function. You could use string functions to determine if you should include the analytics. Maybe onRequestEnd.cfm has something similar?
http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d42.html

arrgh
Posting Whiz
381 posts since Dec 2008
Reputation Points: 32
Solved Threads: 47
 

Thank you.. i cant believe i didnt think sth so simple as a if statement...
As one great man once said "Dare to be stupid"...

Thank you arrgh!

zero_sequence
Newbie Poster
17 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Well that's how we all learn, right :) Glad you figured it out.

arrgh
Posting Whiz
381 posts since Dec 2008
Reputation Points: 32
Solved Threads: 47
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You