views:

59

answers:

1

Hi there,

I have some javascript code that has in it localized messages that i pull from my resource files. My problem is that if i include my javascript files like...

<script scr="..." type="text/javascript"/>

in my masterpage for example, then the <%= Resources... %> code is not running on view rendering. My current way of resolving this problem is by including the full code inside script tags in my masterpage, but i don't like it.

Any better suggestions?

+3  A: 

You need to close out all script tags as such for IE to accept the JavaScript:

<script>....</script>

Not

<script .... />
Nissan Fan
thx for the suggestion but thats not what i meant as my problem.
Konstantinos