Why would client scripts stop working for one table?

davejr
Giga Contributor

For one table only in one environment today the client scripts are not working.

for example, in an onLoad client script,

I have to start the script box with onLoad() to get the code to execute,

and it is only for one table, (it is an extension of the task table)

but also the case for older client scripts for that table

I cannot see any change to the table itself to cause this.

1 ACCEPTED SOLUTION

Jim Coyne
Kilo Patron

You might have a script error in another Client Script or UI Policy that is failing and that will cause code which would normally run after that to not run.



You can use your browser's developer tools/console to see if an error is happening, or take a look at this post - Internet Explorer Really Can Be Your Friend


View solution in original post

12 REPLIES 12

Hi David,



Could you please be more specific, as these type of error will require a look into system.



-


Cheers,


Akash


davejr
Giga Contributor

For example, a new onLoad client script for that table, with this code


-------------


function onLoad() {


    //Type appropriate comment here, and begin script below


    alert('loadtest');


}


--------------


displays nothing when the form is loaded.


this however, does:


-----------------------------


onLoad();


function onLoad() {


    //Type appropriate comment here, and begin script below


    alert('loadtest');


}


----------------------


Hey,



It seems that something else is breaking.


Do one thing, set false to "glide.ui.js_includes" property and debug which script is throwing error.



After finding out, please set true to "glide.ui.js_includes" again.



Hope this would help you.



-Cheers,


Akash


Jim Coyne
Kilo Patron

You might have a script error in another Client Script or UI Policy that is failing and that will cause code which would normally run after that to not run.



You can use your browser's developer tools/console to see if an error is happening, or take a look at this post - Internet Explorer Really Can Be Your Friend


davejr
Giga Contributor

Thank you.   This looks very promising.   There is a missing variable in that environment on the form.