Hey Anhony, 2008/12/2 roja <[EMAIL PROTECTED]>: > Koen, > Small but i would say rather critical... In my site at least the > wrapper is effecting the view of the image it is wrapping due to the css > applied to the image... Hardly ideal :( Also having to specify that the > cursor should be changed to a hand for each image-link is a little > argous (not so if the item is actually an input anyway!)... Otherwise, > as always Fab stuff ! Cheers for clearing up the internalPath thing,
You are absolutely right, there can be rendering glitches with the button wrapping and <input type=image> is the perfect solution for it. It only needs some work in DomElement::asHTML() where it reads 'FIXME: we should not wrap images neither'. > Is there any simple way of connecting wanchors to slots which is > compatible when there is no JavaScript availability? You have to do it through the internal path API -- this was a design choice. In principle we could also convert an anchor to a span wrapped in a button. Or, perhaps, we should leave that as an option. This will work in general: WAnchor *a = ... a->setRef(wApp->bookmarkUrl(anIinternalPath); // When AJAX is available, the following connect will be active, otherwise it will be ignored: a->clicked.connect(SLOT(...)); // slot used for non-AJAX a->clicked.setPreventDefault(true); // When AJAX is not available, you need to listen for internal path changes. // When AJAX is available, that will also work, so in theory you do not need the connect call. This is the way it is done for the Wt homepage, (implemented in WMenuItem.C) Note that the semantics with and without AJAX are not identical: when AJAX is not available, no form data is propagated so this works only for cases where the anchor click also implies a "cancel" operation. Otherwise, we would need to do the button-wrap. Regards, koen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
