Forums

[Solved] Print button not working in lightbox

raihan 18 Feb, 2013
Hi,
I have created my form in lightbox popup. At the end of the form I kept a Confirmation Page, which shows all the data a user enters, then submit. In the confimation page I have also kept a print option.

Problem is, when I work with the form in normal web page, the print button works fine. I also uses same form in a lightbox, but the print button here doesn't work.

Could anyone please help there? I will be very grateful to u. I have used for my tests, from the FAQ examples.

Thanking you.


Raihan
GreyHead 19 Feb, 2013
Hi Raihan,

Impossible to say from the information here. At a guess some of the JavaScript being used to run the print isn't being loaded or is broken in the lightbox. You'd need to take a look with the developer tools in your web browser to see just what is happening.

Bob
raihan 19 Feb, 2013
Hi Bob,

Thnx for ur reply.

Which part or which way I should carry out the process and send u the result, so u can realize what is happening, pls tell me? I think that will be the better way. Though I have used the Debugger. But it's not showing any error.

Thanking you.

Raihan
GreyHead 19 Feb, 2013
Hi Raihan,

The ChronoForms Debugger won't show an error because the print code uses JavaScript in the browser. Do you see any errors in your web browser JavaScript console?

Bob
raihan 25 Feb, 2013
Sorry, a bit late to response on this topic.
I can't see any error, but I realized window.open (...) is not working.
You may have a look on that, please.
Thank you.
GreyHead 25 Feb, 2013
Hi Raihan,

Sorry but there's nothing to look at???? What errors are you seeing in the JavaScript console.

Bob
raihan 25 Feb, 2013
I have partially solve the problem, with a very simple code:
<input type="button" value="Print" onclick="if(window.print)window.print();return false;">

But, it prints whole page, instead of only the Data portion. I have tried window.open, but it doesn't work from lightbox. So, how I can print only the data portion, please?
Thanking you.
raihan 22 Mar, 2013
Lots has to change in script.responsive.js file
This topic is locked and no more replies can be posted.