Is it possible to access java variables within Webware? I came across a
problem with IE's handling of the META refresh (it can't load other
documents). So I'll somehow need to break the process of writing my
pages (so that the user can get a fair chance in clicking a link to the
new page instead).

To further understand my problem I've got some code here for you:
    def writeHeadParts(self):
        self.writeTitle()
        self.writeStyleSheet()
        self.writeln('''
        <script LANGUAGE="JavaScript">
        <!--
        if (top.location.href.indexOf("index.html") == -1)
        document.writeln('<META http-equiv="refresh"
        content="1,http://www.foobar.com";>');
        // -->
        </script>
        ''')
  
    def writeBodyParts(self):
        if isIndex: #We are on the wrong page the java said
            self.writeln('Click <a href="http://foobar.com";>here</a>')
        else:
            self.writeHeader()
            self.writeMain()
            self.writeFooter()


So in essence, I will need to have the
isIndex = top.location.href.indexOf("index.html")

-- 
Alexander Brill <[EMAIL PROTECTED]>
http://www.project23.no
PGP-key: http://alexb.egil.org/key.pub

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to