First time here? Check out the FAQ!
![]() | 1 | initial version | |
Hello, i'm creating a zul file from an existing html file, in this html i use an external js file, with jquery to animate the pages. When I created the zul file, the function of controll the scrolling wasn't working so i tried to create another zul to test the function, but it doesn't work unless i don't use the xmlns="http://wwww3org/1999/xhtml" (i used the * because my karma is too low for links) namespace, how can i do it work?
![]() | 2 | No.2 Revision |
Hello, i'm creating a zul file from an existing html file, in this html i use an external js file, with jquery to animate the pages. When I created the zul file, the function of controll the scrolling wasn't working so i tried to create another zul to test the function, but it doesn't work unless i don't use the xmlns="http://wwww3org/1999/xhtml" (i used the * because my karma is too low for links) namespace, how can i do it work?work?
this is the js file:
scrollFunction = function(){ var scrollPos = 0; var Counter = 0; $(window).scroll(function(){ var scrollPosCur = $(this).scrollTop(); if (scrollPosCur > scrollPos) { Counter -= 1; } else { Counter += 1; } scrollPos = scrollPosCur; console.log(scrollPosCur); });
}
$(document).ready(scrollFunction);
![]() | 3 | No.3 Revision |
Hello, i'm creating a zul file from an existing html file, in this html i use an external js file, with jquery to animate the pages. When I created the zul file, the function of controll the scrolling wasn't working so i tried to create another zul to test the function, but it doesn't work unless i don't use the xmlns="http://wwww3org/1999/xhtml" (i used the * because my karma is too low for links) namespace, how can i do it work? this is the js file:
scrollFunction = function(){
var scrollPos = 0;
var Counter = 0;
$(window).scroll(function(){
var scrollPosCur = $(this).scrollTop();
if (scrollPosCur > scrollPos) {
Counter -= 1;
} else {
Counter += 1;
}
scrollPos = scrollPosCur;
console.log(scrollPosCur);
}
$(document).ready(scrollFunction);
![]() | 4 | No.4 Revision |
Hello, i'm creating a zul file from an existing html file, in this html i use an external js file, with jquery to animate the pages. When I created the zul file, the function of controll the scrolling wasn't working so i tried to create another zul to test the function, but it doesn't work unless i don't use the xmlns="http://wwww3org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
(i used the * because my karma is too low for links) namespace, how can i do it work?
this is the js file:
scrollFunction = function(){
var scrollPos = 0;
var Counter = 0;
$(window).scroll(function(){
var scrollPosCur = $(this).scrollTop();
if (scrollPosCur > scrollPos) {
Counter -= 1;
} else {
Counter += 1;
}
scrollPos = scrollPosCur;
console.log(scrollPosCur);
});
}
$(document).ready(scrollFunction);