Hi all you eminent StackOverflowers!
I am wondering if it is possible to call a php-script running a asp.net application using jQuery (Win7,VS2010,IIS)? Have tried some various tutorials and one setup is the one below:
My jQuery ajax-call:
$.ajax(
{
post: "GET",
url: "js/script.php"
}).done(function (data) {
alert(data);
}).fail(function (jqXHR, textStatus, errorThrown) {
alert(textStatus);
});
My Php-script:
<?php echo '<div id="test">Hello, World!</div>';?>
Calling the ajax-function just alerts the raw php-script text, i.e.
"<?php echo '<div id="test">Hello, World!</div>';?>"
And doesn't effect anything else.
What am I doing wrong? I have understood that it SHOULD be possible to run this on an asp-server.
(PS. I have looked into the suggested topics when posting this but noone have written that they get the actual php-text back DS.)