ozzie Posted January 2, 2007 Share Posted January 2, 2007 Hi, When logged in as the client, viewing an invoice, the bottom link download | close window is not closing the window. In fact it looks like it invoking itself: http://www.yourdomain.com/whmcs/viewinvoice.php?id=2# Cheers, Ozzie 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted January 2, 2007 WHMCS CEO Share Posted January 2, 2007 It's javascript. Something must have been blocking it on your computer. Matt 0 Quote Link to comment Share on other sites More sharing options...
adakist Posted January 2, 2007 Share Posted January 2, 2007 With most browsers, if javascript does not open the window, than javascript cannot close the window -- as a safety feature. When this window is being opened, is it being called into the main window or a _blank window? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted January 2, 2007 WHMCS CEO Share Posted January 2, 2007 An _blank window. 0 Quote Link to comment Share on other sites More sharing options...
ozzie Posted January 3, 2007 Author Share Posted January 3, 2007 It's javascript. Something must have been blocking it on your computer. Not sure about that... I have other pages on this box that have no problem with <form> <input type="button" onClick="window.close()" name="x" value="Close Window"> </form> Am I the only one with this problem? Cheers, Ozzie __________________ ...I have not lost my mind...I have got it backed up on tape somewhere... 0 Quote Link to comment Share on other sites More sharing options...
ozzie Posted January 6, 2007 Author Share Posted January 6, 2007 It's javascript. Something must have been blocking it on your computer. Matt, I'm sorry but I still think it's a bug. I've replaced <a href="#" onClick="window.close()"> by <a href="javascript: window.close();"> and it's working OK. Cheers, Ozzie __________________ Despite the high cost of living, it remains popular. 0 Quote Link to comment Share on other sites More sharing options...
adakist Posted January 6, 2007 Share Posted January 6, 2007 Hmm... I'm wondering if: <a href="#" onclick="window.close();return false;"> Would work just as well for you? I'm not sure what exactly is causing this issue, I've never seen something like this before -- what browser & version are you using? 0 Quote Link to comment Share on other sites More sharing options...
ozzie Posted January 6, 2007 Author Share Posted January 6, 2007 I'm wondering if: <a href="#" onclick="window.close();return false;"> Would work just as well for you? I'm not sure what exactly is causing this issue, I've never seen something like this before -- what browser & version are you using? Internet Exploder V6.0.2900.2180.xpsp_sp2_qdr.050301-1519 0 Quote Link to comment Share on other sites More sharing options...
ozzie Posted January 6, 2007 Author Share Posted January 6, 2007 Anyway, my problem is solved. Don't mind if it's not regarded as a bug. It's now on my mods-register together with template changes so I can take care of it in coming releases. Cheers, Ozzie 0 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.