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



Jan 24, 2012, 6:05 AM
149 Posts

How to load in a javascript resource onClientLoad

  • Category: Dojo and Client Side JavaScript
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags:
  • Replies: 1
 
I am using the dynamic control in xPages, with the click of a button I can easily switch between different custom controls.
in my custom controls I have javascript resources, but these resources are never triggered/Loaded.
 
Not sure if this is a extlib problem or if it is a custom control problem. either way I need to find a way to load in my javascript when the custom control is loaded.
 
The event onClientLoad seem to work and I can trigger client side javascript code in this event but if the javascript file was not loaded in it does not work.
so I would like to find a way to load my client side javascript file in the onClientLoad event, possible?
 
Thanks 
Thomas 
 

 
 
 
Jan 30, 2012, 11:30 AM
261 Posts
Re: How to load in a javascript resource onClientLoad
Thomas,
 
Did you look at the dojo.io.script function? Might do what you want.
 
Mark

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