{I+=codeWee;}
[Javascript] jqeury: ajax - load html context dynamically on page show
<div data-role="page" id="page_A" data-dom-cache="false">
	<div id="div_A">

	</div>
</div>

	<script>
	$(document).on( "pageshow", "#page_A",function( event ) { 
		$.post("action.asp", 
		{
			param_A: "A"
			param_B: "B"
		})

		.done(function(data) {
			$("#div_A").html(data);
			$("#div_A").trigger("create"); 
		})
		.fail(function() {
			alert( "error" );
		})
		.always(function() {
		});
	} );
	</script>
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.