vojtech-dobes / nette.ajax.js

Flexible AJAX for Nette Framework. Supports snippets, redirects etc.
https://componette.org/vojtech-dobes/nette.ajax.js/
MIT License
149 stars 85 forks source link

Error in nette.ajax.js #144

Open ArtemKolychev opened 7 years ago

ArtemKolychev commented 7 years ago

Uncaught ReferenceError: Nette is not defined at Object.before (nette.ajax.js:319) at Function. (nette.ajax.js:42) at Function.each (jquery-2.1.1.js:2) at Object.fire (nette.ajax.js:40) at Object.settings.beforeSend (nette.ajax.js:215) at Function.ajax (jquery-2.1.1.js:4) at nette.ajax (nette.ajax.js:225) at HTMLInputElement.requestHandler (nette.ajax.js:48) at HTMLFormElement.dispatch (jquery-2.1.1.js:3) at HTMLFormElement.r.handle (jquery-2.1.1.js:3) before @ nette.ajax.js:319 (anonymous) @ nette.ajax.js:42 each @ jquery-2.1.1.js:2 fire @ nette.ajax.js:40 settings.beforeSend @ nette.ajax.js:215 ajax @ jquery-2.1.1.js:4 ajax @ nette.ajax.js:225 requestHandler @ nette.ajax.js:48 dispatch @ jquery-2.1.1.js:3 r.handle @ jquery-2.1.1.js:3

uestla commented 7 years ago

Not that many information have you provided...

  1. have you netteForms.js loaded in you page?
  2. version of Nette?
  3. version of nette.ajax.js?
  4. checked if it's related to this ?
ArtemKolychev commented 7 years ago
  1. yes.
  2. 2.4
  3. @version 2.3.0
  4. In this function mising var "Nette" on line 319. If delete validate block then ajax works.
ArtemKolychev commented 7 years ago

i think it is some issue how : https://github.com/vojtech-dobes/nette.ajax.js/issues/138