How can i open Thickbox from a form and feed it with data ?
Posted
by Mark Dekker
on Stack Overflow
See other posts from Stack Overflow
or by Mark Dekker
Published on 2010-04-04T17:26:17Z
Indexed on
2010/04/04
17:33 UTC
Read the original article
Hit count: 405
I have a simple search php script, within that script there is some html and javascript to make a search input field and a button. What i am trying to do is when someone enters a search, and presses submit, thickbox opens, and the results will be displayed in the thickbox.
What i have so far is the search field and button, when i press submit, it briefly shows the thickbox, and than is overloaded by the result page, but than with no search results.
Here is the code:
<form method="get">
<input type="text" name="merk" size=10 style="font-weight: bold; background-color:#D5DF23;">
<input type="image" name="merk" class="thickbox" onclick="document.location.href='searcher.php?keepThis=true&TB_iframe=true&height=520&width=800';" src="zoek1.jpg" width="110" alt="Zoek" onMouseOver="this.src='zoek2.jpg'" onMouseOut="this.src='zoek1.jpg'">
</form></input>
© Stack Overflow or respective owner