Is there AJAX support?
I have a problem, it seems that on the page i have to send an AJAX request in order to send a message. Does the Esmska support XMLHttpRequest(); ? Here is a send method I have done. Maybe you can see the problem.
function send() {
var re, match, match2, content, params, postData, ret
// check that login and password supplied
if (LOGIN.length == 0 || PASSWORD.length == 0) {
return false
}
// start page
logout()
postData = ["username", LOGIN, "password", PASSWORD, "autologon", "no", "logon", "true"]
content = EXEC.postURL("http://
// login sucesesfull?
re = /<input name="number" class="text" type="text">/
match = re.exec(content)
if (undefined != match) {
logout()
return false
}
// send message
SendMSG(
return true;
}
var sendRequest;
var statusRequest;
var checkmsgid;
function createRequest(){
var request = null;
try {
request = new XMLHttpRequest();
} catch (trymicrosoft) {
try {
request = new ActiveXObject(
} catch (othermicrosoft) {
try {
request = new ActiveXObject(
} catch (failed) {
alert('Din browser er ikke underst ttet. Opdater venligst din browser.');
}
}
}
if(request != null){
return request;
}
}
function SendMSG(
sendRequest = createRequest();
sendRequest.
sendRequest.
sendRequest.
}
function logout() {
EXEC.getURL("http://
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
And there is the javascript code from the gateway.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Esmska Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Kamil Páral
- Solved:
- Last query:
- Last reply: