Firefox 3.6 不显示内容 - xajax、jquery、css

发布于 2024-08-20 02:39:31 字数 993 浏览 12 评论 0原文

我知道这个问题可能听起来很模糊,但我已经调试(PHP 和 js)我们的应用程序一天了,没有发现数据生成中的任何问题。

我们的应用程序使用 xajax 根据数据库中的数据生成列表。我们有一个特别适用于所有其他浏览器的列表:IE 7&8、Firefox 3.0.13(Linux) 和 3.5.7(Win、Mac)、Opera (Win)、Chrome 4.0.249.30(Linux) 和 4.0。 249.78(Win),Safari(Win 和 Mac)。但Windows 7和Mac OS 10.6.2中的firefox 3.6根本不生成此列表。

当我使用 firebug 时,包含列表的 div 完全为空

<pre>< div id="listOutput">< /div></pre>

”,其中应包含 l 的所有数据 是!

我不知道为什么会发生这个问题,任何关于为什么会发生这种情况的线索都会有真正的帮助,

谢谢




  <表类=“列表”>
    <正文>
    
       < /th >
       ID ;
       选项< /th >
     
   
 

I know this question may sound vague, but I have been debugging (PHP and js) our application for a day now and have not found any issues in the data generation.

Our application uses xajax to generate lists based on data that we have in our DB. we have a list in particular that works on every other browser: IE 7&8, Firefox 3.0.13(Linux) and 3.5.7 (Win, Mac), Opera (Win), Chrome 4.0.249.30(Linux) and 4.0.249.78 (Win), Safari (Win and Mac). But firefox 3.6 in windows 7 and Mac OS 10.6.2 does not generate this list at all.

When I use firebug the div that contains the list is completely empty

<pre>< div id="listOutput">< /div></pre>

", when in it should contain all the data for the l
ist!

I have no idea why this problem could be happening, and any leads in why this may be happening would be of real help

Thank you



<div id = "listOutput" >
  <table class="list" >
    <tbody >
      <tr class="head" >
        <th class="noSort checkbox"><input id="selectAllRows" name="selectAllRows" title="Select all" type="checkbox" >< /th >
        <th class="ID" onclick="xajax_displayPagination(0, 20, 'id', 'ASC', xajax.getFormValues('pageForm')); xajax_displaySearch(0, 20, 'id', 'ASC', xajax.getFormValues('pageForm')); xajax_displayList(0, 20, 'id', 'ASC', xajax.getFormValues('pageForm'));"><span id="DESC">ID</span></th>
        <th class="noSort option">option< /th >
      </tr >
    </tbody >
  </table >
</div >

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

Bonjour°[大白 2024-08-27 02:39:31

与 FF3.6 的新 js 支持中的这一变化有关吗?

“函数实例的原型属性不再是可枚举的。” https://developer.mozilla.org/en/Firefox_3.6_for_developers

can be related with this change in new js support for FF3.6?

"The prototype property of function instances is no longer enumerable." https://developer.mozilla.org/en/Firefox_3.6_for_developers

梓梦 2024-08-27 02:39:31

xajax 是否使用 getBoxObjectFor(),请参阅 https://developer.mozilla.org/en/Firefox_3。 6_for_开发人员?如果确实如此,那可能是您的问题。我必须解决这个问题,因为 FF 3.6 一发布。我们的基础设施网格在某些情况下不起作用,这就是罪魁祸首。

这是我修复它的方法。

请注意,我的修复是 jQuery

$(document).ready(function() {   
    if ($.browser.mozilla && !document.getBoxObjectFor) {
        document.getBoxObjectFor = function(elem) {
            var boundingRect = elem.getBoundingClientRect();
            var doc = elem.ownerDocument;

            // top and bottom are not rounded off in Gecko1.9
            // http://www.quirksmode.org/dom/w3c_cssom.html#elementviewm
            var elemTop = Math.round(boundingRect.top);
            var elemLeft = boundingRect.left;
            var docElement = doc.documentElement;

            // clientLeft and clientTop would be 0 for Gecko1.9
            // https://bugzilla.mozilla.org/show_bug.cgi?id=174397#c34
            elemLeft += docElement.scrollLeft;
            elemTop += docElement.scrollTop;

            return { x: elemLeft, y: elemTop, width: docElement.width, height: docElement.height };
        };
    } 
});

Does xajax use getBoxObjectFor(), see https://developer.mozilla.org/en/Firefox_3.6_for_developers? If it does that could be your problem. I had to fix this because as soon as FF 3.6 came out. Our Infragistics grids did not work in certain scenarios and that was the culprit.

Here's what I did to fix it.

Note that my fix is a la jQuery

$(document).ready(function() {   
    if ($.browser.mozilla && !document.getBoxObjectFor) {
        document.getBoxObjectFor = function(elem) {
            var boundingRect = elem.getBoundingClientRect();
            var doc = elem.ownerDocument;

            // top and bottom are not rounded off in Gecko1.9
            // http://www.quirksmode.org/dom/w3c_cssom.html#elementviewm
            var elemTop = Math.round(boundingRect.top);
            var elemLeft = boundingRect.left;
            var docElement = doc.documentElement;

            // clientLeft and clientTop would be 0 for Gecko1.9
            // https://bugzilla.mozilla.org/show_bug.cgi?id=174397#c34
            elemLeft += docElement.scrollLeft;
            elemTop += docElement.scrollTop;

            return { x: elemLeft, y: elemTop, width: docElement.width, height: docElement.height };
        };
    } 
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文