i downlaoded this script and done nothing to it and it dosnt seem to work it just sits on loading content does anyone know whats wrong or can post a code that works:
Code:http://www.dhtmlgoodies.com/index.html?whichScript=ajax-dynamic-content
| SitePoint Sponsor |




i downlaoded this script and done nothing to it and it dosnt seem to work it just sits on loading content does anyone know whats wrong or can post a code that works:
Code:http://www.dhtmlgoodies.com/index.html?whichScript=ajax-dynamic-content
Animated Chatrooms - www.121chatrooms.net




i dont have firebug please test it at http://220.245.192.227/test/ajax
Animated Chatrooms - www.121chatrooms.net
Mike your link doesn't work.




pklz try now the website loads in firefox
Last edited by Mike4x4s; Apr 13, 2008 at 00:46.
Animated Chatrooms - www.121chatrooms.net




i have this new code that is ajax and refreshes the page every few seconds but still has a flicker in ie the url to this is http://220.245.192.227/test/ticker
code:
index.php
Code:<head> <script type="text/javascript"> var page = "test2.php"; function ajax(url,target) { // native XMLHttpRequest object document.getElementById(target).innerHTML = ''; if (window.XMLHttpRequest) { req = new XMLHttpRequest(); req.onreadystatechange = function() {ajaxDone(target);}; req.open("GET", url+"?sid="+Math.random(), true); req.send(null); // IE/Windows ActiveX version } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.onreadystatechange = function() {ajaxDone(target);}; req.open("GET", url+"?sid="+Math.random(), true); req.send(); } } setTimeout("ajax(page,'scriptoutput')", 2000); } function ajaxDone(target) { // only if req is "loaded" if (req.readyState == 4) { // only if "OK" if (req.status == 200 || req.status == 304) { results = req.responseText; document.getElementById(target).innerHTML = results; } else { document.getElementById(target).innerHTML="ajax error:\n" + req.statusText; } } } </script> </head> <body onload="ajax(page,'scriptoutput')"> <span id="scriptoutput"></span></p> </body>
Animated Chatrooms - www.121chatrooms.net




i really want it to refresh the page automaticalyl with no flicker effect when the text is updated inside the text file store/mike.txt is it possible?
Animated Chatrooms - www.121chatrooms.net


No, it is not possible to refresh the IE page without the flicker. Their browser isn't made to work that way.
Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript




so are you saying with ajax always images will flicker? no matter what and there is no way around it
Animated Chatrooms - www.121chatrooms.net


When using proper ajax techniques that's not an issue.
If the page is flickering then something else may be going on.
I shall bow now to ajax experts who may come along.
Programming Group Advisor
Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
Car is to Carpet as Java is to JavaScript
Bookmarks