Question
Ajax and the Request scope
Hi,
I have a cfm page with a html div tag. When the page loads a cfc function is called which in turn does a cfinclude to populate the div tag. If I do a <cfdump var="#request#"> in the included page, it outputs the request variables fine.
However, when the user clicks a button an ajax call is made to another cfc function which includes a cfm file again and returns the output of the function (as a cfsavecontent var) back to the original page and then this content is displyaed in the div tag. My problem is when I try to use a request variable in the second included page it is not available.
I think this may be because the page is called using XMLHttpRequest instead of HttpRequest?
Does anyone know if this is the case?
Thanks.
I have a cfm page with a html div tag. When the page loads a cfc function is called which in turn does a cfinclude to populate the div tag. If I do a <cfdump var="#request#"> in the included page, it outputs the request variables fine.
However, when the user clicks a button an ajax call is made to another cfc function which includes a cfm file again and returns the output of the function (as a cfsavecontent var) back to the original page and then this content is displyaed in the div tag. My problem is when I try to use a request variable in the second included page it is not available.
I think this may be because the page is called using XMLHttpRequest instead of HttpRequest?
Does anyone know if this is the case?
Thanks.
