[求助]Ajax函数在IE里正常,firefox里不能正常显
<P>我的代码////index.html页面部分函数<BR>loadpage = functio[em04]n()<BR>{<BR> var request_url = "a.html";<BR> var request_pars = "";<BR> var ajax = new Ajax.Updater(container,request_url,{<BR> method : 'get',<BR> parameters : request_pars,<BR> evalScripts : true<BR> });<BR>}<BR>getElementById.("MYDiv").InnerHtml = loadpage//把返回执行JS后的a.html内容放到MyDiv标签里。<BR>/////////////<BR>a.html里部分函数<BR>//////////<BR><script><BR>doStart = function() <BR>{ <BR> var request_url = 'Server1.asp';用asp访问数据库<BR> var request_pars = "";<BR> var myAjax = new Ajax.Request(<BR> request_url,<BR> {<BR> method:'get',<BR> parameters:request_pars,<BR> asynchronous:true, <BR> onComplete:pollCallback<BR> } <BR> ); <BR>} <BR>function pollCallback()<BR>{<BR>//数据处理并把数据放到本页的表格里不作描述<BR>}<BR></script> </P><P><script><BR> doStart();<BR></script><BR> <table id="mytable1" width="238" height="90" border="1" cellpadding="1" cellspacing="1"><BR> </table><BR>//////////////////////////////////////////////////<BR>上面的代码我在IE里运行没问题,但是到firefox里就只能显示表格没有数据了,我怀疑是<BR> a.html里的var myAjax = new Ajax.Request这个对象没有产生,会不会跟已经在index.html的<BR>new Ajax.Updater(container,request_url)有关呢?不知道大家有没有过类是情况,请高手回答一下哦~~谢谢</P>
页:
[1]
