View Single Post
Join Date: Jan 2009
Posts: 1
Reputation: dahech is an unknown quantity at this point 
Solved Threads: 0
dahech dahech is offline Offline
Newbie Poster

Anaa framework problem

 
0
  #1
Jan 3rd, 2009
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:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7. <title>Test des fonctions des frameworks Anaa( framework Ajax)</title>
  8.  
  9. <script language="JavaScript">
  10. function storing("hello", element)
  11. {
  12. element.innerHTML = "hello";
  13. }
  14.  
  15. function submitForm(element)
  16. {
  17. AARead("~/exemple.txt", storing, element);
  18. }
  19.  
  20. </script>
  21.  
  22. </head>
  23. <body>
  24. <FORM name="ajax" method="POST" action="">
  25.  
  26. <em>
  27. <span style="color:Black ; width:11px; font:x-large ,Arial"><b>Anaa Framework - Demo of Get for a Plain Text</b>
  28. <br />
  29. </span>
  30. <br />
  31. <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>
  32. <br />
  33. </em>
  34. <br />
  35. <span id="storage"> ***Must be stored here***. </span>
  36. <br />
  37. <input style=" width:76px" type=button value=" cliquer" ONCLICK="submitForm(document.getElementById('storage'))">
  38.  
  39.  
  40. </form>
  41. </body>
  42. </html>

thanks
Reply With Quote