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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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... Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.