NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page I Hate AJAX

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 03-24-2006, 09:59 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children

I Hate AJAX


I'm working on a real-time users online counter.

It works fine in Firefox. It won't update properly in IE.

http://www.j-fx.ws/online/

Any ideas I hate this.
__________________
ask me about the internet
Jim_ is offline  
Old 03-24-2006, 10:00 PM   #2 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,272
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Okay.. Post the code first thing.. And IE and firefox have some different Javascript properties which is probley the reason. (Javascript = Backend of AJAX)

- Steve
__________________
I feel old.
iNod is offline  
Old 03-24-2006, 10:01 PM   #3 (permalink)
Senior Member
 
angisson's Avatar
Join Date: Mar 2006
Posts: 1,680
angisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant futureangisson has a brilliant future
 


Ethan Allen Fund Save The Children
can't you just use php ? witch is easy ? jw.
angisson is offline  
Old 03-24-2006, 10:01 PM THREAD STARTER               #4 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children
Code:
<div id="online">&nbsp;</div>
<script type="text/javascript" language="javascript">
if (window.XMLHttpRequest) { 
    xmlHttp = new XMLHttpRequest();
} else if (window.ActiveXObject) { 
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
function callServer(url) {
  xmlHttp.open("GET", url, true);
  xmlHttp.onreadystatechange = updatePage;
  xmlHttp.send(null);
}
function updatePage() {
  if (xmlHttp.readyState == 4) {
    var response = xmlHttp.responseText;
    document.getElementById("online").innerHTML = response;
    setTimeout('callServer("online.php");',2000);
  }
}
callServer("online.php");
</script>
Originally Posted by angisson
can't you just use php ? witch is easy ? jw.
Well, then it wouldn't be all cool and in real-time. The back-end is in PHP. Works great.
????: NamePros.com http://www.namepros.com/programming/180273-i-hate-ajax.html

IE just doesn't seem to like updating the counter.
__________________
ask me about the internet
Last edited by Jim_; 03-24-2006 at 10:08 PM.
Jim_ is offline  
Old 03-24-2006, 10:22 PM   #5 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
kindly check activex if it's blocked or disabled on your msie it might be that one.
__________________
Nabaza.com - Amaia
weblord is offline  
Old 03-24-2006, 10:24 PM THREAD STARTER               #6 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children
Nope. That's not it. It loads fine once in IE, but it doesn't update. It seems the setTimeout function is being ignored or something. I hate Internet Explorer.
__________________
ask me about the internet
Jim_ is offline  
Old 03-24-2006, 10:27 PM   #7 (permalink)
NamePros Legend
 
weblord's Avatar
Join Date: Dec 2005
Location: Philippines - www.Nabaza.com
Posts: 19,785
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
 


Autism Protect Our Planet
but since it uses activexobject it need to update on msie.
__________________
Nabaza.com - Amaia
weblord is offline  
Old 03-25-2006, 12:38 PM THREAD STARTER               #8 (permalink)
NamePros Regular
 
Jim_'s Avatar
Join Date: Aug 2005
Location: NY, USA
Posts: 610
Jim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to beholdJim_ is a splendid one to behold
 


Save The Children
It was a problem with IE caching the page. All fixed now.
__________________
ask me about the internet
Jim_ is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 07:48 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger