You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alexey Buistov <ja...@ua.fm> on 2004/09/28 12:12:13 UTC

Rollover-like component to submit forms

Hello! 

I'm looking for a component like Rollover that can submit a form. Is there 
such kind of component?

Alexey
----
http://rabota.alkar.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Rollover-like component to submit forms

Posted by Jose Gonzalez Gomez <jg...@opentechnet.com>.
    I'm interested in such a component, so if you find the source, could 
you please post it to the list, or directly to me?

    Thanks a lot,
    Jose

Paul Ferraro wrote:

> For now you can wrap an <a> tag around a regular Rollover component.
> <a href="javascript:void()" onclick="document.forms[0].submit()"><img 
> jwcid="@Rollover" ...></a>
>
> The problem with this approach is that manually triggered form submits 
> (i.e. from a script) do not automatically fire the onsubmit event.  
> This means that client side validation won't work unless it's also 
> triggered manually.
>
> Well over a year and a half ago, I created and posted a RolloverSubmit 
> component.  It applies rollover logic to the src of an <input 
> type="image"/> element.  I can repost it, but I'd have to dig up the 
> source code first.  I think it would be a useful addition to the 
> contrib library.
>
> Paul
>
> Alexey Buistov wrote:
>
>> Hello!
>> I'm looking for a component like Rollover that can submit a form. Is 
>> there such kind of component?
>>
>> Alexey
>> ----
>> http://rabota.alkar.net/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Rollover-like component to submit forms

Posted by Alexey Buistov <ja...@ua.fm>.
Paul,

One more question for you:

<a href="javascript:void()" onclick="document.forms[0].submit()"><img 
jwcid="@Rollover" ...></a>

causes an Exception claiming that Rollover should be inside ILinkComponent. 
How to avoid this error?

Alexey




On Tue, 28 Sep 2004 10:10:53 -0700
  Paul Ferraro <pm...@columbia.edu> wrote:
> For now you can wrap an <a> tag around a regular Rollover component.
> <a href="javascript:void()" onclick="document.forms[0].submit()"><img 
> jwcid="@Rollover" ...></a>
> 
> The problem with this approach is that manually triggered form submits (i.e. 
> from a script) do not automatically fire the onsubmit event.  This means 
> that client side validation won't work unless it's also triggered manually.
> 
> Well over a year and a half ago, I created and posted a RolloverSubmit 
> component.  It applies rollover logic to the src of an <input type="image"/> 
> element.  I can repost it, but I'd have to dig up the source code first.  I 
> think it would be a useful addition to the contrib library.
> 
> Paul
> 
> Alexey Buistov wrote:
> 
> >Hello!
> >I'm looking for a component like Rollover that can submit a form. Is 
> >there such kind of component?
> >
> >Alexey
> >----
> >http://rabota.alkar.net/
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 

----
http://rabota.alkar.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Rollover-like component to submit forms

Posted by Paul Ferraro <pm...@columbia.edu>.
For now you can wrap an <a> tag around a regular Rollover component.
<a href="javascript:void()" onclick="document.forms[0].submit()"><img 
jwcid="@Rollover" ...></a>

The problem with this approach is that manually triggered form submits 
(i.e. from a script) do not automatically fire the onsubmit event.  This 
means that client side validation won't work unless it's also triggered 
manually.

Well over a year and a half ago, I created and posted a RolloverSubmit 
component.  It applies rollover logic to the src of an <input 
type="image"/> element.  I can repost it, but I'd have to dig up the 
source code first.  I think it would be a useful addition to the contrib 
library.

Paul

Alexey Buistov wrote:

> Hello!
> I'm looking for a component like Rollover that can submit a form. Is 
> there such kind of component?
>
> Alexey
> ----
> http://rabota.alkar.net/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org