Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to post data to a different domain and recieve a response

Reply
Thread Tools

How to post data to a different domain and recieve a response

 
 
Julia
Guest
Posts: n/a
 
      10-20-2004


Hi,
I have a web application running inside an organization
and I need to post some data to an asp page sitting outside the organization

How do I get failure or success error from the outside page?
currently I am using IFrame,but I wonder if I get 404(server down) how do I
know I go an error?

BTW:since it is an organization i am open to other solution,cause i might be
able to install
activx,NET components or any other stuff.

Thanks in advance




 
Reply With Quote
 
 
 
 
McKirahan
Guest
Posts: n/a
 
      10-20-2004
"Julia" <> wrote in message
news:#...
>
>
> Hi,
> I have a web application running inside an organization
> and I need to post some data to an asp page sitting outside the

organization
>
> How do I get failure or success error from the outside page?
> currently I am using IFrame,but I wonder if I get 404(server down) how do

I
> know I go an error?
>
> BTW:since it is an organization i am open to other solution,cause i might

be
> able to install
> activx,NET components or any other stuff.
>
> Thanks in advance


What does the outside ASP page do?

Could you be more specific?

Is ts like using a <form> on another site?

Here's an example of doing a reverse phone number lookup:

<html>
<head>
<title>lookup.htm</title>
</head>
<body>
<form action="http://www22.verizon.com/utilities/reverselookup/"
method="get" name="ypform">
<input type="hidden" name="process" value="yes">
<input type="hidden" name="A2" value="718">
<input type="hidden" name="X3" value="257">
<input type="hidden" name="P2" value="4956">
</form>
<script type="text/javascript">
document.ypform.submit();
</script>
</body>
</html>

This returns a page with the result whether the number is found or not.


 
Reply With Quote
 
 
 
 
Julia
Guest
Posts: n/a
 
      10-20-2004
The outside page act like a webservice,it update a record in the data base
and return success or failed


"McKirahan" <> wrote in message
newsUrdd.503085$8_6.73907@attbi_s04...
> "Julia" <> wrote in message
> news:#...
> >
> >
> > Hi,
> > I have a web application running inside an organization
> > and I need to post some data to an asp page sitting outside the

> organization
> >
> > How do I get failure or success error from the outside page?
> > currently I am using IFrame,but I wonder if I get 404(server down) how

do
> I
> > know I go an error?
> >
> > BTW:since it is an organization i am open to other solution,cause i

might
> be
> > able to install
> > activx,NET components or any other stuff.
> >
> > Thanks in advance

>
> What does the outside ASP page do?
>
> Could you be more specific?
>
> Is ts like using a <form> on another site?
>
> Here's an example of doing a reverse phone number lookup:
>
> <html>
> <head>
> <title>lookup.htm</title>
> </head>
> <body>
> <form action="http://www22.verizon.com/utilities/reverselookup/"
> method="get" name="ypform">
> <input type="hidden" name="process" value="yes">
> <input type="hidden" name="A2" value="718">
> <input type="hidden" name="X3" value="257">
> <input type="hidden" name="P2" value="4956">
> </form>
> <script type="text/javascript">
> document.ypform.submit();
> </script>
> </body>
> </html>
>
> This returns a page with the result whether the number is found or not.
>
>



 
Reply With Quote
 
McKirahan
Guest
Posts: n/a
 
      10-20-2004
"Julia" <> wrote in message
news:#...
> The outside page act like a webservice,it update a record in the data base
> and return success or failed
>


[snip]

We still need more information.

Is it a public page that we can look at?

How is it invoked? By a URL, form (get or post), or ?

How does it "return success or failed"?


 
Reply With Quote
 
Julia
Guest
Posts: n/a
 
      10-20-2004

I didn't write it yet,
it can return whatever I like
1.a text string("true","false")
2.XML document
3...

"How is it invoked? By a URL, form (get or post), or ?"

In general what I am looking for is something similar to webservice,but
since webservice cannot
called cross domain I cannot use the HTC webservice


Thanks.




"McKirahan" <> wrote in message
news:3Wsdd.160451$He1.129687@attbi_s01...
> "Julia" <> wrote in message
> news:#...
> > The outside page act like a webservice,it update a record in the data

base
> > and return success or failed
> >

>
> [snip]
>
> We still need more information.
>
> Is it a public page that we can look at?
>
> How is it invoked? By a URL, form (get or post), or ?
>
> How does it "return success or failed"?
>
>



 
Reply With Quote
 
McKirahan
Guest
Posts: n/a
 
      10-20-2004
"Julia" <> wrote in message
news:O$...
>
> I didn't write it yet,
> it can return whatever I like
> 1.a text string("true","false")
> 2.XML document
> 3...
>
> "How is it invoked? By a URL, form (get or post), or ?"
>
> In general what I am looking for is something similar to webservice,but
> since webservice cannot
> called cross domain I cannot use the HTC webservice
>
>
> Thanks.
>


[snip]

Would you describe your intended processing in more detail?

For example,

a) User fills out form and clicks "submit"
b) Form data is validated on the client and invokes a page in another
domain
c) Page on other domain attempts to update a database table with the form
data and returns a status code\

If something like the above, what happens on the calling page during and
after the call to the other page?


 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      10-20-2004
Julia wrote:
> Hi,
> I have a web application running inside an organization
> and I need to post some data to an asp page sitting outside the
> organization
>
> How do I get failure or success error from the outside page?
> currently I am using IFrame,but I wonder if I get 404(server down)
> how do I know I go an error?
>
> BTW:since it is an organization i am open to other solution,cause i
> might be able to install
> activx,NET components or any other stuff.
>
> Thanks in advance


You can use XMLHTTPRequest in your client-side code (or ServerXMLHTTPRequest
in your server-side code). Google should provide some information about
this. If you are asking how to do this in the client, then follow-ups should
be posted in a client-side scripting newsgroup such as one of the .scripting
groups, or one of the groups with "dhtml" in their names.

Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 
Reply With Quote
 
Bill Puetz
Guest
Posts: n/a
 
      10-22-2004
Julia,

Here's an excellent component for doing what you want, and much more:

http://dart.com/powertcp/webenterprise.asp

I've only been using it for a short time, but both the product and tech
support have been outstanding. I needed a robust way to handle gift card
transactions, and WET fits the bill perfectly. I have no connection to
Dart, other than being a happy customer.

Regards,

Bill


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Recieve Post, New Session Won't Stick, Cookielss Jimmy Jazz ASP .Net Security 0 09-02-2005 09:58 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57