Page 1 of 1

Links from Mapped fields

Posted: Fri Sep 23, 2011 12:49 am
by williamswebworks

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


Links from Mapped fields

Posted: Fri Sep 23, 2011 1:26 am
by maxkatz

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


Links from Mapped fields

Posted: Fri Sep 23, 2011 3:29 am
by williamswebworks

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


Links from Mapped fields

Posted: Fri Sep 23, 2011 3:30 am
by williamswebworks

Great!


Links from Mapped fields

Posted: Fri Sep 23, 2011 4:04 am
by maxkatz

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...


Links from Mapped fields

Posted: Fri Sep 23, 2011 4:31 am
by maxkatz

Links from Mapped fields

Posted: Fri Sep 23, 2011 12:13 pm
by williamswebworks

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


Links from Mapped fields

Posted: Fri Sep 23, 2011 1:53 pm
by maxkatz

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


Links from Mapped fields

Posted: Fri Sep 23, 2011 6:20 pm
by williamswebworks

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


Links from Mapped fields

Posted: Sat Sep 24, 2011 3:32 am
by maxkatz

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