gquery

jQuery vs GQuery Benchmark

拈花ヽ惹草 提交于 2020-01-06 19:56:32
问题 I remember stumbling upon a benchmark comparing jQuery vs GQuery (run time selectors) vs GQuery (compile time selectors). Once the site was loaded one could click "Start" and the benchmark (mostly CSS selectors) would run for all three versions and present the results (overall time spent) after finishing. Unfortunately, I cannot find it anymore. I do not refer to the "horse race" benchmark in Ray Cromwell's excellent video. Does anyone know this benchmark and provide me with the link? Thanks!

Find an element by CSS selector in GWT

随声附和 提交于 2019-12-14 00:15:26
问题 I'm trying to grab an arbitrary element using a CSS selector (eg. "#someId .className a") in GWT. I'm building a JS widget that can live on a 3rd party website and want to be able to interact with elements on the page. Searching through the JavaDocs I don't see anything that can find an element by selector. I did come across GQuery, but it seems like the project might be dead and I'm not sure if it works with GWT 2. One option I've considered is wrapping an existing library (jQuery, Mootools,

GWT: I am using jScrollPane with jquery, is it messing with my ClickHandlers?

时光怂恿深爱的人放手 提交于 2019-12-13 02:40:34
问题 I implemented the JScrollPane for a cleaner look inside my Page. function scrollPane() { $(".gwt-content").jScrollPane(); } A custom Widget gets added: $(".jspPane").append($(new Content()); works $(html).click(new Function() { public boolean f(Event e) { System.out.println("yo"); return true; } }); doesn't html.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { System.out.println("yo1"); } }); html is a HTML Widget with some Text and another HTML widget in

Use jsoup or gquery for plain XML

时光毁灭记忆、已成空白 提交于 2019-12-06 06:26:17
问题 I was recently wondering about a good library for XML manipulation in Java: A nice Java XML DOM utility Before re-inventing the wheel, porting jQuery to Java in jOOX, I checked out these libraries: http://jsoup.org http://code.google.com/p/gwtquery But at closer inspection, I can see: jsoup does not operate on a standard org.w3c.dom document structure. They rolled their own implementation. I checked out the code and I doubt that it is as efficient and tuned as Xerces, for instance. For my use