Accessing A javascript Function from a SP.UI.Status HTML
hi there,
i have the following problem, i have a function in the javascript section of the spform and at the end of that function i create a SP.UI.Status.addStatus and placing in the html of the status with an <a> tag and on the onclick() event i call my function again (try again link) but a get an error that the function is undefined.
do you have any idea how to overcome this problem?
thnx in advance
Nassos
i have the following problem, i have a function in the javascript section of the spform and at the end of that function i create a SP.UI.Status.addStatus and placing in the html of the status with an <a> tag and on the onclick() event i call my function again (try again link) but a get an error that the function is undefined.
do you have any idea how to overcome this problem?
thnx in advance
Nassos
Try defining your function globally like this:
Code: Select all
window.myFunction = function () {....};
-
- Information
-
Who is online
Users browsing this forum: No registered users and 5 guests