Instantly share code, notes, and snippets.

What would you like to do?
Using the previous example, you can store the final Open XML snippet in a data attribute (e.g. data-base64) using jQuery
$'base64', data)
and if you want to get the data again, use the following code:
Where $this is a localised pointer to the image tag in jQuery. This code usually runs from a click event.
if (!$this.hasClass('local')) {
//do what we did before (but remember to apply the local css class once it's finished...
} else {
//previously clicked on the image
{ coercionType: "ooxml" },
function (asyncResult) {
if (asyncResult.status == "failed") {
//Again. Do something!
} else {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment