Don Taylor wrote:

> 
> First is to construct the apps opening web-page on the fly in the 
> XML-RPC server before the server instantiates the page.  I can generate 
> some custom Javascript in this page that has the port number embedded 
> within it.  Then the Javascript can store it in a cookie or pass it on 
> to the next page as a parameter.
> 

Ok, this worked for me.  From a Python application, I constructed a file 
containing:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
   <head>
     <script type="text/javascript" language="JavaScript1.1">
       <!--
 
location.replace("file:///D:/EclipseWS/XML-RPCTesting/webbrowser.htm?port=8001");
       //-->
     </script>

     <title>Redirector</title>
   </head>
   <body>
   Re-directing ...
   </body>
</html>

used webbrowser.open to fire it up in a browser.  This file immediately 
redirects as above and includes the ?port=8001 in the url on the target 
page.  I am able to extract the port number using a bit of Javascript in 
the final page.

So, I think that bit will work for me.

Don.

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to