Hi Volker, I was just using prototype.js functions in the jsp page to observe the elements in a sheet.
Like , in <tc:in> under a column in sheet, there is an onchange event for <tc:in/>, but this is called only when its focus is lost. If at all i modify it and clcik on any button, the onchange event is not called. so i kept and Event.observe() on that for keyPress..now its working fine. But when the sheet is loaded , i need to observe the sheet elements again, for that i need to call a function . But how Can i call a JavaScript function() , which will be rendered with <tc:out/> This was my problem.. Regards, Madan ----- Original Message ---- From: Volker Weber <[EMAIL PROTECTED]> To: MyFaces Discussion <[email protected]> Sent: Tuesday, 10 April, 2007 12:26:33 AM Subject: Re: [Tobago] Javascript reload after Ajax Request. Hi Madan, the tc:script tag is currently not supported for ajax requests, see https://issues.apache.org/jira/browse/TOBAGO-332 You can use tc:out with escape="false" e.g. <tc:out escape="false" value"<script type=\"text/javascript\" >alert('script on ajax');</script>" /> shuch pieces of javascript inside ajax requests are evaluated after the html is replaced. Regards, Volker 2007/4/9, madan chowdary <[EMAIL PROTECTED]>: > > Hi All, > > I was just working with JavaScript in Tobago pages. > > I used onload function to call a javascript function which is used to > Event.observe() on some components. > > These scripts are placed in a panel which gets refreshed via Ajax. > > The first time the page loads, then the desired task is achieved. > > But if the panel is refreshed via Ajax, then the javascript is not working. > > I need to call the function which was done onload, the same way when the > panel is refreshed via Ajax. > > Is this possible ? > > Regards, > Madan > > ________________________________ > Here's a new way to find what you're looking for - Yahoo! Answers __________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/

