Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not sure if I get you right :) You want to somehow get POST data from parent window form into flashvars javascript object at your child window? </p> <p>If I get you right, it is pretty simple: you can access parent's window data from child window. Just change javascript code at your child window from this: </p> <pre><code>var flashvars = {}; flashvars.spinID="12345";flashvars.prizeTier="1";flashvars.totalSpins="100";var params = {}; var attributes = {}; swfobject.embedSWF("rrw_new_Final_ianb.swf", "flashDiv", "775", "819", "10.0.0", false, flashvars, params, attributes); </code></pre> <p>Into this:</p> <pre><code>var flashvars = {}; // here you get access to the form of the parent window var parentForm = window.opener.document.getElementsByTagName('form')[0]; // and here you can populate your flashvars with values from that form's inputs: flashvars.spinId = parentForm.spinID.value; flashvars.prizeTier = parentForm.prizeTier.value; // and so on. Of course, you can do it with any javascript framework var params = {}; var attributes = {}; swfobject.embedSWF("rrw_new_Final_ianb.swf", "flashDiv", "775", "819", "10.0.0", false, flashvars, params, attributes); </code></pre> <p>Ah, and I beleive you need to use javascript to open new window, not form's target attribute. Like this: </p> <pre><code>&lt;form action="/" method="post" onsubmit="window.open()"&gt; </code></pre> <p>You can customize size, position and other properties of the child window, like it is shown here: <a href="http://www.javascript-coder.com/window-popup/javascript-window-open.phtml" rel="nofollow">http://www.javascript-coder.com/window-popup/javascript-window-open.phtml</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload