Call server-side method from Javascript?

2 posts, 0 answers
  1. Axe
    Axe avatar
    88 posts
    Member since:
    Feb 2007

    Posted 28 Apr 2007 Link to this post

    Can I call a server-side method from Javascript?

    What I have is a page that plays a flash video and I have actionscript that call a javascript method. In the javascript method I would like to call a server side method.

    Currently I have a hidden button who's button click event is called through javascript but would like to take it one step further and remove the hidden button.

    Is this possible?

    This is what I currently have:
    <script type="text/javascript">  
        function SomeFunction()  
        {  
            document.getElementById('<%=Button1.ClientID%>').click();  
        }  
    </script>  
     

    This is what I would like to do:
    <script type="text/javascript">  
        function SomeFunction()  
        {  
            //call a server side method 
        }  
    </script> 

    Regards
    Alex
  2. Jason Monroe
    Jason Monroe avatar
    4 posts
    Member since:
    May 2006

    Posted 03 Jul 2007 Link to this post

    I made a blog post here that describes how to use javascript to execute server side code via the RadAjaxManager...

    The post describes specifically use with the WindowManager.. but you can adapt it for use with anything, including from your flash object.


Back to Top