Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added "Main article" link, spelling

JavaScript

Main article: Ajax & JavaScript

...

Why do i get "Tapestry is undefined" error on form submit?

...

  • First, check if 'tapestry.js' is present in the head part of your resulting HTML page.
  • If you have set the tapestry.combine-scripts configuration symbol to true, Tapestry generates one single URL to retrieve all the JS files. Sometimes, this can produce long URLs that browsers are unable to retrieve. Try setting the symbol to false.
  • If you have included jQuery in conjunction with Tapestry's prototype, that will cause a conflict with the '$' selector used by both. In this case, you should put jQuery on top of the stack and turn on the jQuery.noConflict mode.
  • Also, if you have included a custom or third-party JS library on top of the stack that causes the Javascript JavaScript parsing to fail, then check the javascript JavaScript syntax in that library.
  • If you have used a tool to minimize your javascript JavaScript libraries, this can lead to javascript JavaScript syntax errors, so check if it works with all the javascript JavaScript files unpacked.