wesnolte / jOrgChart

A jQuery plugin to draw tree-like structures such as OrgCharts.
992 stars 674 forks source link

The chart does not show in IE9 #26

Open cheiwai opened 12 years ago

cheiwai commented 12 years ago

When a page with an org chart is opened with IE9, the chart is not shown in the page. Refreshing the page does not help. If you view source, the HTML structure is there, but the chart just does not show. The strange thing is, if you open the developer tools (F12) and refresh the page, the chart will show. The problem can be reproduced by closing and restarting IE9.

cheiwai commented 12 years ago

After some tracing, I found that the problem was caused by the two console.log() calls in jquery.jOrgChart.js. Could you please omit these calls from the file?

(Reference: http://stackoverflow.com/questions/5472938/does-ie9-support-console-log-and-is-it-a-real-function)

ova2 commented 12 years ago

I agree. I get JS error in IE8 too because console.log is not available there.