NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ntnewbies on August 09, 2022, 05:26:46 AM

Title: script to put after /body
Post by: ntnewbies on August 09, 2022, 05:26:46 AM
hi,
is there a place where i can put script after /body?
i have noticed that in pageheader/pagefooter, there is option before /body but cant find after /body

regards,
jason
c11
nt12.45
Title: Re: script to put after /body
Post by: Jane on August 09, 2022, 10:32:52 AM
xy
 (https://en.wikipedia.org/wiki/XY_problem)
Why would you want to do that?
Title: Re: script to put after /body
Post by: Bruce on August 09, 2022, 10:25:08 PM
So by default the script code, generated by calls to the p_web.Script method, are added at the end of the body, just before the /body tag.
It could also be made to go after the /Body, or even after the /html.

Do you have any reason for the preference of one over the other?

cheers
Bruce
Title: Re: script to put after /body
Post by: ntnewbies on August 10, 2022, 01:14:30 AM
@jane  xy agree
@bruce  i am creating content management system to build pages where customer's IT team requested an option to place script after /body

I know its recommended to put before /body but i am just leaving the option open to customer.

jason
Title: Re: script to put after /body
Post by: Niels Larsen on August 10, 2022, 02:00:56 AM
Why not put it in the "$(document).ready()"

EMBED: GenerateForm --> 7 Inside <script>

/Niels
Title: Re: script to put after /body
Post by: Bruce on August 10, 2022, 10:11:59 PM
Hi Jason,

>>  where customer's IT team requested an option to place script after /body

cool. I guess then please ask them for the specific reasoning, and pass that back. If there's a valid reason then it's worth doing.

cheers
Bruce