[Skip to main content](#vessel-content)

#   Alert:The document cannot change while Printing...

##

- **[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")**
- [![lrazov's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2532-lrazov "View lrazov's Profile") Topic Author
- [ Offline](/forum/user/2532-lrazov)

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago [\#19762](#19762) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  *[Alert:The document cannot change while Printing...](/forum/4-how-to/19762-alert-the-document-cannot-change-while-printing#19762 "Hi,  I am getting the alert: &quot;The document cannot change while Printing or in Print Preview&quot; when I do the following steps:  Open an order invoice page, click on print button, cancel, go back on user panel page and when I try accessing any page from the user panel page - the alert popups. I also noticed that if I cancel printing, the browser window stays in loading mode. I now can not stop it popping up!  Is there a way to fix or disable the alert?")* was created by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")*

Hi,

I am getting the alert: "The document cannot change while Printing or in Print Preview" when I do the following steps:

Open an order invoice page, click on print button, cancel, go back on user panel page and when I try accessing any page from the user panel page - the alert popups. I also noticed that if I cancel printing, the browser window stays in loading mode. I now can not stop it popping up!

Is there a way to fix or disable the alert?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5NzYyLWFsZXJ0LXRoZS1kb2N1bWVudC1jYW5ub3QtY2hhbmdlLXdoaWxlLXByaW50aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#19773](#19773) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Alert:The document cannot change while Printing...](/forum/4-how-to/19762-alert-the-document-cannot-change-while-printing#19773 "Hi,  I am getting the alert: &quot;The document cannot change while Printing or in Print Preview&quot; when I do the following steps:  Open an order invoice page, click on print button, cancel, go back on user panel page and when I try accessing any page from the user panel page - the alert popups. I also noticed that if I cancel printing, the browser window stays in loading mode. I now can not stop it popping up!  Is there a way to fix or disable the alert?")*

We didn't had that problem in our tests. Could you try on our demo website to see if you have the problem there too ?

If so, could you give the browser your using ? Could you try with another browser ?

Otherwise, could you give an access to these pages on your website so that we can see the problem (you can use the contact form in that case) ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5NzYyLWFsZXJ0LXRoZS1kb2N1bWVudC1jYW5ub3QtY2hhbmdlLXdoaWxlLXByaW50aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")**
- [![lrazov's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2532-lrazov "View lrazov's Profile") Topic Author
- [ Offline](/forum/user/2532-lrazov)

Less More

- Posts: 112
- Thank you received: 0
-
-

15 years 4 months ago -  15 years 4 months ago [\#19780](#19780) by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile")  Replied by *[lrazov](/forum/user/2532-lrazov "View lrazov's Profile")* on topic *[Re: Alert:The document cannot change while Printing...](/forum/4-how-to/19762-alert-the-document-cannot-change-while-printing#19780 "Hi,  I am getting the alert: &quot;The document cannot change while Printing or in Print Preview&quot; when I do the following steps:  Open an order invoice page, click on print button, cancel, go back on user panel page and when I try accessing any page from the user panel page - the alert popups. I also noticed that if I cancel printing, the browser window stays in loading mode. I now can not stop it popping up!  Is there a way to fix or disable the alert?")*

In your demo you don't seem to give access to user orders page where a user could print an invoice - that's were the issue occurs.

I've tried in IE9 - the issue didn't happen. It happened in Firefox 4.0.1. But after I ran upgrade to 5.0 the issue resolved by itself. Weird...

Thank you for your help.

Last edit: 15 years 4 months ago by [lrazov](/forum/user/2532-lrazov "View lrazov's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5NzYyLWFsZXJ0LXRoZS1kb2N1bWVudC1jYW5ub3QtY2hhbmdlLXdoaWxlLXByaW50aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 4 months ago [\#19790](#19790) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Alert:The document cannot change while Printing...](/forum/4-how-to/19762-alert-the-document-cannot-change-while-printing#19790 "Hi,  I am getting the alert: &quot;The document cannot change while Printing or in Print Preview&quot; when I do the following steps:  Open an order invoice page, click on print button, cancel, go back on user panel page and when I try accessing any page from the user panel page - the alert popups. I also noticed that if I cancel printing, the browser window stays in loading mode. I now can not stop it popping up!  Is there a way to fix or disable the alert?")*

We also did some search on our end. It's indeed a problem which appears in Firefox sometimes: [ geekswithblogs.net/leesblog/archive/2009...-my-hiney-today.aspx](http://geekswithblogs.net/leesblog/archive/2009/08/14/jquery-kicked-my-hiney-today.aspx)

Apparently, the solution is to increase the delay of the popup closing. You can do that by changing the line:
$js = "window.addEvent('domready', function() {window.print();setTimeout(function(){try{ window.top.document.getElementById('sbox-window').close(); }catch(err){ window.top.SqueezeBox.close(); }}, 50);});";

to:
$js = "window.addEvent('domready', function() {window.print();setTimeout(function(){try{ window.top.document.getElementById('sbox-window').close(); }catch(err){ window.top.SqueezeBox.close(); }}, 4000);});";

in the file components/com_hikashop/views/order/view.html.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE5NzYyLWFsZXJ0LXRoZS1kb2N1bWVudC1jYW5ub3QtY2hhbmdlLXdoaWxlLXByaW50aW5nP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
