Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
I'm Developing A windows phone 7 application using Phone gap 2.9.0 version

I just start My App now but The Alert Or Return Confirm Are Not Worked In windows phone emulator.
but Same Code Work Fine In all Browser.

Below It's my Code.

    <body>

        <input type="button" value="click" onclick="return confirm('are you sure')"; />
        <script type="text/javascript" src="cordova.js"></script>
        <script type="text/javascript" src="js/jQuery v1.10.2 .js"></script>

        <script type="text/javascript" >
        $(document).ready(function(){
            alert("hi");
        });
        </script>

    </body>

Both Alert And Return Confirm Not Worked Plz Provide Me Solution
Posted

1 solution

The Visual Studio template of PhoneGap, version 2.9 for Windows Phone 7, did not include feature Notification by default.

Here is what I did:
1. Open the config.xml
2. Add the following
<feature name="Notification">
  <param name="wp-package" value="Notification" />
</feature>

3. Save
4. Run your app again
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900