My scenario is get the window height using javascript and have to pass the value to the coldfusion variable and set the value to the vlc player in cfm page.
$(window).height()
I m well aware of the ways how client side variable can be sent to server side like:
- Form submit
- Ajax
But if apply anyone from above i have to
pass all the page default variable along with height but i don't want to send other variables, now my logic of getting height is in between one of the Cfincludes.
The page which i m working is one of the many includes so please provide some ideas.
case:
A.cfm
var javaScritheight = 1200;
B.cfm
<cfinclude template ="B.cfm?width="100%"&height=#javaScritheight#">
<cfparams name="width" default="240">
<cfparams name="height" default="360">
<video id="player" width="#width#" height="#height#">URL</video>
I should pass the javascript variable to another coldfusion page via cfinclude. Is it possible or am i misunderstanding the coldfusion functionalities? please share your thoughts.