hello,
I am novice in Ajax, i am trying to build an exemple using the Anaa(An Ajax API), but doesn 't work and i don t know why?
i am using the Visual studio 2005 to builb it
look at the example:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!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 runat="server">
<title>Test des fonctions des frameworks Anaa( framework Ajax)</title>
<script language="JavaScript">
function storing("hello", element)
{
element.innerHTML = "hello";
}
function submitForm(element)
{
AARead("~/exemple.txt", storing, element);
}
</script>
</head>
<body>
<FORM name="ajax" method="POST" action="">
<em>
<span style="color:Black ; width:11px; font:x-large ,Arial"><b>Anaa Framework - Demo of Get for a Plain Text</b>
<br />
</span>
<br />
<span style=" font-family:Arial,11px">Load the <label id="nom_du_fichier" ><b>nom_du_fichier</b></label>file and store the content into the field below.</span>
<br />
</em>
<br />
<span id="storage"> ***Must be stored here***. </span>
<br />
<input style=" width:76px" type=button value=" cliquer" ONCLICK="submitForm(document.getElementById('storage'))">
</form>
</body>
</html>
thanks