Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues > ColdFusion

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-23-2010, 12:03 PM   PM User | #1
FlyByNight
New to the CF scene

 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
FlyByNight is an unknown quantity at this point
cfdiv, cfinvoke and variable scope.

Hi Everyone,

I am having a problem with a cfdiv tag that I am using in one of my pages, say page1.cfm. It is bound to a url, page2.cfm which then calls a cfc to retrieve some data. The data is passed back from the cfc to page2.cfm and I can output the data and manipulate it etc. However, back in page1.cfm where my cfdiv resides I don't have access to any of that data.

I guess I assumed that the cfdiv would work along the same lines as cfinclude when it comes to variables and just act as if it were all in the same page but it appears not.

I can kind of get around it by assigning the cfc's resultant data to a session variable but it throws an error when a new session is spawned and the page is first visited as the session variable doesn't exist yet. Again I could get around this by testing for it's existence etc but it seems like a convoluted way to solve this problem.

Am I missing something fundamental here?
FBN.
FlyByNight is offline   Reply With Quote
Old 02-24-2010, 06:09 AM   PM User | #2
Gjslick
Regular Coder

 
Join Date: Feb 2009
Location: NJ, USA
Posts: 476
Thanks: 2
Thanked 70 Times in 69 Posts
Gjslick will become famous soon enough
Hmm, I'm not getting a clear picture of exactly what you're trying to do. Post your code though and I'll take a look.

-Greg
Gjslick is offline   Reply With Quote
Reply

Bookmarks

Tags
cfdiv, cfinclude, cfinvoke, scope, variable

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:53 PM.


Advertisement
Log in to turn off these ads.