943,907 Members | Top Members by Rank

Ad:
Jan 3rd, 2009
0

Anaa framework problem

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dahech is offline Offline
1 posts
since Jan 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: frames not working in firefox
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: prototype successive ajax.updater requests fail on Windows only





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC