webgio / Rotativa

Rotativa, /rota'tiva/. Make Pdf from Asp.Net MVC. Available on Nuget https://www.nuget.org/packages/Rotativa
http://letsfollowtheyellowbrickroad.blogspot.it/search/label/Rotativa
MIT License
621 stars 224 forks source link

jQuery not running #215

Closed JoopStringer closed 4 years ago

JoopStringer commented 4 years ago

I have ASP.NET application succesfully integrated Rotativa. However I now have a page with jQuery script and it is not executed when using the ViewAsPdf action Any solutions ? I added "--javascript-delay 10000", no difference. If I run the page in browser, it's ok and executing jQuery.

Using Rotativa 1.7.3 from NuGet, jQuery 3.1.1

webgio commented 4 years ago

Is jquery making Ajax calls?

Il sab 23 mag 2020, 11:05 Joop Stringer notifications@github.com ha scritto:

I have ASP.NET application succesfully integrated Rotativa. However I now have a page with jQuery script and it is not executed when using the ViewAsPdf action Any solutions ? I added "--javascript-delay 10000", no difference. If I run the page in browser, it's ok and executing jQuery.

Using Rotativa 1.7.3 from NuGet, jQuery 3.1.1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/webgio/Rotativa/issues/215, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKCTPN4PEGJYCEAJC3CIGDRS6GUJANCNFSM4NILTZMA .

JoopStringer commented 4 years ago

Hi Gio,

No AJAX calls. After some digging I found this post * https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4341

So I created an additional JS file and now it looks like it's working. Also tried ActionAsPDF but then I end up in authentication issues -> PDF shows login screen...

webgio commented 4 years ago

Great, thanks!

Il sab 23 mag 2020, 15:50 Joop Stringer notifications@github.com ha scritto:

Hi Gio,

No AJAX calls. After some digging I found this post * wkhtmltopdf/wkhtmltopdf#4341 https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4341

  • Override jquery >= 3.3.1 functions because of wkhtml2pdf 12.5 issues

So I created an additional JS file and now it looks like it's working. Also tried ActionAsPDF but then I end up in authentication issues -> PDF shows login screen...

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/webgio/Rotativa/issues/215#issuecomment-633057591, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKCTPN25YYSCASRYULMMDDRS7IB7ANCNFSM4NILTZMA .