Skip to content

Instantly share code, notes, and snippets.

@uwePhillPhelps
uwePhillPhelps / aF_iframe_rejigged.html
Created November 6, 2011 09:09
rejigged AppFurnace IFrame
<div id='someIdentifier'>
<iframe id='anotherIdentifier' src='http://example.com'>
</iframe>
</div>
@uwePhillPhelps
uwePhillPhelps / af_iframe_normal.html
Created November 6, 2011 09:08
A normal AppFurnace IFrame object
<div><iframe src="http://example.com"></iframe></div>
@uwePhillPhelps
uwePhillPhelps / aF_createPerimeterFromMarkers.js
Created November 5, 2011 20:24
Satsymph Hermes - interrogating google map API markers
function createPerimeterFromMarkers()
{
/*
1. interrogate the named elements in our named frame
(containing a google map API with four user-droppable markers)
2. create an AppFurnace Geo Line object using the four co-ordinates
indicated by the user in the google map API frame
*/
@uwePhillPhelps
uwePhillPhelps / aF_rejigTheFrame.js
Created November 5, 2011 20:06
Satsymph Hermes AppFurnace IFrame example (part2)
function rejigTheFrame()
{
/*
The AppFurnace environment behaves differently in the three
scenarios. i.e. web simulator draft, published, and on iPhone
*/
// uncomment these as appropriate
var testEnvironment = null;
testEnvironment = 'iPhone';
@uwePhillPhelps
uwePhillPhelps / aF_beginIndexScreen.js
Created November 5, 2011 19:36
Satsymph Hermes AppFurnace IFrame example (part1)
// set this function to run when the index screen is shown
function beginIndexScreen()
{
// enter the URL to your google map API html here
var yourMapAPIURL = "http://your.domain/your_mapAPI.html";
// do not change below here
// //////////////////////////////////////////////////////////////
// create a reference to the (in this case) index screen