i try to capture the return value from a server, this is how it work, is a sms API, when i want to check some sms status, need to access some url with some parameter (.aspx), the page will return some value with the same url , e.g of return value will be like 1122:12345647, when i view source , it show only the value...
i trying to grape that value so i can store it in the database, i tried this method xmlhttp, it work in the IE, i can show the return value and store it, but it doesnt work on FF and Chrome. I try in the live server as well , it still doesn't work. Do i need any adjustment or any other method to recommend?
Code:
thanksCode:function httpGet(theUrl) { var xmlHttp = null; xmlHttp = new XMLHttpRequest(); xmlHttp.open("GET", theUrl, false); xmlHttp.send(null); return xmlHttp.responseText; }



Reply With Quote



Bookmarks