Keep in mind that variables are processed server side while the frameset
tags are processed client side.  That means that ONLY the page you call with
the form action can see the form variables - in this case that page will
likely have the FRAMESET tags and nothing else.  Once that page is served up
the browser initiates requests for the frame sources - by this time your
form variables are gone.  Your only option here is to generate the frame
tags on the fly using CF and put the form variables in the url string for
the SRC attribute.  This way when the browser makes the request for the
frame source your variables will be passed in again through the url scope.  

You could also store the variables in a persistant scope, but it's probably
not the best idea.  If you do decide to do this there is one very easy way
to do it:
        <cfset session.theForm = form> (this works because form is actually
a struct pointer which is getting copied into the session.theForm variable)
        then you can access the variables later like this
#session.theForm.fieldName#



 

Bryan Love Macromedia Certified Professional
Internet Application Developer / Database Analyst
Telecommunication Systems Inc.
[EMAIL PROTECTED]
 

"What father would hesitate to say 'if there must be trouble let it be in my
day, that my child may have peace'?"
        - Thomas Paine, An American Crisis



-----Original Message-----
From: Lon Lentz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 2:16 PM
To: CF-Talk
Subject: Frames and variable scoping


  I have a frameset that is called through a form post. How should I 
refer to those posted variables within a frame inside that frameset? Do 
I pass them as url variables in the template call of the frame tag?



Lon Lentz
Applications Developer and CyberEntomolgist
http://ProofitOnline.Com - Free 15 Day Trial

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to