$.nette is undefine?- why and how to fix that

Notice: This thread is very old.
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

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 () {
Member | 651

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)