PG2
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Testing and Debugging PhoneGap Applications<br />
45<br />
Figure 2-13 Configuring the Ripple Emulator in Google Chrome<br />
Once the browser has been configured, open your application’s index.html file in<br />
the browser. You can press Ctrl+O on Windows or Command+O on Macintosh to<br />
open the File Open dialog. Once the page has loaded, you need to enable Ripple<br />
for the selected page. To do this, complete one of the following options:<br />
• Click the Ripple icon to the right of the browser’s address bar to open a<br />
window, allowing you to enable Ripple for the loaded page.<br />
• Right-click the page, open the Emulator menu, and then select Enable.<br />
• Append ?enableripple=true to the file URL to enable Ripple directly<br />
within the address bar when loading an application’s index.html file.<br />
Once the RMEE is enabled for the loaded page, the browser will display a page,<br />
shown in Figure 2-14, that prompts you to identify which type of emulation you<br />
want to enable for this page. As you can see, the RMEE supports PhoneGap plus<br />
several other platforms and frameworks. Click the PhoneGap button to continue.<br />
Figure 2-14 Enabling PhoneGap emulation in the Ripple emulator