aika Posted December 3, 2011 Report Share Posted December 3, 2011 dots: laika atskaite, īstenota ar $("#countdown").load('remaining_time.php?id=1'); vajadzētu caur šo load iebarot lapai refrešu. pamēģināju padot self.location.reload(true) - diemžēl nestrādā pamēģināju sarežģīt kodu ar get? $.get("remaining_time.php?id=1", function(data){ if (data) $("#countdown").html(data); else location.reload(); taču tik un tā refrešs nenotiek. Quote Link to comment Share on other sites More sharing options...
0 sandis_m Posted December 3, 2011 Report Share Posted December 3, 2011 <meta http-equiv="refresh" content="0"> Quote Link to comment Share on other sites More sharing options...
0 aika Posted December 3, 2011 Author Report Share Posted December 3, 2011 ok ja pielabo uz if (data != "") (attiecīgi padodot tukšu rindu) - refrešs noteik. Tātad paliek jautājums tikai - vai nevar elegantāk?! Quote Link to comment Share on other sites More sharing options...
0 daGrevis Posted December 4, 2011 Report Share Posted December 4, 2011 <meta http-equiv="refresh" content="0"> Nopietni? (: window.location.reload(). Quote Link to comment Share on other sites More sharing options...
Question
aika
dots: laika atskaite, īstenota ar
vajadzētu caur šo load iebarot lapai refrešu.
pamēģināju padot
- diemžēl nestrādā
pamēģināju sarežģīt kodu ar get?
taču tik un tā refrešs nenotiek.
Link to comment
Share on other sites
3 answers to this question
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.