PDA

View Full Version : Ext.BLANK_IMAGE_URL problem



baldeep_bhatia
12 Jan 2011, 6:09 AM
Hi Guys,

I have a minor issue.

Basically when i write Ext.BLANK_IMAGE_URL = ''; it works for Firefox and no image shows up..like below:


24255

now i will show you internet explorer version:

24254

can you see the difference.. in firefox, there is no image therefore works fine but on the internet explorer version, it seems like it can not find an image thus why it sets that 'x' image as default..

can someone please help..

kind regards

baldeep_bhatia
12 Jan 2011, 7:11 AM
anyone keen to help?

xnakxx
12 Jan 2011, 8:01 AM
do you have s.gif on your server?

from the docs:
BLANK_IMAGE_URL (http://dev.sencha.com/deploy/dev/docs/source/Ext-more.html#prop-Ext-BLANK_IMAGE_URL) : StringURL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images. In older versions of IE, this defaults to "http://extjs.com/s.gif" and you should change this to a URL on your server. For other browsers it uses an inline data URL.

baldeep_bhatia
12 Jan 2011, 8:56 AM
hey man,

i have the image on the server and i link it to that too. but this is what happens when i do that:

24258

can you see the little line next to the textbox?

the thing is, there is supposed to be the 'X' image there but i dont no how to reference it..also i have this other issue..

24259

can you see theres no checkboxes..

this is the code i have for my grid:

var firstGrid = new Ext.grid.GridPanel({
width: 480,
height: 295,
ddGroup: 'secondGridDDGroup',
store: firstGridStore,
columns: cols,
enableDragDrop: true,
trackMouseOver: false,
loadMask: true,
stripeRows: true,
autoExpandColumn: 'name',
title: 'Stock list',
sm: new Ext.grid.RowSelectionModel({ singleSelect: true }),
tbar: [], plugins: [new Ext.ux.grid.Search({
mode: 'local',
minLength: 1,
menuStyle: 'checkbox',
minChars: 1,
position: 'top',
autoFocus: true,
searchTipText: 'Search Tip Txt here',
iconCls: 'icon-zoom'
})]
});

i dont understand why the checkboxes and the X image next to the searchbox isnt showing...

please could you advice

devtig
12 Jan 2011, 12:52 PM
Check the 'Net' tab in firebug and see what request returns a 404.

baldeep_bhatia
12 Jan 2011, 5:11 PM
hey devtig,

your a star man.. thanx for the direction.. i saw with firebug, that many files were missing in the directory where the images were supposed to be.. i added the images and boom, all sorted :)

cheers man.. appreciate it.

this is how it looks:

24263

better?

devtig
12 Jan 2011, 11:20 PM
Yep, better. Similar functionality is here: http://gridsearch.extjs.eu/

Although I prefer for user to find a search box on top instead of at the bottom.