
sleuth
Enthusiast
Dec 13, 2000, 12:01 PM
Post #2 of 3
(4788 views)
|
Re: HELP! I want to send data with screen refresh
[In reply to]
|
Can't Post
|
|
You can do this with the use of iframes & java script. Put this html on the page that you'll have your link to your cgi on, <IFRAME SRC="page.htm" WIDTH=1 HEIGHT=1 CROLLING="no" FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0></IFRAME> And in the page.htm file, put this script in the head <script language = "javascript> <! -- self.window.name="little_frame"; // --> </script> And now go back to the page with the iframe on it, and the link, in the link make sure that it's targeted to "little_frame", by putting target="little_frame" in the links html. Then when you click the link, the page / your cgi will load unnoticed in that small Iframe which is 1 x 1 pixel, you'll never see it load, and this way the data will be able to be sent to your script. You can also target forms the same way. In the <form tag just add the target="little_frame"> Sleuth
|