+ Reply to Thread
Results 1 to 5 of 5
Like Tree2Likes
  • 1 Post By ikonen.olavi79
  • 1 Post By descalzo

Thread: Why i cant load jpg's from x10 host...???

  1. #1
    ikonen.olavi79 is offline x10Hosting Member ikonen.olavi79 is an unknown quantity at this point
    Join Date
    Apr 2011
    Location
    Helsinki, Finland
    Posts
    23

    Question Why i cant load jpg's from x10 host...???

    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[i]._category == category)
    {
    itemImages[i] = new Image();
    itemImages[i].src = items[i]._image1;
    ++itemCount;
    }
    }
    itemCategory = category;
    isImagesLoaded = true;
    init();
    }
    Last edited by ikonen.olavi79; 04-27-2011 at 08:10 AM. Reason: Errata
    dinomirt96 likes this.

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Why i cant load jpg's from x10 host...???

    Yes. All the code would be nice. And a url.

    Some load. Which ones? The same ones each time? Is there a pattern?
    karimirt47 likes this.
    Nothing is always absolutely so.

  3. #3
    ikonen.olavi79 is offline x10Hosting Member ikonen.olavi79 is an unknown quantity at this point
    Join Date
    Apr 2011
    Location
    Helsinki, Finland
    Posts
    23

    Re: Why i cant load jpg's from x10 host...???

    Yes, there is a pattern an they are always the same pics which load. I' ve chanced the order and tried to paste new data to ones which load and save it with new name. But nothing seems to work. Always the same ones load, others not...check it in cisoft.x10.mx and u know what i mean. Go eg. to Tuotteet->Lelut (Products->Toys)...now i have to check the file differences using hex editor. Or - any succestions?
    Last edited by ikonen.olavi79; 04-27-2011 at 09:45 AM. Reason: Adding data

  4. #4
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Why i cant load jpg's from x10 host...???

    The servers here are *nix, which is case sensitive.

    Looking at your code, for example, it lists pics/kippivaunu.jpg but the image name on the server is Kippivaunu.jpg . So, the server is reporting the file as not found.

    It would work on a Windows server, but not on Linux.

    A best practice is to always use lowercase file names.
    Nothing is always absolutely so.

  5. #5
    ikonen.olavi79 is offline x10Hosting Member ikonen.olavi79 is an unknown quantity at this point
    Join Date
    Apr 2011
    Location
    Helsinki, Finland
    Posts
    23

    Re: Why i cant load jpg's from x10 host...???

    Thanks, that solved the problem. I'm used to work in Windows enviroment which is not case sensitive and did not thought it at all...but many thanks for u. U save my day...

+ Reply to Thread

Similar Threads

  1. My website, is taking Ages to load or Dosent Load ?
    By enhanced.support21 in forum Free Hosting
    Replies: 0
    Last Post: 11-20-2010, 12:12 AM
  2. Replies: 1
    Last Post: 05-15-2010, 11:19 AM
  3. cpanel wont load and website wont load
    By deadonearth in forum Free Hosting
    Replies: 2
    Last Post: 04-13-2010, 04:03 PM
  4. Replies: 3
    Last Post: 03-29-2010, 11:52 PM
  5. Local host to remote host
    By dchamai in forum Free Hosting
    Replies: 5
    Last Post: 02-21-2008, 09:57 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers