Click here to Skip to main content
15,883,901 members
Articles / Programming Languages / Java

Ajaxion - Standalone AJAX - Part 2 of 2 - C# and Java Example

Rate me:
Please Sign up or sign in to vote.
4.97/5 (34 votes)
22 Jan 2013CPOL5 min read 55.2K   1.4K   42  
An article about how to keep AJAX simple as it is and get the most out of it.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Untitled Page</title>
	<script src="Ajaxion/js/ajaxion.js" type="text/javascript"></script>
	<script src="js/standaloneAjax.js" type="text/javascript"></script>
</head>
<body onload="onLoad()">
	<form name="test" method="post">
		<table cellspacing="0" cellpadding="3" border="3" width="100%" class="table">
			<tr class="tr_title_bar">
				<td width="19%" class="td_center_text">
					<input id="btn" type="button" title="Get Text" value="Get Text" name="btn" onclick="ajaxion.postUrl('http://localhost/AjaxionTest/AjaxCallbackPage.aspx?dummy=params already', 'getText', getTextCallback)" />
				</td>
				<td width="38%" class="td_center_text">
					<img id="statusImg" src="images/ready.JPG" alt="image" height="18" width="280" />
				</td>
				<td class="td_center_text" width="43%">
					<span id="status">Ready</span>
				</td>
			</tr>
			<tr class="tr">
				<td width="19%">
					&nbsp;</td>
				<td width="38%">
					<div id="txDiv" class="td_center_text">
						Retrieve Area</div>
				</td>
				<td width="43%">
					&nbsp;</td>
			</tr>
			<tr>
				<td width="19%">
					&nbsp;</td>
				<td width="38%">
					&nbsp;</td>
				<td width="43%">
					&nbsp;</td>
			</tr>
		</table>
	</form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Software Developer
New Zealand New Zealand
Coder

Comments and Discussions