Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
script doesn't work in IE... go figure
Old 11-10-2008, 08:07 PM script doesn't work in IE... go figure
MoForce's Avatar
Super Talker

Posts: 145
Name: Jack Shalt
Trades: 0
Code:
<script type="text/javascript">
<!-- 
//Browser Support Code
function ajaxFunction(){
    var ajaxRequest;
    
    try{
        // Opera 8.0+, Firefox, Safari
        ajaxRequest = new XMLHttpRequest();
    } catch (e){
        // Internet Explorer Browsers
        try{
            ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
            try{
                ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e){
                // Something went wrong
                alert("Givearn isn't supported by your browser!");
                return false;
            }
        }
    }
-->
<!--    
    // Create a function that will receive data sent from the server
    ajaxRequest.onreadystatechange = function(){
        if(ajaxRequest.readyState == 4){
            var ajaxDisplay = document.getElementById('ajaxDiv');
            ajaxDisplay.innerHTML = ajaxRequest.responseText;
        }
    }
    ajaxRequest.open("GET", "is_online.php", true);
    ajaxRequest.send(null); 
}

-->
   setInterval(ajaxFunction, 1);
   </script>
It's not working in IE... works like a charm in FF
MoForce is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-11-2008, 06:36 AM Re: script doesn't work in IE... go figure
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
does it;

not do anything?
do something but not what you expect?
give errors?

or something else?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-11-2008, 08:26 AM Re: script doesn't work in IE... go figure
MoForce's Avatar
Super Talker

Posts: 145
Name: Jack Shalt
Trades: 0
In IE it does nothing and doesn't give any errors
MoForce is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to script doesn't work in IE... go figure
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10955 seconds with 12 queries