That pretty much s**s
Here is my 'solution':
<script language="javascript">
function MyFunction()
{
var x = document.forms[0];
var sOldAction = x.action;
var sOldTarget = x.target;
x.action = "http://www.the target website here.com";
x.target = "_blank";
document.forms[0].submit();
x.target = sOldTarget;
x.action = sOldAction;
}
</script>
Of course, more data is posted but that doesn't matter.
"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com>
schreef in bericht news:uw**************@TK2MSFTNGP04.phx.gbl...
you can use a hidden frame. note as browser security advances, this
approach should not work as cross site posting should not be allowed by
the browser.
-- bruce (sqlwork.com)
"Edwin Knoppert" <ne**@hellobasic.comwrote in message
news:45**********************@text.nova.planet.nl. ..
>>I sometimes have the need to call other websites using POST.
most of the times i can make it to work bbut in this case it becomes
harder.
I have a masterpage and a particular page needs to submit some hidden
data via POST.
Since the FORM tags are inside the page and trhus enclosed in the form
tags of the masterpage i get unstable behaviour.
What should i do.
It's a bit of problem to put the form at the end of the source, unless i
dump it at the end via some asp.net register function???
I don't need another solution, i simply need to post some data to another
webserver, the result is a file download.
But if not i use target to get me a new popup.
The client does the post, not the server.