ikonen.olavi79
New Member
- Messages
- 23
- Reaction score
- 0
- Points
- 0
I've uploaded jpg's in binary mode and the extension is .jpg - not .JPG. Now - when i look the folder, all the jpg's MIME types are text/x-generic when, i think, it has to be image/jpeg. Does the host even know it's a image data???
Some jpg's come but about 90% of files dont download. Belov is a skeleton of the download code. I've tried all kind of tricks ex. timed download, waiting, checking content etc...but none worked. What the hell is the problem - is it me or is it x10 host. I think it's the lattes so HELP me in this...
If whole script is needed, you'll get it. But this is the preload function, all others are irrelevant.
Code works just fine in client enviroment.
Olli.
Code:
///////////////////////////////
// preload images to memory
///////////////////////////////
function preloadimages(category)
{
if(isImagesLoaded)
{
return;
}
// preload category images
for(i = 0; i < items.length; i++)
{
if(items._category == category)
{
itemImages = new Image();
itemImages.src = items._image1;
++itemCount;
}
}
itemCategory = category;
isImagesLoaded = true;
init();
}
Some jpg's come but about 90% of files dont download. Belov is a skeleton of the download code. I've tried all kind of tricks ex. timed download, waiting, checking content etc...but none worked. What the hell is the problem - is it me or is it x10 host. I think it's the lattes so HELP me in this...
If whole script is needed, you'll get it. But this is the preload function, all others are irrelevant.
Code works just fine in client enviroment.
Olli.
Code:
///////////////////////////////
// preload images to memory
///////////////////////////////
function preloadimages(category)
{
if(isImagesLoaded)
{
return;
}
// preload category images
for(i = 0; i < items.length; i++)
{
if(items._category == category)
{
itemImages = new Image();
itemImages.src = items._image1;
++itemCount;
}
}
itemCategory = category;
isImagesLoaded = true;
init();
}
Last edited: