load html frameset out of Python script

Andreas news.Andreas at gmx.net
Fri Mar 22 13:39:43 EST 2002


Hello everybody,

I am trying to set up a html site with frames. I want to load the
frameset out of a Python script.
Frameset definition:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
        "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>right frame</title>
</head>
  <frameset frameborder="no" rows="20%,20%,8%,52%">
    <frame src="control.html" name="frame_control" scrolling="no"
noresize marginheight="0" marginwidth="0">
    <frame src="customer.html" name="output_customer" scrolling="no"
noresize marginheight="0" marginwidth="0">
    <frame src="buttons.html" name="component_buttons" scrolling="no"
noresize marginheight="0" marginwidth="0">
    <frame src="empty.html" name="output_component" scrolling="auto"
marginheight="0" marginwidth="0">
  </frameset>
  <noframes>
  No frame support of your browser!
  </noframes>
<body>
</body>
</html>

I load this with the following code:

File = "%s" % ('frameset.html')
PageHandle = open(File, "r")
PageInput = PageHandle.read()
PageHandle.close()
Display(PageInput)

...the html file will be found but I can see just an empty page.

What can I do to realize this problem?
Is it possible to write in a specific frame from my scripts?

Thanks in advance,
Andras



More information about the Python-list mailing list