I need to enable a button when a JS file is finished loading. The JS file which I am using is a builder from WebSphere Portlet Factory (WPF). How can I check if the JS file is finished loading so that I can enable the button?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
How are you loading the file? If it’s an ordinary
<script>tag, the next Javascript file will not be run until all previous files have finished loading or died trying.Other techniques (like
$.ajax) have explicit provisions for completion callbacks.