-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hai Every one,
As i am new to zk i have one problem
i have one method which is written below and i have written this in method in Calendar Controller class which extends genericforward composer . Now I want to send it to the client.
private void execToolTipJScript(){
Script script = new Script();
String code = "setTimeout(function(){$('.z-calevent').each(function(){"+
"$('.z-calevent-resizer', this).remove();"+
"var timeSpan = $('.z-calevent-text', this).html();"+
"$('.z-calevent-header', this).html(timeSpan.substring(timeSpan.indexOf('<%#>')));"+
"var tooltip = $('.z-calevent-header', this).html() + ': ' + $('.z-calevent-text', this).html();"+
"$(this).attr('title', tooltip);"+
"});},100);";
script.setContent(code);
script.setPage(page);
}
You can use this method too. - Clients.evalJavaScript(String)
Hi jumperchen,
thanks for sharing and can you explain me with the following method..............
private void execToolTipJScript(){
Script script = new Script();
String code = "setTimeout(function(){$('.z-calevent').each(function(){"+
"$('.z-calevent-resizer', this).remove();"+
"var timeSpan = $('.z-calevent-text', this).html();"+
"$('.z-calevent-header', this).html(timeSpan.substring(timeSpan.indexOf('<%#>')));"+
"var tooltip = $('.z-calevent-header', this).html() + ': ' + $('.z-calevent-text', this).html();"+
"$(this).attr('title', tooltip);"+
"});},100);";
script.setContent(code);
script.setPage(page);
}
Asked: 2012-02-07 04:47:57 +0800
Seen: 255 times
Last updated: Feb 15 '12
ZK studio and eclipse outline problem
ZK Package configuration problem
Eclipse Autocomplete not working in ZUL files...
Syntax Error mark ... help me!
Manual Installation of ZK Studio
Can't see button text whilst running simple demo
Adding Vbox to Center layout in Java