Ajax example with .net webservice

Get help using Construct 2

Post » Mon Dec 30, 2013 5:05 pm

Hi, is there any .net developer that can provide an example of how to call a .net webservice with the ajax object.

I've been trying to make this http://www.scirra.com/arcade/example/2716/ajaxexample1 example work. but it does not. I used a WAMP server in this case.

I guess is an outdated example.

B
3
Posts: 3
Reputation: 255

Post » Mon Dec 30, 2013 5:24 pm

Ajax structure is like:

In your app add:
Ajax -> submit post

set adres to the page that will give you results when you called it, much like traditional web forms. (tag: requestpage)

The web server will handle the request like a re3gular webform, process it, and reply with an appropiate page.
The content of this reply page is relayed back to your application.

In your application, you add event:


Ajax, on request complete " requestpage "

The action after this event will hold the variable AJAX.LAstData, which will be the content of the relayed reply page.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Post » Mon Dec 30, 2013 8:20 pm

thats what I've been trying to do, with php and/or .net I'm going to upload a copy of a simple project, following your instructions
B
3
Posts: 3
Reputation: 255


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, dop2000 and 10 guests