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?

    cb190821-378d-454d-9ff4-fb0dac059e2d

      Hi,

       

      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?