IE页面呈现问题(等待消息) [英] IE page rendering issue (Wait message)

查看:85
本文介绍了IE页面呈现问题(等待消息)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因为Firefox和IE以不同的方式呈现网页,所以我得不到相同的结果。

我使用了许多包含javascript功能的嵌入式表格。


我所拥有的是一个包含单选按钮的表。一旦用户选择了一个按钮,我就使用onClick功能生成2个动态选择器,一旦结果从DataBase返回就插入。


我想显示一条简单的消息(正在查询)直到生成选择器(2秒)。要显示消息:

document.getElementById(''waitQuery'')。style.display ='''';

并且一旦构建选择器就删除消息:

document.getElementById(''waitQuery'')。style.display ='''';


这适用于Firefox,但不适用于IE。为什么,因为表不完整,那就是选择器还没有完成。所以IE也没有显示消息。一旦创建了选择器,IE就会执行Javascript,但速度太快以至于没有看到消息,加上在等待时间过后显示消息没有意义。


请, help ...我只想在查询过程中在IE中显示一条简单的消息...

解决方案

您是否正在调用显示waitQuery的方法?在动态创建2个选择器之前的OnClick事件中?


如果您发布代码片段以便我们可以看到您正在做什么,这可能会有所帮助。

< br>

@Frinavale


是的,我调用的函数显示已经硬编码到span id =''的消息waitQuery''


一旦生成选择器,我调用一个类似的函数,将span显示更改为none。

------------------------------------------ -------------------------------------

展开 | 选择 | Wrap | 行号


如何发送查询?你为此目的使用ajax吗?万一你做...然后确保它完成异步...否则浏览器将等待查询并可能显示这样的行为...


亲切的问候

Because Firefox and IE render web pages differently, I cant get the same results.
I working with many embedded tables that contain javascript functionality inside.

What I have is a table that contains radio buttons. Once the user selects a button, I use the onClick functionality to generate 2 dynamic selectors that are inserted once results come back from DataBase.

I want to display a simple message (Query in progress) until the selectors are generated (2sec). To display the message:
document.getElementById(''waitQuery'').style.display ='''';
and once the selectors are build remove message:
document.getElementById(''waitQuery'').style.display ='''';

This works in Firefox, but not in IE. Why, because the table is not complete, that is the selectors are not done yet. So IE does not show the message either. Once the selectors are created, IE executes the Javascript, but so fast that message is not seen, plus in does not make sense to show the message after the wait time passed.

Please, help... I just want a simple message to be Displayed in IE while query in progress...

解决方案

Are you calling the method that displays "waitQuery" during the OnClick event before the 2 selectors are dynamic created?

It may help if you post a code snippet so that we can see what you''re doing.


@Frinavale
Yes, Im calling a function that displays the message that is already hard coded in to the span id=''waitQuery''

once the selectors are generated I call a similar function that changes the span display to none.
-------------------------------------------------------------------------------

Expand|Select|Wrap|Line Numbers


how do you send the query? do you use ajax for that purpose? in case you do ... then ensure that it is done async ... otherwise the browser will wait for the query and may show such behaviour ...

kind regards


这篇关于IE页面呈现问题(等待消息)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆