Function in client script of List page is undefined (v2023)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
dheeksha2511
User
Posts: 8

Function in client script of List page is undefined (v2023)

Post by dheeksha2511 »

I have a function in client script in list page, but when i call the function, it shows the function is undefined and loadjs is automatically loaded when I generate the file, if I comment the loadjs, it is working fine and in some other pages even if I comment the loadjs it is not working, when I put that code in global code, then it is working.
How can i fix this.
Thank you.


mobhar
User
Posts: 11727

Post by mobhar »

You may post your code for more discussion.


arbei
User
Posts: 9384

Post by arbei »

You should add your function to window object, similar to the example for client side Global Code.


Post Reply