Hello,

this is my example, that's not work. But I can't explain why not. The
request is not sent. I get no request. The Servlet works fine.

Can somebody helpa beginner?

<html>
  <head>
    <title>Servlet aufrufen</title>
    <script type="text/javascript" src="scriptaculousAjax/lib/
prototype.js"></script>
    <script type="text/javascript" src="scriptaculousAjax/src/
scriptaculous.js"></script>
    <script>

      function sendRequest() {

        new Ajax.Request('localhost:8080/AjaxServer2/
AusgabeServlet',
                {   method:'get',
                        parameters: {eingabe: 'example'},
                        onSuccess: function(transport){
                                 var response = transport.responseText || "no 
response
text";
                                 alert("Success! \n\n" + response);     },
                        onFailure: function(){ alert('Something went
wrong...') }   });
        }

    </script>
  </head>

  <body>

    <form action="/submitOrder" name="testForm"
onkeypress="sendRequest()">
     <input type="text" name="eingabe" id="eingabe" value="" >
     <input type="text" name="ausgabe" id="ausgabe" value="">

      <input type="submit"/>

    </form>

  </body>

</html>

Christoph


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to