PDA

View Full Version : Help with Ext.DomHelper.append



4 Aug 2009, 8:43 AM
Hello everyone,

I am having this very strange problem with the length of the url in Ext.DomHelper.append method. When I pass more than 736 characters to the url nothing works and this is indeed very strange because firefox completely blanks out when I pass more than the limit of 736 characters. The code is below.




var createPDF = function() {
Ext.DomHelper.append(document.body, {
tag: 'iframe',
frameBorder: 0,
width: 0,
height: 0,
css: 'display:none;visibility:hidden;height:1px;',
src: 'vvcall.pgm?sid='+sid+'&opt='+opt+'&pgm=exepdf&action=createPDF'+
'&XOBJECT='+Ext.getCmp('xobject').getValue()+
'&XSTRIPEROWS='+Ext.getCmp('xstriperows').getValue()+
'&XPATH='+Ext.getCmp('xpath').getValue()+
'&XSTYLE='+Ext.getCmp('xstyle').getValue()+
'&XFONT='+Ext.getCmp('xfont').getValue()+
'&XFONTSIZE='+Ext.getCmp('xfontsize').getValue()+
'&XSTYLE1='+Ext.getCmp('xstyle1').getValue()+
'&XFONT1='+Ext.getCmp('xfont1').getValue()+
'&XCOLOR1='+Ext.getCmp('xcolor1').getValue()+
'&XALIGNMENT1='+Ext.getCmp('xalignment1').getValue()+
'&XPREFIX1='+Ext.getCmp('xprefix1').getValue()+
'&XSUFFIX1='+Ext.getCmp('xsuffix1').getValue()+
'&XSTYLE2='+Ext.getCmp('xstyle2').getValue()+
'&XFONT2='+Ext.getCmp('xfont2').getValue()
});
};

In the above code when I try to pass extra params to the "src", firefox crashes and no activity takes place when I try to open the page however when I try to keep the length of the src under the limit everything works fine. Can anyone please help me figure out this odd behaviour as I need to pass few extra params to this method.

Thanks in advance

Regards
Sairam