AJAX Page - JSVisible attribute

Using this attribute to a server method makes that method available also on client side.

Server Side
        public string ComputeAge(string name, int yearBorn, int yearNow)
            int age = yearNow - yearBorn;
            return name + " is " + age + " years old.";

Client Side
        // instead of
        AddParam("yearBorn", 1982);
        AddParam("yearNow", 2006);
        AddParam("name", "John");
        alert(ob_post.post(null, "ComputeAge"));

        // you can use
        alert(ComputeAge("John", 1982, 2006));

"I just experimenting with your window and I must say that I am really so impressed with it.I am currently using teleik window but after I tried yours , I made my mind to move towards yours, what I really like about your components is the really simple API and it is light on browser, I made some tests comparing window to ... one and I must say your outtakes ..."


Random testimonial   All testimonials