This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / 这里有哪位TX遇到Javascript执行document.write()就报permission denied,然后就不继续执行下面的语句。如果把document.write() 注释掉,其他code都没问题,只要一call document.write()就permission denied,放狗搜了一圈,有说domain问题的,有说不同frame的问题,但这些似乎在我的code都不work,我加了 document.domain = document.domain.substring(document.domain.indexOf('.') + 1); 没用,而且我是在测试code里调试的,简单的一个aspx页面,一个按钮,一个javascript的function。
-mfcguy();
2009-3-26
{373}
(#5145594@0)
-
document.write can not run after page loaded. your case?
-elecskunk(elecskunk);
2009-3-26
(#5146815@0)
-
Thanks! I want an effect like this:after clicking a button(execute some heavy job,may take 10 secs), a gif shows up in clients' browser, after heavy job done, the gif should be hided. That's all. So in this case, without using document.write, how could we write something in client's browser after page loaded? .
-mfcguy();
2009-3-27
{280}
(#5147272@0)
-
first DIV show the gif, and second DIV is the "heavy job". after it is loaded, it covers the first DIV.
-benlin(安静的松鼠);
2009-3-27
(#5148223@0)
-
现在问题是第一个div都document.write了就报告permission denied,后面的不run了。
-mfcguy();
2009-3-27
(#5148517@0)
-
try prototype and google element.update(); It's what you need.
-informix(informix);
2009-3-27
(#5148556@0)
-
谢谢,不过这个俺没玩出来:P 你试过吗?
-mfcguy();
2009-3-27
(#5149284@0)
-
if you are using .NET, you can try PageRequestManager Class to do partial render stuff.
-whereismyid(到处找ID);
2009-3-27
(#5148729@0)
-
这个不知道可行否,下周找个时间我来试试,因为我用了一个第三方control,和UpdatePanel不兼容,这个class用的和UpdatePanel一样的API的话估计就够呛。
-mfcguy();
2009-3-27
(#5149282@0)
-
谢谢LS各位帮忙,虽然没有直接用上你们的方法,但你们给了我idea,我现在这样解决的:
-mfcguy();
2009-3-27
{1489}
(#5149279@0)
-
Not so complicated
-deep_blue(BLUE);
2009-3-29
{809}
(#5152450@0)
-
还是你这个方法最简单,谢谢深蓝tx。
-mfcguy();
2009-3-30
(#5154760@0)