Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

getting urls to images on server

iiswordiisword Posts: 552Registered Users
I want to know if it's possible to ask a server that has images on it to give me the urls to these images. Lets say I got 3 areas on a server, one area has 50 images, the second area has 30, and the third has 10. To make things easy, the server is "www.mysite.com/area//. if I can do this, how would I go about doing this.
Post edited by iisword on

Replies

  • baja_yubaja_yu Posts: 6,166Super Moderators, Registered Users
    The server doesn't usually allow directory browsing. iOS SDK or otherwise. I think you'll need to manage this from the server side. Maybe an asp/php script that would return the list of files in a folder when called or something like that.
  • iiswordiisword Posts: 552Registered Users
    Well I'm looking at the view source and it has this javascript
    function soopaSetup() {
    var img, sh, sn, sd
    for (var i = 0; (img = document.images[i]); i++) {
    if (img.getAttribute) {
    sn = img.getAttribute(\"src\");
    sh = img.getAttribute(\"hsrc\");
    sd = img.getAttribute(\"dsrc\");
    if (sn != \"\" && sn != null) {
    img.n = new Image();
    img.n.src = img.src;
    if (sh != \"\" && sh != null) {
    img.h = new Image();
    img.h.src = sh;
    img.onmouseover = soopaSwapOn
    img.onmouseout = soopaSwapOff
    }
    if (sd != \"\" && sd != null) {
    img.d = new Image();
    img.d.src = sd;
    img.onmousedown = soopaSwapDown
    }
    }
    }
    }
    }


    I'm assuming I could get the image url from the "sn" variable cause in html image tag has src as the url
Sign In or Register to comment.