NetTalk Central

Author Topic: Static site - Ntform JS generated outside /body and /html end tags  (Read 3123 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
    • Email
Hi,

Busy with a new static site and inserting a form on a static page results in the JS forthe form being generated outside the closing tags, where normally it should be inside those tags


Any ideas much appreciated


thanks

Johan


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Static site - Ntform JS generated outside /body and /html end tags
« Reply #1 on: March 24, 2021, 04:03:04 AM »
yes, that's likely for a static page, just because of how it works. Is it a problem though? I'm guessing the code still works there...

JohanR

  • Sr. Member
  • ****
  • Posts: 374
    • View Profile
    • Email
Re: Static site - Ntform JS generated outside /body and /html end tags
« Reply #2 on: March 24, 2021, 05:51:36 AM »
Hi Bruce

No page does not work,
but you are right,
the position of the script does not seem to matter if it's outside the body tag.

I moved the script to inside the tags and saved the generated HTML to a static file and then loaded the static file.
Attached the error.
Something else going wrong,
I will investigate further

thanks

Johan