I have a .html file in a dll and need to refer a .js file in the javacript folder in the same dll.
I tried using this in the html file.
But getting script error.
How should I refer the js file in html?
Below I have attached the contents of dll
Talk1:
.html file in a dll?? Means??
Talk2:
I have embedded the html file in a dll
Talk3:
This needs a LOT more information on the overall use case.
Talk4:
I am creating an IE addon in c# project. I have a html file and some js and css files to be included in the html file. I have embedded all these files to a dll(Dynamic Link Library) so that I can deploy in target machine. Now I couldnot refer the js file in html file.
Solutions1
You can drop type="text/javascript" from the script file as for HTML5 javascript is the default script.Also make sure script tag is in head and src is pointing to correct path or use absolute path by copying from properties as shown in the below image.
Talk1:
How can I point source to the correct path when the js is inside a dll?
Talk2:
,Can you just show the js file snapshot or dll which contains js file
Talk3:
I have attached the snapshot of dll
Talk4:
Why cant you put js files in another folder called scripts and then refer it ?.Just my opinion
Talk5:
Still getting the same error. I guess its trying to refer from a wrong location. I error I get the URL as about:/scripts/pmp_my_popup.js