Ok, found some more info on XMLHTTPRequest.  I'm kind of getting it, I think. :-)

Got this to work with my Mozilla 1.1

  var httpRequest = new XMLHttpRequest();
  httpRequest.open("POST", "http://localhost/xmlpost.php";, false, null, null);
  httpRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
  httpRequest.send("test=8");
  var response = httpRequest.responseText;
  alert (response);

and in xmlpost.php:

<?
header("content-type: text/plain");
$a = $test + 2;

print $a;
exit();
?>

When all that ran I got a javascript alert saying "10".  That's good. :)

Now I just need an easy way to get XUL elements, including textboxes,
into POSTable text that I can pass to send().  Will look some more and/or
hack something up, but an example would be sweet (I'm just learning JS).

Thanks...
Micah


-- 
Like to travel?                        http://TravTalk.org
Micah Yoder Internet Development       http://yoderdev.com

Reply via email to