I am currently doing a project - originally I was asked to do this in php but I have now been asked NOT to do any PHP.
I’ve been provided the asp page which is already done by another developer and am trying to call this up from my page as I did with php.
It was done this way so that the name of the php file was hidden, now this needs to call up the fred.asp and run the script in there. What is the javascript equivalent to the php require please.
So your file is an HTML file. That means you can not use my suggestion. I said you could use the include only if the file trying to include it has an asp extension.
Another option is to use fetch to get the contents of the asp file and then assign it to the innerHTML.
My Brother is also a programmer and is old fashioned.
I went to all the bother of learning some php but he (who is the boss) wants me to go old-school.
I went to university - he did not but hey-Ho! Hes the boss.
Thank you for your help.