function - JavaScript can not find Vaadin component id..? -
my code follow , javascript doesn't find component...maybe javascript load firstly may other.. can tell me what's wrong?
thanks..
tab mytab = new tab(); mytab.setid("componentid"); javascript.getcurrent().execute("$(document).ready(function(){ "+ "$('#componentid').click(function(){ "+ "alert('clicked..');"+ "});"+ "});");
i found solution, should add query library url application html document header..
http://geekofficedog.blogspot.com.tr/2013/10/add-jquery-to-vaadin-7-application.html
thanks..
Comments
Post a Comment