cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject Re: [Vote] Improving Cocoon Site
Date Thu, 06 Dec 2001 16:53:10 GMT
> >
> > 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 -->

Regards,
    Konstantin Piroumian



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


Mime
View raw message