Jan 24, 2012, 1:05 AM
150 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?

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