Page 1 of 1

Accessing A javascript Function from a SP.UI.Status HTML

Posted: 06 Nov 2015
by NassosNET
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

Re: Accessing A javascript Function from a SP.UI.Status HTML

Posted: 09 Nov 2015
by rostislav
Try defining your function globally like this:

Code: Select all

window.myFunction = function () {....};