PDA

View Full Version : [2.0b1][CLOSED] IE 6 &IE7 Runtime Error



lozpeng
20 Oct 2007, 5:28 AM
When I make ext2.0b and RichFaces 3.1.2GA work together,ext-core.js causes an IE6&7 runtime error at line14.But the same code works well in FireFox2.Is anybody can help me?!
Also when i use the <rich:gmap> component the page not work properly both in IE and FireFox.Maybe ext a little conflict with RichFaces' js library.(:|

mystix
20 Oct 2007, 6:46 AM
:-/ you'll need to be clearer than that.

please take a look at 13985 for information that you should be providing.

lozpeng
20 Oct 2007, 7:23 PM
Finally I use the ext-core-debug.js file to find out where causes the problem.

dom.innerHTML = html.replace(/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig, "");
at file ext-core-debug.js line 3314
I post the image at here
http://lh3.google.com/lozpeng/RxrDY5bp1kI/AAAAAAAAAD0/sYi-h2AfsRg/runtimeError.JPG



function addTabToCenter(name,webUrl,params)
{
try{
var activePanel = new Ext.Panel({
title: name,
autoLoad: {url: webUrl, params: params},
iconCls: 'tabs'+activePanelID,
id:'newTab'+activePanelID,
text: "Loading data ....",
closable:true
});

if(center_tabPanel&&activePanel)
{
center_tabPanel.add(activePanel);
activePanelID++;
}
activePanel.show();
}
catch(e)
{
alert(e);
}
}
The jsf tag and jsp page tags


<f:view>
<body>
<h:form>
<rich:panel id="mapHeader" header="RichFaces & Ext Tesing">
<h:inputText size="50" value="#{fireProofDataBean.strVal}">
<a4j:support event="onkeyup" reRender="repeator"/>
</h:inputText>
<h:outputText value="#{fireProofDataBean.strVal}" id="repeator" />
</rich:panel>
</h:form>
</body>
</f:view>

call for the addTabToCenter
<a href="javascript:void(0);" onclick='addTabToCenter("My TabPanel","gmap/viewgmap.jsf","name=lopeng&id=12345")'>Open RichFaces Ajax page</a>

jack.slocum
20 Oct 2007, 9:22 PM
You have some invalid JS somewhere. That is what the error means.

Closed, as this has nothing to do with a bug in Ext.