I try to use a js library called ChemVector, witch is an obfuscated, for
license beast to render chemical structures. What it does is to replace the
custom <object class="chemvector-object"> tags with svg or vml depending on
the browser type, when "chemvector.browser.ImageLoader.getInstance().run()"
called.
I put a <script src="chemvector.js"> in the apps loader page header, but
calling the aforementioned function with JS() I get the following traceback:
TypeError: (void 0) is not a function
Traceback:
pyjslib.py, line 115
gwt.HTTPRequest.py, line 50:
    raise RuntimeError("Invalid call to asyncPut: handler is not a valid
request handler")
gwt.JSONService.py, line 224:
    self.request.handler.onRemoteResponse(response["result"],
BrowseTab.py, line 100:
    self.putHitsInTable(hits,start)
BrowseTab.py, line 215:
    JS("""chemvector.browser.ImageLoader.getInstance().run()""")

If I call chemvector.browser.ImageLoader.getInstance().run() from FireBug
console it works. What I do wrong?

A copy of the library can be reached here:
http://www.labcollector.com/demo/js/chemvector/lib/chemvector.js

Thanks,
Istvan

Reply via email to