(this is part of he different thread but since the title is no misleading I
am posting here)

I am using tapestry 5.4 and tapestry5-jquery 4.0.0 to try to see how will
my site behave. While I managed to run everything, the page displays
javascript erros

Loading 1 libraries
console.js:44<http://localhost:8080/assets/aebaee6630c17174/modules/t5/core/console.js>
 Loading library /assets/aebaee6630c17174/ctx/blackbox/scripts/login.js
console.js:44<http://localhost:8080/assets/aebaee6630c17174/modules/t5/core/console.js>

   1. Uncaught TypeError: Property '$' of object [object Object] is not a
   function 
login.js:5<http://localhost:8080/assets/aebaee6630c17174/ctx/blackbox/scripts/login.js>

Executing 6 inits
console.js:44<http://localhost:8080/assets/aebaee6630c17174/modules/t5/core/console.js>
 Invoking t5/core/pageinit:evalJavaScript("$('#slider').bind('slide',
function(event, ui) {$('#sliderValue').text(ui.value);});")
console.js:44<http://localhost:8080/assets/aebaee6630c17174/modules/t5/core/console.js>
 Evaluating: $('#slider').bind('slide', function(event, ui)
{$('#sliderValue').text(ui.value);});
console.js:44<http://localhost:8080/assets/aebaee6630c17174/modules/t5/core/console.js>

   1. Uncaught TypeError: undefined is not a function

Invoking t5/core/pageinit:evalJavaScript("$('#slider').bind('slide',
function(event, ui) {$('#sliderValue').text(ui.value);});")
console.js:44<http://localhost:8080/assets/aebaee6630c17174/modules/t5/core/console.js>
 Evaluating: $('#slider').bind('slide', function(event, ui)
{$('#sliderValue').text(ui.value);});
console.js:44<http://localhost:8080/assets/aebaee6630c17174/modules/t5/core/console.js>

   1. Uncaught TypeError: undefined is not a function

Invoking t5/core/pageinit:focus("textfield")
console.js:44<http://localhost:8080/assets/aebaee6630c17174/modules/t5/core/console.js>
 Loaded module t5/core/forms
console.js:44<http://localhost:8080/assets/aebaee6630c17174/modules/t5/core/console.js>
 Loaded module t5/core/zone
console.js:44<http://localhost:8080/assets/aebaee6630c17174/modules/t5/core/console.js>
 Loaded module t5/core/validation

I got the feeling that jquery is no loaded, but I dont see how can that be
the case, given that in my page I see

requirejs.config({
  "baseUrl" : "/assets/aebaee6630c17174/modules",
  "shim" : {
    "bootstrap" : [
      "jquery"
    ],
    "_" : {
      "exports" : "_"
    }
  },
  "waitSeconds" : 300
});
require(["t5/core/pageinit"], function(pi) { pi([
  "/assets/aebaee6630c17174/ctx/blackbox/scripts/login.js"
], [
  [
    "t5/core/pageinit:evalJavaScript",
    "$('#slider').bind('slide', function(event, ui)
{$('#sliderValue').text(ui.value);});"
  ],
  [
    "t5/core/pageinit:evalJavaScript",
    "$('#slider').bind('slide', function(event, ui)
{$('#sliderValue').text(ui.value);});"
  ],
  "t5/core/zone",
  "t5/core/validation",
  "t5/core/forms",
  [
    "t5/core/pageinit:focus",
    "textfield"
  ]
]); });

Any idea is welcome :)

Cheers

-- 
Sincerely
*Boris Horvat*

Reply via email to