5 Replies Latest reply on Jul 3, 2013 1:08 AM by Kutir Mobility

    How to call native extension’s function in Javascript or embed it into the html pages?




      In iphone platform.

      I have been trying to but couldn't find the method to call extension function in html page or a javascript.

      For example, when we create a native extension, there are calc_summ() function for example. As the manual said, we could call it in controller.rb then the index.erb provides a page where we can click a link to run the run_test function.

      Now I want to know is, is there any way that can direct calls to this function(calc_summ) in javascript or embed it into the html pages rather than through controller.rb and index.erb?