XF 2.2 How i can call function xenforo2 scritp

fahad ashraf

Well-known member
I write a script


JavaScript:
!function ($, window, document, _undefined)

{


    XF.MyCallBack = function (isSuccess, error)

    {



        if (isSuccess) {

         

        } else {

       

        }

    };


}(jQuery, this, document);

Call code :

JavaScript:
  <script>

parent.window.XF.MyCallBack(1, '');
</script>



how i can call it ?? for example if i call i got error



parent.window.XF.MyCallBack is not a function but on xenforo1 when i call it with XenForo it was working fine please let me know i am doing wrong


Thanks
 
Top Bottom