RogerB Posted March 18, 2009 Report Share Posted March 18, 2009 Is there a way to not use the java for downloads and logging in? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 18, 2009 Administrators Report Share Posted March 18, 2009 There's no java being used, or javascript for that Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 19, 2009 Author Report Share Posted March 19, 2009 <script type="text/javascript"> window.location = "<?php echo $redir;?>"; </script> There isn't?? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 19, 2009 Administrators Report Share Posted March 19, 2009 Oh that, that's for the redirects. I thought you meant for the actual login. Well you can change it to a: <a href="<?php echo $redir;?>">Click here to continue</a> There's that "holding page", for the downloads to count the download, and the login to complete Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 19, 2009 Author Report Share Posted March 19, 2009 It looks fine in IE, but in FF it looks bad, the whole page gets sucked up to the top.......... Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 19, 2009 Administrators Report Share Posted March 19, 2009 The script tags shouldn't be doing that, they're invisible to the html Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 19, 2009 Author Report Share Posted March 19, 2009 Here is what i Mean. It doesn't do this in IE. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 19, 2009 Administrators Report Share Posted March 19, 2009 A div isn't closed or something? And it works with the script tag taken out? Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 19, 2009 Author Report Share Posted March 19, 2009 If I take the script out it doesn't work. As stated before it doesn't do that in IE.... Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 19, 2009 Administrators Report Share Posted March 19, 2009 I mean, if you take the script out, does it still mess up the page? Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 19, 2009 Author Report Share Posted March 19, 2009 Ok, this makes no sense but I had to remove one closing div tag, then I removed the script and it looked good. I added the java script again and it starts pulling the page up again. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 19, 2009 Administrators Report Share Posted March 19, 2009 Try this: <script type="text/javascript" language="javascript"> //<![CDATA[ window.location = "<?php echo $redir;?>"; //]]> </script> Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 19, 2009 Author Report Share Posted March 19, 2009 Nah, same deal. didn't work Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 20, 2009 Administrators Report Share Posted March 20, 2009 That's weird, I haven't heard of that problem happening with the script tag I'll see what I can find Quote Link to comment Share on other sites More sharing options...
RogerB Posted March 20, 2009 Author Report Share Posted March 20, 2009 This script works good in both FF and IE...... <script> //specify redirect url var redirecturl="PUT THE URL HERE!!" //specify pause duration before redirection (in seconds) var pausefor=2 //DONE EDITING function postaction(){ if (window.timer){ clearInterval(timer) clearInterval(timer_2) } window.location=redirecturl } setTimeout("postaction()",pausefor*1000) </script> Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 20, 2009 Administrators Report Share Posted March 20, 2009 That can be redone as: <script type="text/javascript"> setTimeout(function() { window.location = "<?php echo $redir;?>"; }, 2000); </script> Little more compact 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.