Is this a valid url parameter in jquery.ajax()?
Posted
by udaya
on Stack Overflow
See other posts from Stack Overflow
or by udaya
Published on 2010-04-06T07:52:11Z
Indexed on
2010/04/06
8:03 UTC
Read the original article
Hit count: 115
Is this a valid url parameter in jquery.ajax(),
<script type="text/javascript">
$(document).ready(function() {
getRecordspage();
});
function getRecordspage() {
$.ajax({
type: "POST",
url: "http://localhost/codeigniter_cup_myth/index.php/adminController/mainAccount",
data: "",
contentType: "application/json; charset=utf-8",
global:false,
async: false,
dataType: "json",
success: function(jsonObj) {
alert(jsonobj);
}
});
}
</script>
The url doesn't seem to go to my controller function...
© Stack Overflow or respective owner