is it possible to call identity restful api with javascript
I want to call identity restful api with ajax in my html page,my code as below:
<html><
<script type="text/
<script type="text/
var xmlHttp;
function initXmlHttp()
{
if(window.
else if(window.
}
function statechange()
{
if(xmlHttp.
}
function sendRequest()
{
var data={
"auth":{
},
}
};
initXmlHttp();
xmlHttp.
xmlHttp.
xmlHttp.
xmlHttp.
xmlHttp.
}
</script>
</head>
<body>
<div id="id1"
<input type="button" value="test api" onclick=
</body>
</html>
I still get 404 error information in firefox firebug console,I get totally confused,any help will be appreciated!
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask jiangkai zhang for more information if necessary.