Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
javascript in a template HTML
#2
Templates are processed on the server. You can't write out the template on the client side using JS because the Delphi code does not have access to it.

I suggest you detect the browser on the server and alter which template file the page uses based on that. The template processor system is pluggable as well if you want to clone it to build this functionality into a new template processor.
Reply


Messages In This Thread
javascript in a template HTML - by bhainak - 01-20-2021, 07:42 PM
RE: javascript in a template HTML - by kudzu - 01-20-2021, 10:49 PM
RE: javascript in a template HTML - by bhainak - 01-21-2021, 08:33 AM
RE: javascript in a template HTML - by kudzu - 01-21-2021, 03:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)