I am building an app where the markup is dependent on some PHP conditionals(the markup changes regarding the user that is logged in).

And from there js code must also reflect that fact…and the way to do it is this:
I just look the markup being present… (with JS code) and then act accordingly.

I just wanted to hear how do you judge the above strategy…for modifying JS code according to user logged in.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.