does Prince's javascript currently support JQuery GET/POST? i'm getting error No transport when trying to run it, but i'm not sure if this is a CORS problem or Prince not supporting this usage at the moment.
Forum › How do I...?
JQuery ajax support
Hi mikeday,
Great news!
Could you please point me to a sample code?
I was not able to find anything regarding this in User Guide section.
Are there any *hidden* documentation I'm not ware of?
Great news!
Could you please point me to a sample code?
I was not able to find anything regarding this in User Guide section.
Are there any *hidden* documentation I'm not ware of?
Here is a simple example for a GET request:
There is no documentation for AJAX yet; we are planning to support more of the standard interface later.
var x = new XMLHttpRequest();
x.open("GET", "http://www.princexml.com", no);
x.send();
alert(x.responseText);
There is no documentation for AJAX yet; we are planning to support more of the standard interface later.
Is it safe to assume that XMLHttpRequest and all his properties are supported?
Or is it only what's in the example?
Or is it only what's in the example?
Pretty much only the example, maybe a couple of other properties, but all downloads are synchronous, only GET is supported, that's about it.
Note: if this is too limiting, you could just use JavaScript to write to the output log or console and have an external script do something more complicated with the data.
That's what I'm doing, will read from console and then work on it.
This is a little bit of topic, but I'm thinking about speed. Is Prince CPU or RAM or equally both hungry?
This is a little bit of topic, but I'm thinking about speed. Is Prince CPU or RAM or equally both hungry?
Difficult to answer that, as the units are not comparable. Easier to try running Prince on some sample documents and see how it goes. In general I guess it is better to have more RAM, as a slower cpu will just make the conversion take longer, but running out of RAM can make the conversion fail entirely.
Hi mikeday,
Thanks for the answer. Well I'm looking into AWS instances and you can get CPU or RAM optimized instances, that's the reason for this question.
I'll try to play around with samples, my goal is as fast as possible.
Mike
Thanks for the answer. Well I'm looking into AWS instances and you can get CPU or RAM optimized instances, that's the reason for this question.
I'll try to play around with samples, my goal is as fast as possible.
Mike