Pass DIV offset during form submission JAVA / JAVASCRIPT
<p>Ok I have a filter box where I do a submit on some form variable and also some hidden variables in Java.</p>

<p>For the purpose of this question im not gonna type out all the form variables.</p>

<p>What I need to do is pass the the DIV offset also to the form as variable's <code>top</code> and <code>left</code></p>

<p>I know I can get the offset with javascript:</p>

<pre><code>var offset = $("#filterPanel").offset(); 
        //alert( $("#filterPanel").offset() ); 
         var top = offset.top;
         var left = offset.left;
          alert( "top = " +  top); 
          alert( "left = " +  left)
</code></pre>

<p>what I need to do is pass those two variable also with my form when I press my "apply" button:</p>

<pre><code>&lt;div class="sideMenuPanel" style="display: none; width: 290px; top: ${panelTop}px;" id="filterPanel"&gt;
&lt;form name="filterForm" action="process.mgmtview_update_filters" method="get"&gt;
    &lt;input type="hidden" name="metricGroup" value="${filterForm.metricGroup}" /&gt;
    &lt;input type="hidden" name="referrer" value="${referrer}" /&gt;



        &lt;tr&gt;
            &lt;td colspan="2" class="filter_section_header" style="text-align: center;"&gt;
                &lt;input style="font-size: 8pt;" name="actionButton" value="Apply" type="submit" /&gt;

            &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
&lt;/form&gt;
</code></pre>

<p></p>
