PDA

View Full Version : Problems with image src



lucia_mgv
24 Nov 2010, 8:45 AM
Hi,

I have an image renderizer in a BoxComponent. The src of the image is the following one:

file:///\\lantek124\Installation\products\Logo.png

But I don't know why explorer is taking as src :

file:///\lantek124InstallationproductsLogo.png

My code is:


var AvantiaLogo$Image=new Ext.BoxComponent({
id:'AvantiaLogo$Image',
width:400,
height:76,
cls:'NormalWindows',
style:'margin-bottom:6px;',
html:'<img src="file:///\\lantek124\Installation\products\Logo.png"/>'
});


Which can be the problem??

griffiti93
24 Nov 2010, 12:08 PM
Try escaping all your backslashes perhaps.

html:'<img src="file:///\\\lantek124\\Installation\\products\\Logo.png"/>'

Alternatively, setup a virtual folder in your web server that points to your physical folder. That would allow you to use a standard "http://" URL.

lucia_mgv
24 Nov 2010, 11:35 PM
Thank you!

It worked escaping the backslashes.

griffiti93
26 Nov 2010, 6:23 AM
Cool!