DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Anaa framework problem (http://www.daniweb.com/forums/thread165849.html)

dahech Jan 3rd, 2009 2:37 pm
Anaa framework problem
 
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


All times are GMT -4. The time now is 5:36 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC