cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: [Vote] Improving Cocoon Site
Date Fri, 07 Dec 2001 13:38:38 GMT
On Thu, 6 Dec 2001, Piroumian, Konstantin wrote:

> > >
> > > Oh, gosh, no need to be a javascript guru for that
> > >
> > >   <input type=submit onsubmit="q.value += 'site:xml.apache.org'">
> > >
> > > might do it. (you might need to add id=q to the text field) I can
> > > investigate this more if we are going in this direction.
> >
> > This is why I asked for a guru 'cause it's not going to work with your way
> ;) i
> > already checked that out yesterday.
> >
>
> 'onsubmit' is allowed only for a form tag and not an input. I've tried this
> and it worked:
>
>  <!-- Search Google -->
>      <form method="GET" action="http://www.google.com/search"
> onsubmit="q.value += ' site:xml.apache.org'">
>              <input type=text name=q size=31 maxlength=255 value="">
>              <input type=submit name=btnG value="Google Search">
>      </form>
> > <!-- Search Google -->

Cool, that's what I was looking for.

Giacomo

>
> Regards,
>     Konstantin Piroumian
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message