Response title
This is preview!
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>AIM - DvcrEntry</title> | |
<link href="/intranet/click/control.css" rel="stylesheet" type="text/css"/> | |
<link href="/intranet/mobile/assets/css/aim-mobile.css" rel="stylesheet" type="text/css"/> | |
<link href="/intranet/mobile/assets/css/jquery.mobile-1.0a2.min.css" rel="stylesheet" type="text/css"/> | |
<script src="/intranet/click/control.js" type="text/javascript"></script> | |
<script src="/intranet/mobile/assets/js/jquery-1.4.4.min.js" type="text/javascript"></script> | |
<script src="/intranet/mobile/assets/js/jqm-mobile-config.js" type="text/javascript"></script> | |
<script src="/intranet/mobile/assets/js/jquery.mobile-1.0a2.min.js" type="text/javascript"></script> | |
<script src="/intranet/mobile/assets/js/aim-mobile.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(function() { | |
$('#myajaxform').submit(function(e) { | |
jQuery.ajax({ | |
type: $(this).attr("method"), | |
url: $(this).attr("action"), | |
dataType: "json", | |
data: $(this).serialize(), | |
beforeSend:function(XMLHttpRequest, settings){}, | |
complete:function(XMLHttpRequest, textStatus){ | |
jQuery("#aim-home").page("destroy").page(); | |
}, | |
dataFilter:function(data, type){}, | |
success:function(data, textStatus, XMLHttpRequest){ | |
$('#myajaxform').html(XMLHttpRequest.responseText); | |
}, | |
error:function(XMLHttpRequest, textStatus, errorThrown){} | |
}); | |
e.preventDefault(); | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<div name="aim-home" id="aim-home" data-role="page" data-theme="b"> | |
<div data-role="header" data-theme="b"> | |
<a href="/intranet/mobile/module/dvcr/dvcrmenu.htm" data-icon="back">Back</a> | |
<h1>AIM - DvcrEntry</h1> | |
<a href="/intranet/mobile/module/dvcr/dvcrentry.htm?actionLink=loginLink" data-icon="gear">Login</a> | |
</div> | |
<div data-role="content"> | |
<form name="myajaxform" id="myajaxform" method="post" name="myajaxform" id="myajaxform" action="/intranet/mobile/module/dvcr/dvcrentry.htm"> | |
<div data-role="fieldcontain" style="display:none;"> | |
<label for="step"> | |
Step | |
</label> | |
<input type="hidden" name="step" id="myajaxform_step" value="1"/> | |
</div> | |
<div data-role="fieldcontain"> | |
<label for="unitNum"> | |
Unit Number: | |
</label> | |
<input type="text" name="unitNum" id="myajaxform_unitNum" value="" size="20"/> | |
</div> | |
<div class="ui-body ui-body-b"> | |
<fieldset class="ui-grid-a"> | |
<div class="ui-block-a"> | |
<a data-theme="b" class="ui-btn ui-btn-corner-all ui-shadow ui-btn-up-b" role="button" href="/intranet/mobile/module/dvcr/dvcrmenu.htm" aria-label="Cancel"> | |
<span class="ui-btn-inner ui-btn-corner-all"> | |
<span class="ui-btn-text"> | |
Cancel | |
</span> | |
</span> | |
</a> | |
</div> | |
<div class="ui-block-b"> | |
<input type="submit" name="submit" id="myajaxform_submit" value="Submit" onclick="alert('clicked');"/> | |
</div> | |
</fieldset> | |
</div> | |
<input type="hidden" name="form_name" id="myajaxform_form_name" value="myajaxform"/> | |
<input type="hidden" name="bypass_validation" id="myajaxform_bypass_validation" value="false"/> | |
</form> | |
</div> | |
<div data-role="footer"> | |
<h4> </h4> | |
</div> | |
</div></body> | |
</html> |
© 2013 jQuery Foundation
Sponsored by and others.