Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/w/e/Webware-for-Python-1.1.1/WebKit/Examples/AjaxSuggest.py   Webware-for-Python(Download)
    def writeJavaScript(self):
        AjaxPage.writeJavaScript(self)
        self.writeln('<script type="text/javascript" src="ajaxsuggest.js"></script>')
 
    def writeStyleSheet(self):
        AjaxPage.writeStyleSheet(self)
        self.writeln('<link rel="stylesheet" href="ajaxsuggest.css" type="text/css">')
    def writeContent(self):
        self.writeln('<h2>Ajax "Suggest" Example</h2>')
        if self.request().hasField('query'):
            self.writeln('''
<p>You have just entered the word <b class="in_red">"%s"</b>.</p>
<p>If you like, you can try again:</p>'''
JavaScript enabled in order for this to work.</p>
<p>Start typing in some lowercase letters,
and get random words starting with these characters suggested:</p>''')
        self.writeln('''<form><div>
<input type="text" name="query" id="query" onkeyup="getSuggestions();" autocomplete="off">