Could not load class in Phone Gap

momiexx

New Member
I am facing problem to run the function in phonegap like as alert box, splash screen. So if you have any solution please let me know. One code (index.html) is given in below for alert box application. \[code\]<!DOCTYPE html><html> <head> <title>Notification Example</title> <script type="text/javascript" charset="utf-8" src="http://stackoverflow.com/questions/14068078/cordova-2.2.0.js"></script> <script type="text/javascript" charset="utf-8"> // Wait for Cordova to load // document.addEventListener("deviceready", onDeviceReady, false); // Cordova is ready // function onDeviceReady() { // Empty } // alert dialog dismissed function alertDismissed() { // do something } // Show a custom alertDismissed // function showAlert() { navigator.notification.alert( 'You are the winner!', // message alertDismissed, // callback 'Game Over', // title 'Done' // buttonName ); } </script> </head> <body> <p><a href="http://stackoverflow.com/questions/14068078/#" onclick="showAlert(); return false;">Show Alert</a></p> </body></html>\[/code\]I'm looking forward for valuable solutions.Thank you.
 
Back
Top