Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Post a form without a reply page

Status
Not open for further replies.

ronsig

Programmer
May 24, 2001
54
IL
IS there a way to send a post message to the server as a way of notification, without the server sending back a reply page?

I know I can use a different (invisible) frame to do this, but I was wondering if I can do it without the hassle.

Thanks,
Ron
 
Post your form to a hidden frame:
Your page:
<html>
<frameset cols=&quot;80%,20%&quot;>
<frame id=&quot;content&quot; name=&quot;content&quot; src=&quot;software.asp&quot;>
<frame id=&quot;frmcode&quot; name=&quot;frmcode&quot; src=&quot;tcode.asp&quot;>
</frameset>
</html>

software.asp:
this page contains the form like so:
<form id=&quot;frmHidden&quot; name=&quot;frmHidden&quot; target=&quot;frmcode&quot; action=&quot;tcode.asp&quot;>

tcode.asp:
This should set the innerHTML of a label or div on the software page if you want the user to know there is a reaction from the server.

If you want to use this for a voting cheeter:
in software.asp
function fncDoALot() {
document.getElementById('frmHidden').submit();
setTimeout('fncDoALot();',500)
}

setTimeout('fncDoALot();',500)

But a smart page checks your IP address or other headers.
 
If you've read through my post, you'd have seen that I already know how to post through a frame, I asked about doing away with that!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top