Ajax Talk - Asynchronous javascript and xml discussion board
 FAQ   Search    Usergroups      Register   Profile   Check your messages   Log in 
Signup now to enjoy a range of free membership advantages !!
Ajax Talk - Moderators Wanted
my problem with IE it is not support my script

 
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX Help
View previous topic :: View next topic  
Author Message
ojopc
New one
New one


Joined: 17 Sep 2008
Posts: 1

PostPosted: Wed Sep 17, 2008 1:35 pm    Post subject: my problem with IE it is not support my script Reply with quote

hi, every body
i created the fallowing code
but, the Internet Explorer not support this function
how i do to fixed it.
Code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl">
<head>
<script type='text/javascript' language='JavaScript'>
var ajaximg= '<br /><center><img src="ra/ajax_loader.gif" alt="" />';
var ajaxtxt= ' <span style="font: normal 12px tahoma;">wait</span></center>';
// request XML
function IH_RequestObject() {
   var req;
   if(window.XMLHttpRequest){
      req = new XMLHttpRequest();
   } else if(window.ActiveXObject) {
      req = new ActiveXObject("Microsoft.XMLHTTP");
   } else {
      alert('Cannot create XMLHTTP instance');
   }
   return req;
}
var AjaxHTTP = IH_RequestObject();
//************************************************
//  actions & functions
//************************************************
function ajax_post(file, responseID){
var thisform= document.form;
var city= 'city='+thisform.city.value;
    var parameters = city;
    AjaxHTTP.onreadystatechange =  function()
    {
        var ajaxTXT = document.getElementById(responseID);
        ajaxTXT.innerHTML = ajaximg+ajaxtxt;
        if(AjaxHTTP.readyState == 4 && AjaxHTTP.status == 200){
                var response = AjaxHTTP.responseText;
                    if(response) {
                        ajaxTXT.innerHTML = response;
                }
        }
    }
    AjaxHTTP.open('post', file);
    AjaxHTTP.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    AjaxHTTP.send(parameters);
}

</script>
</script>
<div>
<form name='form' method='post' target='_self' style='margin:0;' action="timelines.php">
<input type='button' name='getcity' value='تحديث' onclick="ajax_post2('getcity.php')" />
</form>
</div>
<div id='requesting'>
response here
</div>


thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 Advertisements
 XML & Copyright Notice 
    


Powered by phpBB © 2001, 2005 phpBB Group

What is according to Wikipedia: Ajax Web2.0 XML E4X


Link to our site:

  


del.icio.us digg spurl wists simpy newsvine blinklist furl blogmarks yahoo! myweb smarking ma.gnolia segnalo reddit fark technorati cosmos


Normal Bookmark


Partner Button Links:
Codecrunch.com: Webmaster Tutorials    One Ajax


Partner Text Links:
quomon | web20log | ajaxmatters | tableless | 456bereastreet | music charts | gift ideas | competitions | free xbox 360 | link trade ?


Credits:
it consultancy & project management lead generation zoekmachine optimalisatie steal these buttons seo expert