+ Reply to Thread
Results 1 to 2 of 2

Thread: Can't fetch my images...

  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 Can't fetch my images...

    I'm trying read my images from folder named pics but i found that the mime type is text/x-generic when it should be something like image/jpeg, why is that? is there some particular naming convention in folders? I'm little frustrated...below is the preloading script if someone is interested. It doesn't check anything, just loads...

    After loading when checked height && width - they both are 0. This is the skeleton of preload, i've tried timed and looped reading but the result is always the same - no proper object read...

    ///////////////////////////////
    // preload images to memory
    ///////////////////////////////
    function preloadimages(category)
    {
    if(isImagLoad)
    {
    return;
    }

    // preload category images
    for(i = 0; i < items.length; i++)
    {
    if(items[i]._category == category)
    {
    itemImages[i] =Image();
    itemImages[i].src = items[i]._image1;
    ++itemCount;
    }
    }
    itemCategory = category;

    isImageLoad = true;

    init();
    }
    Last edited by ikonen.olavi79; 04-27-2011 at 05:07 AM.

  2. #2
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: Can't fetch my images...

    I am moving this thread to Programming Help where someone may be able to assist you.
    *****Thread Moved to Programming Help*****


+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 08-01-2010, 03:17 PM
  2. Can't See Images
    By rhyeen in forum Programming Help
    Replies: 2
    Last Post: 05-24-2009, 06:57 PM
  3. [REQ] [600] New/Top images
    By sarvar in forum The Marketplace
    Replies: 10
    Last Post: 04-09-2009, 07:56 PM
  4. Mysql fetch array?
    By salukigirl in forum Scripts & 3rd Party Apps
    Replies: 7
    Last Post: 12-14-2007, 01:27 PM
  5. Corrupted Images or No Images at all!
    By kcchan in forum Free Hosting
    Replies: 8
    Last Post: 11-03-2007, 07:58 PM

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