NetTalk Central

Author Topic: Sequence of includes in the header  (Read 1876 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Sequence of includes in the header
« on: August 03, 2020, 10:39:00 PM »
Hi,

I want to use a Bootstrap function on a specific page so I'm adding  a link to the BS file(s) in SetCustomHTMLHeaders. However, the files are included before the JQuery files that NT uses - no matter if I set the header before or after the parent call. And since the bs-function in question is dependent on some jQuery js I get an error ("x is not a function").

So my question is: how can I add stuff to the header after what is generated by NT?

Peter

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11155
    • View Profile
Re: Sequence of includes in the header
« Reply #1 on: August 03, 2020, 11:42:37 PM »
you should add CSS files via the web server nettalk extension \styles\files tab

you should add js files via the web server nettalk extension \scripts tab

cheers
Bruce

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Sequence of includes in the header
« Reply #2 on: August 04, 2020, 12:06:06 AM »
Hi Bruce,

You are absolutely right! <BG>

Thanks
Peter