I insered the google +1 button in my page, and whene i click on it, the +1 works fine but the share dialog steel open with no content, until i click on other area in the page to make it dissapears
You have some idea why this not work plz ?
Solved !
The problem was the version of mootools I use in my website, it was the 1.2.4 version which overwrites the JSON object provided by the browser. The share dialog fails when trying to call JSON.
I edit the mootools js file, and added this code in the end :
JSON.parse = JSON.decode;
JSON.stringify = JSON.encode;
Now everything works fine.
Related
I am working with PDFTron - WebViewer,
Want to know how to handle PDF loading errors and showing customized message, in case of web-viewer
Regards
Bhupesh
The easiest way to do this right now is to modify the ErrorModal component in the UI and replace the error messages there. You'll need to string match the old message and replace it with your own.
The component is located at ui/src/components/ErrorModal/ErrorModal.js and you'll want to change the onError function.
This link describes more about how to edit and build the UI https://www.pdftron.com/documentation/web/guides/ui/advanced-customization
WebViewer has methods that let you display a modal Warning message box, which can be dismissed with its Confirm button or a click outside the dialog, or you can display a modal Error box which has no dismiss buttons and requires you to hit [F5] to refresh the page.
https://www.pdftron.com/api/web/UI.html#.showWarningMessage
https://www.pdftron.com/api/web/UI.html#.displayErrorMessage
Using these is more straightforward than editing the UI code from the pdftron github repo.
I added embedded sender view to my site. If I set default to drag&drop view (send=1), everything is working fine. I can press go back to document view.
After submitting, it will redirect to the return url that I provide.
However, if I set the default to document view (send=0), when I press the go back. I receive a blank page.
thanks for posting this. I believe this is a bug and should be fixed. we'll update this thread when we have a proper fix in place. thanks!
I have issue from client end with jsf 1.2 as explained below
I am navigating on click on command button to the url below
test/editProject.jsf?value=123
If any field are missing I am using addErrorMessage('id','string') and returning fail in validation method. The error message is displayed under that component.. I am fine till this..
The problem is the url is displayed as
test/editProject.jsf
Here the value queryString is missing..if the user correct the error and click on save it works fine..it is working as per jsf cycle
Issue
My client is pressing enter on the browser url tab which has the url test/editProject.jsf. I told him to use F5 button to refresh but he didn't agreed.. any idea how to retrieve the query string back on getting error message.
I have used redirect in my project but I think here its not good idea to use..
Please let me known if you any solution for this..
Thanks for help.
I am having a Xpage with some links. One of my link call EXIT having window.close() to close the current tab in browser.
In browser when I am opening the document(Xpage holds the document) from the view and clicking on the EXIT link, it closes the current tab/window.
Whereas, I am redirecting the same xpage from SSJS using context.redirectToPage() . When I clicking on the EXIT link, it is not closing the tab/window.
In Javascript console: Scripts may not close windows that were not opened by script
Anyone help me.
Thanks in Advance,
Karthick
As the Javascript console says: Window.close() needs a window.open() to work.
See http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Whats_New_in_852_for_XPages#window.close%28%29+support
Update:
You can create your response document using client-side JS - including opening the window. The following will do that:
// get parent document id
docid='#{javascript:document.getNoteID()}';
// create the URL
url="response.xsp?action=newDocument&parentId="+docid;
// open a new window with the response document
window.open(url);
"In Javascript console: Scripts may not close windows that were not opened by script"
Thats you're answer to the question. Javascript can't close tabs / windows which are not created by javascript.
You could try the following:
How to close browser window
you can try this trick im using.
window.open('', '_self', '');
window.close();
I have had users click the like button on my website but the counter remains at one.
I am using html5 version
I have also tried the iframe version with same results
My site is dvmark.com
I was having the same problem, cleared my browser history and now it is showng the most updated number. Hope this helps.