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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML HTTP POST

Status
Not open for further replies.

russellcox

Programmer
Jun 6, 2008
1
GB
Hi All,
I'm new to XML. I hoping to build a members portal and there are a few features which need to talk to the remote server using the XML HTTP POST method. Take my below code extract:-

//
<form method="POST" action="<textarea name="requestxml">
<EnableCustomer>
<Customer>
<ID>273490</ID>
</Customer>
<Authentication>
<Username>myusername</Username>
<Password>mypassword</Password>
</Authentication>
</EnableCustomer>
</textarea>
<input type="submit" value="Submit" />
</form>

This form works perfectly however the response is a page on the remote server? I'm looking to display the response somewhere on my page. Does this make sense?

Any ideas how I can get the response to display in my page?

Thanks

Russ
 
>how I can get the response to display in my page?
You can set up an iframe and target the form response to it. Like this.
[tt]
<form method="POST" action=" [blue]target="iframename"[/blue]>
<!-- etc etc -->
</form>
<!-- etc etc and somewhere -->
[blue]<iframe name="iframename" frameborder="0"></iframe>[/blue]
<!-- etc etc -->
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top