Refresh another IFRAME Window
I have this line that works when I click the word Test:
<a href="SearchThis.php" target="SearchThisFrame">Test</a>
How can I re-code this so I do not have to click the word Test or select anything, just have it execute?
This should be simple, just starring at it to long.......
Updat开发者_JAVA技巧e: This sort of works. It will open SearchThis.php but not in the target window, only the window it was executed from. This is inside php and the last line. I am close to a solution.....
header("Location:\\SerchThis.php target=SearchThisFrame");
Thanks to Gerben we have a solution. I cant tell you how many post and how many searches I did for this solution, nothing worked except this one. I have added code to include passing a php generated variable. I placed this script at the very end, past the last ?> and before the /body tag in order to pick up the varable.
<script>
window.open('SearchThis.php?passthis=<?php echo "Variable"; ?>', 'SearchThisFrame');
</script>
<script>
window.open('SearchThis.php', 'SearchThisFrame');
</script>
精彩评论