Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

live_cpu_graph does not work on Internet Explorer #50

Closed
vivekhub opened this issue Jul 6, 2012 · 12 comments
Closed

live_cpu_graph does not work on Internet Explorer #50

vivekhub opened this issue Jul 6, 2012 · 12 comments

Comments

@vivekhub
Copy link
Contributor

vivekhub commented Jul 6, 2012

Here is the error from IE 8 browser - its triggers a JS exception

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; .NET4.0C; InfoPath.2; BOIE8;ENUS)
Timestamp: Fri, 6 Jul 2012 08:24:29 UTC


Message: 'window.G_vmlCanvasManager' is null or not an object
Line: 698
Char: 17
Code: 0
URI: http://localhost:8080/static/jquery.flot.js
@sontek
Copy link
Collaborator

sontek commented Jul 6, 2012

The LiveCPU example is a more advanced example that relies on HTML5 canvas support, we could use excanvas to fix the rendering for IE but it is still using /proc/stats for getting the CPU info. I have no idea what the windows alternative for that would be.

@sontek
Copy link
Collaborator

sontek commented Jul 6, 2012

Unless you just want it to render properly on windows and don't mind not being able to develop it on windows

@sontek
Copy link
Collaborator

sontek commented Jul 6, 2012

ok, I ported this so development wise and rendering wise it should work on all platforms. I don't have IE 8 to test with so I'll leave that up to you.

@vivekhub
Copy link
Contributor Author

vivekhub commented Jul 6, 2012

I think we should leave the server to be linux but focus on the client to be IE, FF, Chrome etc., otherwise the purpose of socket.io is lost

@sontek
Copy link
Collaborator

sontek commented Jul 6, 2012

Well development at least works under Linux and OSX and I included excanvas.js for IE less than or equal to 8 but don't have a way to test if excanvas fixes it.

@vivekhub
Copy link
Contributor Author

vivekhub commented Jul 6, 2012

OK unfortunately I dont have the JS skills to make it work. Let us leave it open and see if someone else can fix it.

@sontek
Copy link
Collaborator

sontek commented Jul 6, 2012

Did you test the latest code? can you paste me the error? I pushed changes that should work, I just get test them since I don't have IE

@vivekhub
Copy link
Contributor Author

vivekhub commented Jul 6, 2012

@sontek same problem as before. Something wrong with Flot maybe?

Also you have to add to the instructions

pip install psutil

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC LM 8; .NET4.0C; InfoPath.2; BOIE8;ENUS)
Timestamp: Fri, 6 Jul 2012 14:29:45 UTC


Message: 'window.G_vmlCanvasManager' is null or not an object
Line: 698
Char: 17
Code: 0
URI: http://localhost:8080/static/jquery.flot.js

@sontek
Copy link
Collaborator

sontek commented Jul 6, 2012

I removed the pip requirements and added all dependencies in setup.py, so you just have to call python setup.py develop and it'll do it for you.

It doesn't seem like it actually loaded the excanvas.js file, that should have generated the G_vmlCanvasManager that is needed

@sontek
Copy link
Collaborator

sontek commented Jul 6, 2012

Looks like flot.js is actually including excanvas by itself.

@sontek
Copy link
Collaborator

sontek commented Jul 6, 2012

can you git pull and try one more time?

@vivekhub
Copy link
Contributor Author

vivekhub commented Jul 6, 2012

Yes!!! this works nice.

On Fri, Jul 6, 2012 at 5:00 PM, John Anderson <
reply@reply.github.com

wrote:

can you git pull and try one more time?


Reply to this email directly or view it on GitHub:
#50 (comment)

@sontek sontek closed this as completed Jul 6, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants