0

我正在使用带有事件处理程序的 Google 可视化表。

它在 Safari、Chrome 和 IE 中运行良好。但它在 Firefox 中存在漏洞。

问题是,在 Firefox 中工作时,我单击的行数据是另一行的数据。

为了确保这不是代码故障,我测试了谷歌的“标准”代码。

当我选择一行时,我运行一个 JS 函数来提醒这一行的内容。
我选择带有studentnummer21100042
Safari/Chrome 警报的行:You selected {row:213, (no column, showing first)} = 21100042 Firefox 警报:You selected {row:0, (no column, showing first)} = 20100044

我选择带有studentnummer21100060
Safari/Chrome 警报的行:You selected {row:327, (no column, showing first)} = 21100060 Firefox 警报:You selected {row:1, (no column, showing first)} = 20100027

第一次打电话?

我认为排序可能有问题。Firefox 警报第 0 行和第 1 行(单击了第一行和第二行)。Safari/Chrome 警报 213、327 作为行号。

我尝试在 Ruby on Rails 中按代码对行进行排序,但这并不能解决问题。

谁能帮我解决这个问题?


--- 编辑 ---
Javascript: http:
//pastebin.com/BgE0kxM8

红宝石
/Rails:http://pastebin.com/QAuPYy5x

4

0 回答 0