williamswebworks
Posts: 0
Joined: Fri Sep 23, 2011 12:49 am

Links from Mapped fields

this may be a dumb question but how do I make a mapped field that is returned as a result into a clickable link?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Links from Mapped fields

Not a dumb question at all... not possible in current version, but, we already added this feature and it will be available tomorrow!

williamswebworks
Posts: 0
Joined: Fri Sep 23, 2011 12:49 am

Links from Mapped fields

I would also request a better understanding on how to apply the phone gap API using the JavaScript assets. I've tried but can't seem to get the capture or geolocation functions to work

williamswebworks
Posts: 0
Joined: Fri Sep 23, 2011 12:49 am

Links from Mapped fields

Great!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Links from Mapped fields

I think you you are little bit ahead of us today :). I was going to do a blog post on how to use PhoneGap in Tiggr. To answer your question, you can do this.

Create a new JavaScript asset and enter this code (from PhoneGap API):

pre
code
var onSuccess = function(position) {
alert('Latitude: ' + position.coords.latitude + '\n' +
'Longitude: ' + position.coords.longitude + '\n' +
'Altitude: ' + position.coords.altitude + '\n' +
'Accuracy: ' + position.coords.accuracy + '\n' +
'Altitude Accuracy: ' + position.coords.altitudeAccuracy + '\n' +
'Heading: ' + position.coords.heading + '\n' +
'Speed: ' + position.coords.speed + '\n' +
'Timestamp: ' + new Date(position.timestamp) + '\n');
};
function onError(error) {
alert('code: ' + error.code + '\n' +
'message: ' + error.message + '\n');
}
/code
/pre

Then, take a button and add Click event. To Click event, add Run Custom JavaScript action. Add this code:

pre
code
navigator.geolocation.getCurrentPosition(onSuccess, onError);
/code
/pre

PhoneGap API is here: http://docs.phonegap.com/
Tiggr docs on on events/actions: http://help.gotiggr.com/documentation... and custom JavaScript files: http://help.gotiggr.com/documentation...

williamswebworks
Posts: 0
Joined: Fri Sep 23, 2011 12:49 am

Links from Mapped fields

ok...so how do i make the link from a mapped field? Is it live now?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Links from Mapped fields

Yes, it's now live. You can map link URL and label.

williamswebworks
Posts: 0
Joined: Fri Sep 23, 2011 12:49 am

Links from Mapped fields

Max
Can you give me an example on the phone gap script for capturing audio, video and photo?

I have tried to mimic what you showed above and using the examples on phone gap site but can't make it work

Thanks

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Links from Mapped fields

Did you try to run JavaScript from here: http://docs.phonegap.com/phonegap_cam... ?

Return to “Issues”