load html frameset out of Python script
Andreas
news.Andreas at gmx.net
Sat Mar 23 05:32:13 EST 2002
news.Andreas at gmx.net (Andreas) wrote in message news:<30cf5082.0203221039.791cab07 at posting.google.com>...
> 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?
Sorry for this annoying posting! This problem drives me crazy for
hours. However, I found the problem behind the code of my Display()
function after a long break and a big coffee.
But I still don't know how to put html code into a specific frame out
of my Python scripts.
Any suggestions?
Regards, Andreas
More information about the Python-list
mailing list