Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function createRequestObject()
- {
- var ie=document.all;
- if(ie){
- return new ActiveXObject("Microsoft.XMLHTTP");
- } else {
- return new XMLHttpRequest();
- }
- }
- var http = createRequestObject();
- function detail(id )
- {
- http.open('get', 'index2.php?option=com_klinik&act=detailRegisPay&i='+id );
- http.onreadystatechange = handleResponse;
- http.send(null);
- //alert('myTarget='+id+' '+handleResponse);
- }
- function handleResponse(){
- if(http.readyState == 4)
- {
- var response = http.responseText ;
- document.getElementById('otherPay').innerHTML =response;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement