nehed-amri / dwpe

Automatically exported from code.google.com/p/dwpe
MIT License
0 stars 0 forks source link

Error visualizing Firefox 3.6+ with 1 TD per TR (Chart component) #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Simply visualize a table with 1 td per tr in Firefox 3.6+. See sample below.

===================================
Sample Code
===================================
<table>
    <caption>2009 Employee Sales by Department</caption>
    <thead>
        <tr>
            <td></td>
            <th scope="col">food</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <th scope="row">Mary</th>
            <td>190</td>
        </tr>
        <tr>
            <th scope="row">Tom</th>
            <td>3</td>
        </tr>
        <tr>
            <th scope="row">Brad</th>
            <td>10</td>
        </tr>
        <tr>
            <th scope="row">Kate</th>
            <td>40</td>
        </tr>       
    </tbody>
</table>
===================================
End Sample Code
===================================

What is the expected output? What do you see instead?
Expected:
Behave normally like in the other browsers (ie7 and chrome works fine)

Getting:
An error is thrown at line 365 of jquery.visualize.js. I alerted the linewidth 
variable and it's obviously not the right value, it's alerting "Infinity". For 
some weird reasons it works fine when more than one column (more than 1 td per 
tr)

What version of the product are you using? On what operating system?
-Latest as of today (2010-20-12 (yyyy/dd/mm))
-Bug only occurs on Firefox 3.6+
-OS : Windows XP SP2

Original issue reported on code.google.com by pierluc....@gmail.com on 20 Dec 2010 at 4:38

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Forgot to mention. Using jQuery version 1.4.4 and jQueryUI 1.8.7

[Exception... "An invalid or illegal string was specified"  code: "12" 
nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)"  location: 
"http://localhost:3792/Scripts/jQuery/charting/js/visualize.jQuery.js Line: 
365"]

Original comment by pierluc....@gmail.com on 20 Dec 2010 at 4:43

GoogleCodeExporter commented 8 years ago
I read this ticket 
(http://code.google.com/p/dwpe/issues/detail?id=51&sort=type#makechanges)

And tried with jQuery 1.4.2 and it works fine. Which means that this might be a 
jQuery 1.4.4 and firefox 3.6+ compatibility issue.

Original comment by pierluc....@gmail.com on 20 Dec 2010 at 5:01

GoogleCodeExporter commented 8 years ago
Try adding colFilter = '*' and rowFilter = '*' when you visualize the table, 
e.g:

$(this).visualize({ type: 'bar', width: '600px', height: '300px', rowFilter: 
'*', colFilter: '*' });

The default value for these filters is ' ', and that seems to break in FF 3.6.

Original comment by ask...@xangeli.com on 21 Dec 2010 at 11:14

GoogleCodeExporter commented 8 years ago
it works, 10x

Original comment by angelo.l...@gmail.com on 13 May 2011 at 2:05