Welcome Guest Search | Active Topics | Sign In | Register

AJAX loaded data not showing Options
Kevin
Posted: Tuesday, February 3, 2015 4:52:38 AM
Rank: Member
Groups: Member

Joined: 8/27/2013
Posts: 11
Hi,

I have the below code working for one scenario but it doesn't work properly with EO.PDF.

What should happen is the page loads, content gets added via AJAX, JQuery modifies content and then the PDF gets generated.

The PDF shows the modified HTML but isn't showing the AJAX loaded content.

I've tried triggering the PDF manually and adding MinLoadWaitTime.

Any ideas?

$(function () {
doAjaxStuff();

//I do other HTML things here which do show in the PDF file.

setTimeout(function() { if (typeof(eopdf) !='undefined') eopdf.convert(); }, 500);
});

function doAjaxStuff() {
$.ajax({
type: "POST",
url: 'url',
data: JSON.stringify({
'Id': 1
}),
contentType: "application/json; charset=utf-8",
success: function (data) {
//I insert HTML here but the PDF version doesn't get it
},
dataType: 'json'
});
});
eo_support
Posted: Tuesday, February 3, 2015 9:11:35 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Please try to use the debug console feature to see if you can see any error message. See here for more information on how to use debug console:

http://www.essentialobjects.com/doc/4/htmltopdf/js.aspx

If that still does not reveal any problem, you can try to post the page/application online so that we can try to convert it here to see if we can see the same problem and then go from there.

Thanks!



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.