Created
July 25, 2014 10:45
-
-
Save Ziiweb/f81ac6683cafce47ab46 to your computer and use it in GitHub Desktop.
This file contains 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
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="format-detection" content="telephone=no" /> | |
<!-- WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323 --> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> | |
<!--<link rel="stylesheet" type="text/css" href="css/index.css" />--> | |
<link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.4.2.min.css" /> | |
<link rel="stylesheet" type="text/css" href="css/azulito.min.css" /> | |
<meta name="msapplication-tap-highlight" content="no" /> | |
<title>Hello World</title> | |
</head> | |
<body> | |
<script src="http://debug.phonegap.com/target/target-script-min.js#ziiweb"></script> | |
<!-- COMIENZO DEL HTML --> | |
<!-- COMIENZO DEL HTML --> | |
<div data-role="page" id="page1"> | |
<div id="app-status-ul"></div> | |
<div data-role="header"> | |
<h6>Welcome..</h6> | |
</div> | |
<a href="#page2">Go to page 2</a> | |
<div data-role="content"> | |
<form action="" method="post"><div id="placas_frontendbundle_customer"><div><label class="required" for="placas_frontendbundle_customer_phone1">Phone1</label><input type="text" maxlength="255" required="required" name="placas_frontendbundle_customer[phone1]" id="placas_frontendbundle_customer_phone1"></div><div><button name="placas_frontendbundle_customer[guardar]" id="placas_frontendbundle_customer_guardar" type="submit">Guardar</button></div><input type="hidden" value="29099446d3a23e97300e6c01d4bbd96dd3bbab3c" name="placas_frontendbundle_customer[_token]" id="placas_frontendbundle_customer__token"></div></form> | |
<div id="movie-data"></div> | |
<!--<ul data-filter="true" data-role="listview" data-inset="true" data-autodividers="true" id="movie-data" role="heading" data-corners="false"></ul>--> | |
<div data-role="footer"> | |
<h6>Footer Content</h6> | |
</div> | |
</div> | |
</div> | |
<div data-role="page" id="page2"> | |
<a href="#page1">Go to page 1</a> | |
<div id="book-data"></div> | |
hola | |
</div> | |
<!-- FIN DEL HTML --> | |
<!-- FIN DEL HTML --> | |
<script type="text/javascript" src="cordova.js"></script> | |
<script type="text/javascript" src="js/PushNotification.js"></script> | |
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script> | |
<script type="text/javascript" src="js/jquery.mobile-1.4.2.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
function successHandler (result) { | |
} | |
function errorHandler (error) { | |
} | |
$.ajax({url: "http://www.sermobi.com/new", | |
dataType: 'html', | |
beforeSend: function() { | |
}, | |
complete: function() { | |
}, | |
success: function (result) { | |
$('#app-status-ul').hide(); | |
//esta función esta definida un poco más abajo | |
ajax.parseJSONP(result); | |
$("form").on('submit', function() { | |
alert( "Submited form" ); | |
}); | |
}, | |
error: function (request,error) { | |
alert('Network error has occurred please try again!'); | |
} | |
}); | |
var ajax = { | |
parseJSONP:function(data){ | |
$('#movie-data').append(data); | |
$('#movie-data').listview('refresh'); | |
var newTheme = 'b'; | |
} | |
} | |
}); | |
</script> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment