Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-13-2009, 05:32 AM   #2 (permalink)
itsallgood
New Member
 
Join Date: Jan 2009
Posts: 4
itsallgood is on a distinguished road
Default

Hang on...

After a bit more reading on the web -- have i been looking into this too much?!


Could i simply pass the gps position to a UIWebView by calling a javascript function from within the Objective-C???

Using this guide:

WebKit Objective-C Programming Guide: Using JavaScript From Objective-C

or this:

Scripting with JavaScript in Cocoa

Could i have a page on my server, called page.html

with the javascript function:

function hello(gps1,gps2){
alert("hi" + gps1 )
}

then load it in the UIWebView, then in my iphone app call it somehow and pass the gps???


Cheers again for reading!

Last edited by itsallgood; 01-13-2009 at 05:35 AM.
itsallgood is offline   Reply With Quote
 

» Advertisements
» Online Users: 434
14 members and 420 guests
chits12345, Creativ, dre, Evich, Hamood, iOS.Lover, iphonedevshani, jaychoupham, jeroenkeij, ketaskin, Kieren Harrold, kurtroom, QuantumDoja, tadaki
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,614
Threads: 94,086
Posts: 402,792
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kurtroom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:22 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.