$.nette is undefine?- why and how to fix that
Notice: This thread is very old.
- Zuko
- Member | 2
Hi , i ve got problem when using nette.ajax.js , the brower can get $.nette defined , why that ?
the console error:
`TypeError: $.nette is undefined
$.nette.init();`
and my script code in <head> (jquery ver 1.7.2 from google cdn)
<script src="{$basePath}js/jquery.js"></script>
<script src="{$basePath}js/nette.ajax.js"></script>
<script src="{$basePath}js/nette.forms.js"></script>
<script type="text/javascript">
$(function () {
$.nette.init();
});
</script>
- Martk
- Member | 648
Have you another error in console?
By the way, this usage of $basePath is wrong, correct is:
<script src="{$basePath}/js/jquery.js"></script>
<script src="{$basePath}/js/nette.ajax.js"></script>
<script src="{$basePath}/js/nette.forms.js"></script>
Last edited by Antik (2016-02-03 20:50)