At 12:43 PM 30/06/2004 +0200, Paul Boddie wrote: [snip]
Good luck and let us know how you get on!
[snip]
Success! Thank you Paul, Max, Matt, Aaron. Here is the code that worked.
#################
from WebKit.Page import Page
class HelloXUL2(Page):
def __init__(self):
Page.__init__(self)
def sleep(self,transaction):
Page.sleep(self,transaction)
def writeHTML(self):
wl = self.writeln
self.response().setHeader('Content-type', 'application/vnd.mozilla.xul+xml')
wl('''<?xml version="1.0"?>''')
wl('''<!DOCTYPE window>''')
wl('''<window''')
wl('''\t id = "remote"''')
wl('''\t xmlns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"''')
wl('''\t title = "Hello XUL" style = "min-width:640px; min-height:480px;">''')
wl('''\t<description value="Hello XUL!" />''')
wl('''</window>''')
#################
The key was setting the content type and adding the missing "/" in the "description" tag to close it. This was tested on Firefox 0.8 on Linux. I had to check the content type in the "Page Info" dialog to make sure I got it right. Now, on to something a little more substantial, using tree lists and grids to display results of database queries.
Regards,
Clifford Ilkay Dinamis Corporation 3266 Yonge Street, Suite 1419 Toronto, Ontario Canada M4N 3P6
Tel: 416-410-3326
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss
