Query object in main page available to iframe?
Hello, everyone.
What is the best way to make a query object in a document available to an iframe (with a .cfm file as the source of the iframe) in that document?
Thanks,
^_^
Hello, everyone.
What is the best way to make a query object in a document available to an iframe (with a .cfm file as the source of the iframe) in that document?
Thanks,
^_^
>> So, which is best, Application scope, or Session scope?
If the data is user specific, then probably the session scope. Performance-wise, either one should be fine.
>> And will a simple CFSET SESSION.VariableName = CFQUERYOBJECT work? I didn't think a simple variable could contain a complex object?
What makes a variable simple or complex is its content.
<cfset session.key = 1 /> Creates a simple variable
<cfset session.key = structNew() /> Creates a complex variable
Yes, session.key = queryObject will work just find.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.