CloseDocument javascript issue
CloseDocument javascript issue
Hello,
So when I call the java script method DocuViewareAPI.CloseDocument and then proceed to call DocuViewareAPI.PostCustomServerAction it does not work...
The loading indicator shows up but the PostCustomServerAction is never reached server side so I can not execute the code to load a new document...
How can I close the current document and then proceed to open another document?
Thanks,
Marc Cramer
So when I call the java script method DocuViewareAPI.CloseDocument and then proceed to call DocuViewareAPI.PostCustomServerAction it does not work...
The loading indicator shows up but the PostCustomServerAction is never reached server side so I can not execute the code to load a new document...
How can I close the current document and then proceed to open another document?
Thanks,
Marc Cramer
Re: CloseDocument javascript issue
Hello Marc,
I don't understand the link between PostCustomServerAction and loading a document.
Can you please explain what you are exactly trying to achieve so we can understand how to assist?
Thank you
I don't understand the link between PostCustomServerAction and loading a document.
Can you please explain what you are exactly trying to achieve so we can understand how to assist?
Thank you
Re: CloseDocument javascript issue
Hello,
I have a list of thumbnails that are clickable...
Some of them are formats that are view-able (pdf, tif etc) others that need to be downloaded (mp4, xlsx etc)
When the thumbnail is clicked for a view-able it calls a java script function that uses PostCustomServerAction
to post back to server so that the file can be loaded via file stream since it is on a share that is not part of the website.
And when you click on a non view-able item I would like to close the current document in viewer.
When I do this and then attempt to click on a view-able item then PostCustomServerAction is never fired...
Thanks,
Marc Cramer
I have a list of thumbnails that are clickable...
Some of them are formats that are view-able (pdf, tif etc) others that need to be downloaded (mp4, xlsx etc)
When the thumbnail is clicked for a view-able it calls a java script function that uses PostCustomServerAction
Code: Select all
function loadDocumentByIndex(index)
{
DocuViewareAPI.PostCustomServerAction('DocuVieware1', true, 'loadByIndex', index, null, null);
}
And when you click on a non view-able item I would like to close the current document in viewer.
When I do this and then attempt to click on a view-able item then PostCustomServerAction is never fired...
Thanks,
Marc Cramer
Re: CloseDocument javascript issue
Of the PostCustomServerAction code is never executed server side it is probably because you are missing something.
My bet would be on the event subscription but I can't be sure without having access to the source code.
Could you please provide a standalone application replicating the issue that we can debug so we can investigate this further?
Thank you
My bet would be on the event subscription but I can't be sure without having access to the source code.
Could you please provide a standalone application replicating the issue that we can debug so we can investigate this further?
Thank you
Who is online
Users browsing this forum: No registered users and 1 guest