I am having an issue where some template script code works in development mode but does not work in production mode.
So my base question is: what is the difference between template processing in development mode vs non-development mode?
I am not a front end developer and I guess I am likely doing something (simple?) the wrong way.
I need to be able to submit an additional form to a different website as part of the log in process (in order to create tracking cookies). I added some simple javascript (and jQuery?) code to the login template.
Everything works fine on my local test system in development mode. Both the overylay and normal login page have the <script> code and I get cookies from the external site.
In production mode the overlay is missing the <script> code, the login page has it, but both get an error ($ is undefined).
How should I morph my simple 5 lines of script to make it work in production mode.
If it matters: my code loads a form from a third party site and defines a submit handler to submit the form when the user logs in.
So my base question is: what is the difference between template processing in development mode vs non-development mode?
I am not a front end developer and I guess I am likely doing something (simple?) the wrong way.
I need to be able to submit an additional form to a different website as part of the log in process (in order to create tracking cookies). I added some simple javascript (and jQuery?) code to the login template.
Everything works fine on my local test system in development mode. Both the overylay and normal login page have the <script> code and I get cookies from the external site.
In production mode the overlay is missing the <script> code, the login page has it, but both get an error ($ is undefined).
How should I morph my simple 5 lines of script to make it work in production mode.
If it matters: my code loads a form from a third party site and defines a submit handler to submit the form when the user logs in.