I suppose you could do exactly the same - put a div with
style="display:none", and then just add a behavior that changes the display
style with JS on page load. If the user doesn't have JS enabled, the thing
won't ever show up.
Does that help?
Something like this.... Create an AbstractBehavior, store the component
it's bound to in the bind method, and then do this
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.renderOnLoadJavascript(component.getMarkupId() +
".style.display = 'block';");
}
--
Jeremy Thomerson
http://www.wickettraining.com
On Thu, Dec 18, 2008 at 11:04 PM, bht <[email protected]> wrote:
>
> Jeremy,
>
> jpswain referred to the gmail signup form. The gmail form initially hides
> the "check availability" elements via div with style="display:none". It
> only
> shows them when it detects that AJAX or JavaScript (don't know exactly) is
> available. Would you know how we can implement this with wicket?
> --
> View this message in context:
> http://www.nabble.com/Wicket---Ajax%28Fallback%29Button-and-Form---possible-solution-to-problem-tp20373644p21085893.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>