Python Client and Javascript

Asked by Xavier

Hi there

I'm currently testing the Python Client rev 160 on Ubuntu 9.10. My problem is that when I want to display a webpage which contain javascript, this webpage isn't displayed. I got this error : "Javascript Error in at line 1: Uncaught TypeErro: Cannot read property 'style' of null". My webpage has no problem with IE8 and Firefox 3.5. Does Javascript work with Python Client ?

Many thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Harrington
Solved:
Last query:
Last reply:
Revision history for this message
Best Alex Harrington (alexharrington) said :
#1

The client embeds Chromium browser which is based on Google Chrome.

First step is to try in either Chrome or Chromium and see if your code works. If it does, then I'm afraid at the moment I have no way of updating the version of Chromium being used as the Awesomium browser embedding engine is now closed source.

We have Rino working on porting Berkelium (which does the same job as Awesomium) over so I can use it with libavg which will mean the client will be running a much newer version of Chromium with the V8 javascript engine.

You can keep an eye on progress on that here: https://launchpad.net/browsernode

I know for example that alot of JQuery stuff is broken at the moment in the client.

Alex

Revision history for this message
Xavier (xavier-hess) said :
#2

Hello Alex,

My webpage wasn't compatible for Chrome, so I corrected it and now it works fine.

Thank you for all :)

Revision history for this message
Xavier (xavier-hess) said :
#3

Thanks Alex Harrington, that solved my question.