The output "Registering Java Script" is displayed, so the code is executed. There is also no error Message. I have a header tag with runat="server", so the error is very unlikely to be found there. As a test I wrote an XSLT script, which was able to register the script files.
Is the function somehow broken in razor? Or am I doing something wrong?
umbraco.library.RegisterJavaScriptFile not working
Hi there,
I have a very nasty problem with razor when trying to dynamically register Java Script Files. I am using umbraco 4.7.1.1. My script looks as follows:
The output "Registering Java Script" is displayed, so the code is executed. There is also no error Message. I have a header tag with runat="server", so the error is very unlikely to be found there. As a test I wrote an XSLT script, which was able to register the script files.
Is the function somehow broken in razor? Or am I doing something wrong?
Does anyone have an idea? Otherwise I would have to use an ugly workaround...
is working on a reply...