title: Coldfusion : get window height in javascript and pass it to coldfusion variable in cfinclude
body: <p>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.</p>
  
  <pre><code>$(window).height()
  </code></pre>
  
  <p>I m well aware of the ways how client side variable can be sent to server side like:</p>
  
  <ol>
  <li>Form submit</li>
  <li>Ajax</li>
  </ol>
  
  <p>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 <code>Cfinclude</code>s. </p>
  
  <p>The page which i m working is one of the many includes so please provide some ideas.</p>
  
  <p><strong>case</strong>:</p>
  
  <p>A.cfm</p>
  
  <pre><code>var javaScritheight = 1200;
  </code></pre>
  
  <p>B.cfm</p>
  
  <pre><code>&lt;cfinclude template ="B.cfm?width="100%"&amp;height=#javaScritheight#"&gt;
  &lt;cfparams name="width" default="240"&gt;
  &lt;cfparams name="height" default="360"&gt;
  
  
  
  &lt;video id="player" width="#width#" height="#height#"&gt;URL&lt;/video&gt;
  </code></pre>
  
  <p>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.  </p>