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

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
A javascript code block.

When you want to pass a parameter name, this allows to know that it 
should not have any quotes.

Attributes:
 
 - **catch**: Put this code inside a try-catch JavaScript block.
 
Example::(more...)

src/p/y/pyojo-0.0.2/src/examples/TEST/srv/pyojo/gui_tree_js.py   pyojo(Download)
 
    newpanel =  dijit.layout.ContentPane("tab"+str(id(request)),
                                        title=js.Code("item.name"),
                                        registered = False,
                                        extractContent = True,
                                        closable = True,
                                        style = "overflow:auto;",
                                        href = js.Code("item.url + '?code=1'"),

src/p/y/pyojo-0.0.2/src/examples/TEST/srv/pyojo/data/tree_nav_js.py   pyojo(Download)
def GET(request):
    return js.Code(JS)
 

src/p/y/pyojo-0.0.2/src/pyojo/js/lib/tree.py   pyojo(Download)
                      target="TREE")
        if dnd:
            self.tree.member["dndController"]=js.Code("dndSource")
            self.tree.require.append("dijit/tree/dndSource")
 

src/p/y/pyojo-0.0.2/src/pyojo/tests/basic/test_js.py   pyojo(Download)
                (None, "null"),
                (js.Var("A"), "A"),
                (js.Code("A"), "A")]
        self.check(test)