I have a simple question: What is the Quixote
  equivalent of the following ASP script
  <%
  response.write(time)
  %>

  I tried
  def testajax [plain](self):
     print "debugging:returning time value"
     return "%s" % time.time()

  with "testajax" in my _q_exports list. The function
  testajax is called as gleaned from the error log,
  but all I get is  a Page not found
  error in my test browser.

  I think the user page expects a simple string response
  not a complete html page. I don't want to use a static file just
 for ths. Here is a part of the user page:
   xmlHttp.onreadystatechange=function()
        {
        if(xmlHttp.readyState==4)
          {
          document.myForm.time.value=xmlHttp.responseText;
          }
        }
      xmlHttp.open("GET","testajax",true);
      xmlHttp.send(null);
    }

  I am exploring plain AJAX before I try Mochikit and
  other tools.

  Ernie
  http://extremecomputing.org/extreme
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to