A possible solution for this problem can be found at
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_10148478.html

(it's the first page that http://google.com/search?q=javascript+button+pressed gives 
me :)

In short, you add a hidden variable to the form, and you change that variable using 
onclick="this.form.my_var='search'" in the submit button.  


> Hello Friends,
> I am applying a i18n Transformation on the following button
> 
>       <input value="Search" type="submit" name="cocoon-action"
> i18n:attr="value"></input>
> 
> Actually depending upon the value of Button i.e. "Search" , i am calling a
> method, but if i apply i18n transformaion the value of button changed and i
> m not able to call that method.
> So what i need display value of button should change but passing value
> should always be "Search" using i18n???
> how to do this????
> Thanks in advance
> 
> 
> Thanks and Regards,
> Murari Dhoot
> 


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to