Every time my page gets loaded I want some javascript to get executed if a new message is in the TempData.
window.onload = function () {
$.jGrowl('Hello world!');
};
And that works fine. But do I have to put the call inside a windows.onload or other eventhandlers, because if I do it like this
<script type="text/javascript>
$.jGrowl('Hello world!');
</script>
it won´t work It comes up with a
SCRIPT438: Object doesn't support this property or method
I have been trying to put the javascript in the bottom of the page to make sure averything else is loaded first
Hope for some help Jakob
and it still gives a script438
– Jakobbbb Jun 23 '14 at 17:55