Javascript Call function serverside

Posted by Dusty on Stack Overflow See other posts from Stack Overflow or by Dusty
Published on 2011-10-03T22:32:20Z Indexed on 2011/11/16 17:50 UTC
Read the original article Hit count: 317

Filed under:
|
|
|

I need to call a Javascript function from the server side in Client side. I looked and didn't find any way how to do it. I looked also over AJAX but can't figure it out. I am using ASP ( clasic) not .net .

I need to call the function in client-side with a variable that comes from the client-side. Please help me!!! Thanks a million !!!

I am using a FlashMovies that is sending a value to a Javascript function through ExternalInterface class. The function in javascript receiving it is gAnswer(result) and in this function i would need to have something like :

Server side: function saveResult(result) {code to be saved on the server goes here }

Client side : function gAnswer (result) { saveResult(result) } <- THis is the part i dont know how to do.
The function gAnswer is being called when the flash movie finished by itself. Would you be able to provide some code on how to ? thanks to each one of you who helped me =)

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about AJAX