Pass value from child window to tokeninput in parents window
Hi,
How do I pass value from a child window to tokeninput in parents window. Below is the example of my code:
Parents window:
my Jquery Tokeninput script
- <input type="text" id="tokenize" name="receiver" />
- <script type="text/javascript">
- $(document).ready(function() {
- $("#tokenize").tokenInput("root/system/application/views/ajax-user.php", {
- theme: "facebook",
- preventDuplicates: true,
- excludeCurrent: true,
- hintText: "Enter user name",
- noResultsText: "No Record,
- searchingText: "Searching..."
- });
- });
- </script>
Child windows:
-
window.opener.document.frm_upload.tokenize.value = tid+'".$penerima."'