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



Feb 13, 2012, 7:04 AM
26 Posts

xhr cancelled

  • Category: Dojo and Client Side JavaScript
  • Platform: Not Applicable
  • Release: 8.5.2
  • Role: End user,Developer
  • Tags: dojo,xpages
  • Replies: 2
Hi All,
 
I would give a brief about my application before I would detail in the issue that I am facing. The default landing page of my database is an xpage. The landing xpage contains an iFrame and few links. All the links on the xpage opens up in the iFrame. For. e.g. Link 1 and Link 2 opens xpage 1 and xpage2 in the iFrame. 
 
Now the issue is that while the xpage1 is loading in the iFrame and has not finished loading (progress bar seen in the browser) and the Link2 is been clicked, the an error message pops up saying "Error: xhr cancelled. Do you want to refresh the page?".
 
If I click on the link2 after the xpage1 has finished loading in the iFrame, there are no issues.
 
Appreciate guidance on this.
 
Thanks,
Yusuf
Feb 14, 2012, 1:31 PM
272 Posts
Re: xhr cancelled
Hi Yusuf,
 
the problem is caused by Ajax calls which are still running while XPage 1 is loaded.
You should try to prohibit clicking a link until the Page in the IFrame has finished loading, f.e. by using the Standby Dialog from XSnippets.
 
Hope this helps
Sven
 
 
P.S.
Don't use IFrames!
Feb 15, 2012, 4:36 AM
26 Posts
Re: xhr cancelled
 Hi,
 
Thanks for your reply. I would check out the xSnippets.  
 
My reason for using iFrame is that on click of some other links, I need to call a servlet on the WAS server which inturn renders a IBM Lotus Form where the user enters the data  that needs to be saved in Domino and Oracle. 
 
I couldn't find any solution for displaying the Lotus Form on my dashboard other than using the iFrame. I would heartily appreciate if you could provide some suggest to this scenario. 
 
Thanks, 
Yusuf Afini 

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