Re: How to call javascript from Struts tag

2008-02-28 Thread Dave Newton
Your requirement, as stated, is more complicated than is worth doing. IMO you'd be better served doing this conversion on the server side. Dave --- Varun Ratra <[EMAIL PROTECTED]> wrote: > Thanks for the valuable information. The problem is my company is not using > ajax at the moment. Is there

Re: How to call javascript from Struts tag

2008-02-28 Thread Musachy Barroso
like: click me ? musachy On Thu, Feb 28, 2008 at 11:43 AM, Varun Ratra <[EMAIL PROTECTED]> wrote: > > Hi, > > Thanks for the valuable information. The problem is my company is not using > ajax at the moment. Is there any other way to call the javascipt funtion in > struts tag. I have a jav

Re: How to call javascript from Struts tag

2008-02-28 Thread Varun Ratra
Hi, Thanks for the valuable information. The problem is my company is not using ajax at the moment. Is there any other way to call the javascipt funtion in struts tag. I have a java script function placed in web project. This function returns a value function shortenTextLength(text, textlength)

Re: How to call javascript from Struts tag

2008-02-22 Thread Martin Gainty
lets say you have some tag which has its base function called updateReports() assuming the div tag has theme="ajax" referencing http://struts.apache.org/2.0.11/docs/ajax-div-template.html function doit(){ document.login_form.hidden_id.value="01420";} function updateReports(id) {