FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.



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?
 
Thanks 
Thomas 
 

 
 
 
Jan 30, 2012, 6: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

FORUM PLAN UPDATE
Date revision: This forum will remain open to new posts and responses until December 1, 2018. (After that date, you will still be able to view and search the forum.) Also, we're taking a second look at the best place to host future conversation. For now, keep using this forum, and stay tuned for more news.