This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Aug 27, 2011, 5:54 PM
3 Posts

How to submit Xpage via client side javascript

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1
 
Hello,
 
I am running some ajax calls in the client javascript.  The page was being submitted prior to ajax calls being completed.
I placed a return false in code to prevent this.  But now I cannot see how to submit the page so the server side code can run.
I tried a return true but it did not work.  
 
 
Any ideas?
 
Kev
Aug 28, 2011, 3:07 AM
272 Posts
Re: How to submit Xpage via client side javascript
Hi,
 
in my opinion it is a better idea to prevent users to click the submit button until AJAX refreshes have been completed.
To do this, you can use the OnStart- and OnComplete-events of the AJAX refreshes to show / hide a <div>-layer which prevents the user to click the buttons (a loading overlay).
 
Sven

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal