Open new window

263 views
Skip to first unread message

London iPhone Developer

unread,
Dec 2, 2009, 7:28:10 AM12/2/09
to phonegap
I have the following piece of Js which upon shake, activates an
alert.

I'd like to know how to open a new window upon shake, here's what I
have;

--
<script>
PhoneGap.Gesture.addEventListener('shake',function(e)
{
var a = PhoneGap.UI.createAlertDialog();
a.setMessage('The shake works');
a.setTitle('Well done!');
a.show();
});


</script>
--

Thanks in advance,

Ross.

London iPhone Developer

unread,
Dec 2, 2009, 7:30:23 AM12/2/09
to phonegap
Sorry folks, I mean new page ie. index.html

Thanks again (in advance!)

Ross

On Dec 2, 12:28 pm, London iPhone Developer <he...@urbanviolet.co.uk>
wrote:

Shazron Abdullah

unread,
Dec 2, 2009, 12:14:23 PM12/2/09
to London iPhone Developer, phonegap
Does
document.location = 'index.html';

not work? It should.

--------------------------------------------------
From: "London iPhone Developer" <he...@urbanviolet.co.uk>
Sent: Wednesday, December 02, 2009 4:28 AM
To: "phonegap" <phon...@googlegroups.com>
Subject: [PhoneGap] Open new window
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
Reply all
Reply to author
Forward
0 new messages