This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AlertDialog.Builder alertDialog = new AlertDialog.Builder(this); | |
| alertDialog.setTitle("New Location"); | |
| alertDialog.setMessage("Is this the new location?"); | |
| alertDialog.setPositiveButton ("Yes", new DialogInterface.OnClickListener() { | |
| public void onClick(DialogInterface dialog, int which) { | |
| returnResult(); | |
| } | |
| }); | |
| alertDialog.setNegativeButton("No", new DialogInterface.OnClickListener() { | |
| public void onClick(DialogInterface dialogo1, int id) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var values = {}; | |
| $.each($('.form-horizontal').serializeArray(), function(i, field) { | |
| values[field.name] = field.value; | |
| }); values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8> | |
| <link rel="stylesheet" type="text/css" href=""> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
| <title></title> | |
| </head> | |
| <body> | |
| </body> |