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
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
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
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
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
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
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
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
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.
I can't see any error, but I realized window.open (...) is not working.
You may have a look on that, please.
Thank you.
Hi Raihan,
Sorry but there's nothing to look at???? What errors are you seeing in the JavaScript console.
Bob
Sorry but there's nothing to look at???? What errors are you seeing in the JavaScript console.
Bob
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.
<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.
This topic is locked and no more replies can be posted.