

def get_js(self):
    'Returns the javascript code needed to prepare the\n        Sijax environment in the browser.\n\n        Note that the javascript code is unique and cannot be shared between\n        different pages.\n        '
    if (js._request_uri is None):
        raise SijaxError('Trying to get the sijax js, but no request_uri has been set!')
    js = ('Sijax.setRequestUri(%s);' % json.dumps(self._request_uri))
    if (self._json_uri is not None):
        js += ('Sijax.setJsonUri(%s);' % json.dumps(self._json_uri))
    return js

dataset/ETHPy150Open spantaleev/sijax-python/sijax/core.py Sijax.get_js/VarMisuse@14/83 `self`->`js`