kharbat Posted June 19, 2006 Share Posted June 19, 2006 [code] var file = "<?php echo $file_dir; ?>"; parent_form = window.parent.document.getElementById('Send_Form'); hidden = parent.document.createElement("input"); hidden.name = "attachment_"+id; hidden.id = "attachment_"+id; hidden.type = "hidden"; hidden.value = file; parent_form.appendChild(hidden); </script> [/code]This is a part of the orginal code, this code exists in a page inside inline frame. It attempts to create a hidden field in the parent page. There is an error in the last line.. how can i solve it??!!on firefox it tells me "parent_form has no properties"thanks Quote Link to comment Share on other sites More sharing options...
nogray Posted June 20, 2006 Share Posted June 20, 2006 This worked find for me, just make sure all your variables are defined (like the id) and the form id in the parent window is 'Send_Form' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.