PDA

View Full Version : extjs takes relative source for dynamic ext-gen



ruchika
15 Dec 2009, 2:03 AM
HI,

i have moved the html file to our Application/html folder which is of same level to Application/ext-3.0 directory but now the problem is whenever ext-js is generating the dynamic tages like below



<img class="x-form-trigger x-form-arrow-trigger " src="../../resources/images/default/s.gif" id="ext-gen43"/>


it takes the relative path like above(src="../../resources/images/default/s.gif")

can anyone please advise how is extjs taking the path dynamically and is there any way we can change it to our required path.

Thanks
Ruchika

Condor
15 Dec 2009, 5:07 AM
Simply define an absolute path instead of a relative path in Ext.BLANK_IMAGE_URL.

AmilaThennakoon
15 Dec 2009, 8:28 AM
try this ..

Ext.onReady(function(){
Ext.BLANK_IMAGE_URL = 'images/s.gif';
});

Condor
15 Dec 2009, 8:30 AM
No need to do that inside Ext.onReady. I would even advise setting it BEFORE Ext.onReady.

shiva-Kumar
16 Dec 2009, 11:01 PM
Thanks Condor it works :).