Welcome Guest Search | Active Topics | Sign In | Register

JQuery causing formatting issues on first run. Options
mkj0
Posted: Tuesday, March 8, 2016 5:31:56 AM
Rank: Newbie
Groups: Member

Joined: 11/26/2015
Posts: 4
Hello,

I've discovered a strange issue. I have a fairly simple webpage that I'm converting to PDF. The very first time the system starts up and runs, the first PDF generated has some of the formatting wrong. Subsequent re-runs of the conversion are processed correctly.

I've narrowed the cause of the problem down to jquery. I've tried both 1.8.2 and 1.12.1. If either of these jquery.js files are listed in the <head> section, the first PDF printout is incorrect, some of the items appear under each other when they should all be side by side, and subsequent runs come out correctly.

I've tried extending the MinLoadWaitTime to 20 seconds, which hasn't made a difference. I have also removed all our own javascript, so I can confirm that although the jquery file is included, there's nothing on the page that will be calling anything in it. There are also certain instances where the contents of the page will require jquery, but not this particular page I'm testing.

Has anyone come across this before or have any suggestions?

Thanks very much,

Mike

mkj0
Posted: Tuesday, March 8, 2016 6:25:20 AM
Rank: Newbie
Groups: Member

Joined: 11/26/2015
Posts: 4
Hello again - please ignore this one. For some reason I can't explain, it was a combination of jquery, and one of our css files. This css file is actually mostly redundant and can be removed. If I remove the css file and include jquery, the first printout appears to be always correct.

Cheers,

Mike
eo_support
Posted: Tuesday, March 8, 2016 8:16:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Thanks for the update and glad to hear that you got it working. Please feel free to let us know if you run into any other problems.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.