Trying to make what should be a straightforward AJAX call using jQuery's getJSON function. Here's a simplified version of my page code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-US">
<head>
<script src="/wconnect/Scripts/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function ()
{
alert('json call');
$.getJSON('acewareuniversity.com/wconnect/awJSON.awp?&Host=EXT&target=:DATAPATH\zip.dbf;zipcity,zipstate;zipstate=[KS]',function (xObj)
{
alert('result received');
})
})
</script>
</head>
<body>
<h1>Test of awJSON</h1>
<a href='acewareuniversity.com/wconnect/awJSON.awp?&Host=EXT&target=:DATAPATH\zip.dbf;zipcity,zipstate;zipstate=[KS]'>Show JSON</a>
</body>
</html>
But I cannot get the callback function to execute. I can click the Show JSON link (which points to the same URL used by getJSON) and I get back the expected JSON string, so I know the server side method is working. That was further verified by activating Fiddler and running the getJSON request - the JSON string shows up in Fiddler but I never see that callback alert.
If I point the same call against my localhost app it works fine.
Would appreciate any help figuring out what could be wrong here...
--stein
FYI, those links will only work from authorized clients, so don't try to test the page from your system.