Is there a way to do a javascript call such as window.open except just send the information in the background? I need to send information to a company if they press onclick but dont want a popup to annoy the user every time they click a radio button. Notice this info doesnt need to be stored into a database, just sent to a url. Marc
You know of a way? Like maybe post the values to thispage.php and then that page would open a frame to http://www.company.com/record.php?name=$name&email=$email ?? But how would you make a ajax post even hidden? I need to take variables and pretty much have the server send the information. Marc
You can have a hidden image and change its src to the page that you want requested. <img id="hiddenimg" style="visibility: hidden;" /> <script type="text/javascript"> .... document.getElementById("hiddenimg").src = "http://www.website.com/?val1=123&val2=456"; .... </script> Code (markup):
How would I onclick this? Would I onclick to a post ajax function which then opened up a post.php which then had the hidden image? Or is there a way to onclick directly to that? That is a great idea if it really will submit so the other website gets the information. Marc