Problem with creating Images Img.create

Hello Folks.
SmartCilent is an absolutely amazing AJAX framework. I built a complex inventory application using SmartClient, PHP, and Mysql with ease.

That being said, I’m trying to create an application using images. When I call
Img.create and set my src attribute the images do not show up. I’ve placed them in the same directory as my html file for simplicity. I’ve also tried StretchImg.create and Canvas.create with the backgroundImage attribute.
I’m using WinXP pro sp 2. heres my code.

Img.create({

ID:“myFirstWidget”,
canDragReposition: true,
width: 368,
height: 75,
src: “OST_Logo.gif”,
autoDraw: true

});

Canvas.create({

ID:“myFirstWidget”,
canDragReposition: true,
width: 368,
height: 75,
backgroundImage: ‘OST_Logo.gif’,
autoDraw: true

});

Anything I’m forgetting?
Many thanks in advance.

Hi vgreen,

Thanks for the kudos, much appreciated.

Images specified for Img.src and other properties marked as type “scImgURL” are fetched from the “application image directory”, which by default is “./images”. The purpose of having an “applicationimage directory” is to make it easier to launch an application from multiple locations and use the same set of images and other media. See these docs for more information.

Thanks

It works. Thanks alot. I should have read the documentation further. I appreciate the prompt response. I’ve been telling everyone about SmartClient.
Thanks again.