Currently, in order to run a client side javascript function, inside an action, I’m using ‘runscript’ which is not a good approach for doing this:

<script type="text/javascript">
    function hidePopup(){
    document.getElementById('popupBackground').style.visibility = 'hidden';
	    document.getElementById('popup').style.visibility = 'hidden';


action close(){

A nice addition would a ‘runscript_onClient’ function that instead of generating:

onclick='javascript:serverInvoke("/JustNoteIt/root","action29ce3a7c4f6669c971e8f4eba76214412", [],"", this, true)'

for the ‘runscript’ above, will just replace the content of the on_click with whatever is passed as argument


This might be however a little problematic because server side and client side calls could be mixed up in an action. Another approach would be to mark the whole action as client side:

client action close(){
Submitted by Victor Hurdugaci on 28 March 2010 at 10:20

Log in to post comments