1 decade ago by Pebie
Hello there,
Today, my boss asked me to test and see what is possible to do with the new features of iOS 7 SDK.
On of them is the JavascriptCore.framework. Our idea was trying to reuse some of our javascript stuff within a native application.
For exemple we have a classic website who calls webservices.
To do that we're using classic stuff as AngularJS / jquery etc.
Now we have to port our website within a native iOS7 application.
I wondering if it's possible (with this new feature) to reuse some of our javascript logic ?
I tried to make a simple ajax call from using jquery library from obj-c to javascript but in vain. It's because the code is not executed in a navigator and jquery needs to known at least a window object ??
I don't understand how it really works :p and I'm not a javascript developer at all :)
I know Ejecta can use javascript library such as ThreeJS. So I wonder if Ejecta will be a good solution for us and if the arrival of JavascriptCore.framework in iOS7 will change something for you ?
Pebie
P.S : Sorry for my english :(
Today, my boss asked me to test and see what is possible to do with the new features of iOS 7 SDK.
On of them is the JavascriptCore.framework. Our idea was trying to reuse some of our javascript stuff within a native application.
For exemple we have a classic website who calls webservices.
To do that we're using classic stuff as AngularJS / jquery etc.
Now we have to port our website within a native iOS7 application.
I wondering if it's possible (with this new feature) to reuse some of our javascript logic ?
I tried to make a simple ajax call from using jquery library from obj-c to javascript but in vain. It's because the code is not executed in a navigator and jquery needs to known at least a window object ??
I don't understand how it really works :p and I'm not a javascript developer at all :)
I know Ejecta can use javascript library such as ThreeJS. So I wonder if Ejecta will be a good solution for us and if the arrival of JavascriptCore.framework in iOS7 will change something for you ?
Pebie
P.S : Sorry for my english :(