Boylett Posted May 5, 2008 Share Posted May 5, 2008 Hi. I'm trying to make a script which is an online live map for a game server. It uses AJAX to read mapdata.php and update dots on the map to show players positions. At the moment, I just have mapdata.php emitting random positions just for testing. Basicly all that should be happending at the moment is at the centre of the map there should be a blue moving about. In Opera and IE it performs the AJAX call only once then leaves the dot in one place (so it's sort of working). In Firefox it works perfectly - the blue dot moves about randomly in the centre. The centre of the map is at 3000,3000 pixels. Just put your scroll bars in the middle and you should see it. The page is here: http://www.xendot.com/map/ I hope someone can figure this out, thanks. Link to comment https://forums.phpfreaks.com/topic/104224-browser-compatibility/ Share on other sites More sharing options...
rhodesa Posted May 5, 2008 Share Posted May 5, 2008 Save yourself the trouble and use the AJAX functionality from a JS library. They handle all the browser differences. A nice lightweight one is jQuery Link to comment https://forums.phpfreaks.com/topic/104224-browser-compatibility/#findComment-533580 Share on other sites More sharing options...
Boylett Posted May 5, 2008 Author Share Posted May 5, 2008 I'll have a look at it Link to comment https://forums.phpfreaks.com/topic/104224-browser-compatibility/#findComment-533596 Share on other sites More sharing options...
rhodesa Posted May 5, 2008 Share Posted May 5, 2008 Here are some examples of how easy AJAX is with jQuery: http://www-128.ibm.com/developerworks/library/x-ajaxjquery.html#simplifying-ajax Link to comment https://forums.phpfreaks.com/topic/104224-browser-compatibility/#findComment-533598 Share on other sites More sharing options...
Boylett Posted May 5, 2008 Author Share Posted May 5, 2008 Now it works in Opera and Firefox only. Not Internet Explorer edit: i.e. same result in Internet Explorer as was before but Opera is getting the perfect result like firefox. Link to comment https://forums.phpfreaks.com/topic/104224-browser-compatibility/#findComment-533615 Share on other sites More sharing options...
rhodesa Posted May 5, 2008 Share Posted May 5, 2008 Works for me in IE6. Try clearing your temporary internet files and reloading the page. Link to comment https://forums.phpfreaks.com/topic/104224-browser-compatibility/#findComment-533622 Share on other sites More sharing options...
Boylett Posted May 5, 2008 Author Share Posted May 5, 2008 I did a CTRL+F5 and it was the same. btw im testing in IE7 Link to comment https://forums.phpfreaks.com/topic/104224-browser-compatibility/#findComment-533638 Share on other sites More sharing options...
rhodesa Posted May 5, 2008 Share Posted May 5, 2008 Sorry, I don't have access to IE7 on this machine... Link to comment https://forums.phpfreaks.com/topic/104224-browser-compatibility/#findComment-533646 Share on other sites More sharing options...
Boylett Posted May 5, 2008 Author Share Posted May 5, 2008 I guess I'll just have to wait until jQuery updates to support IE7 then. Link to comment https://forums.phpfreaks.com/topic/104224-browser-compatibility/#findComment-533648 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.