Slideshow

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • TonyJeffs

    Slideshow

    I want to create a web-based slideshow where it'll hunt through all
    the jpg files I put in a folder, irrespective of name or how many, and
    cycle through them, one by one.
    This would mean that whenever I have new pictures, I just upload
    them, and they are automatically part of the slideshow merely by being
    in the folder, without updating my code.
    The problem, I think, is the security aspect of the web based utility
    not having permission to look at files in one of its folders unless
    they are named

    Is this possible?
    If not Javascript, what other language?
    (I don't want the viewer to have to deliberately accept an activex
    control, which seems one way I could make it work)

    ....I can dabble in a few languages, not great at any, but grateful for
    a pointer in the right direction, if it's possible.

    Cheers

    Tont

    Is it possible to set
  • Bob Bedford

    #2
    Re: Slideshow

    try www.dynamicdrive.com

    "TonyJeffs" <tonyjeffs@aol. com> a écrit dans le message de
    news:8ec4c623.0 312040557.23962 392@posting.goo gle.com...[color=blue]
    > I want to create a web-based slideshow where it'll hunt through all
    > the jpg files I put in a folder, irrespective of name or how many, and
    > cycle through them, one by one.
    > This would mean that whenever I have new pictures, I just upload
    > them, and they are automatically part of the slideshow merely by being
    > in the folder, without updating my code.
    > The problem, I think, is the security aspect of the web based utility
    > not having permission to look at files in one of its folders unless
    > they are named
    >
    > Is this possible?
    > If not Javascript, what other language?
    > (I don't want the viewer to have to deliberately accept an activex
    > control, which seems one way I could make it work)
    >
    > ...I can dabble in a few languages, not great at any, but grateful for
    > a pointer in the right direction, if it's possible.
    >
    > Cheers
    >
    > Tont
    >
    > Is it possible to set[/color]


    Comment

    • Bob Bedford

      #3
      Re: Slideshow

      For managing files you automatically upload on a server, you should do it on
      the server side.
      It can be done in ASP or PHP. don't know with javascript....

      Let me get the script on ASP and I'll send it to you.

      BoB

      "TonyJeffs" <tonyjeffs@aol. com> a écrit dans le message de
      news:8ec4c623.0 312040557.23962 392@posting.goo gle.com...[color=blue]
      > I want to create a web-based slideshow where it'll hunt through all
      > the jpg files I put in a folder, irrespective of name or how many, and
      > cycle through them, one by one.
      > This would mean that whenever I have new pictures, I just upload
      > them, and they are automatically part of the slideshow merely by being
      > in the folder, without updating my code.
      > The problem, I think, is the security aspect of the web based utility
      > not having permission to look at files in one of its folders unless
      > they are named
      >
      > Is this possible?
      > If not Javascript, what other language?
      > (I don't want the viewer to have to deliberately accept an activex
      > control, which seems one way I could make it work)
      >
      > ...I can dabble in a few languages, not great at any, but grateful for
      > a pointer in the right direction, if it's possible.
      >
      > Cheers
      >
      > Tont
      >
      > Is it possible to set[/color]


      Comment

      • Bob Bedford

        #4
        Re: Slideshow

        Here is the code for getting all files from a directory automatically. In my
        case, I do show all thumbnails images with a link to bigger images. You may
        change it for your needs. hope this helps.

        <%
        Dim objFSO
        Set objFSO = Server.CreateOb ject("Scripting .FileSystemObje ct")

        'Get the folder object associated with the directory
        Dim objFolder
        Set objFolder =
        objFSO.GetFolde r(Server.MapPat h("../images/photogallery/thumbnails"))

        'Loop through the Files collection
        Dim objFile
        For Each objFile in objFolder.Files
        Response.Write "<div align=""center" ">"
        Response.Write "<a href=""../images/photogallery/images/"+objFile.Name+ """
        onClick=""retur n
        enlarge('../images/photogallery/images/"+objFile.Name+ "',event)"" >"
        Response.Write "<img
        src=""../images/photogallery/thumbnails/"+objFile.Name+ """
        alt="""+objFile .Name+""" align=""bottom" " border=""1""><b r>"
        Response.Write "<br><br><b r></a></div>"
        Next

        'Clean up!
        Set objFolder = Nothing
        Set objFile = Nothing
        Set objFSO = Nothing
        %>
        "Bob Bedford" <bedford1@YouKn owWhatToDohotma il.com> a écrit dans le message
        de news:3fcf407c$0 $770$5402220f@n ews.sunrise.ch. ..[color=blue]
        > For managing files you automatically upload on a server, you should do it[/color]
        on[color=blue]
        > the server side.
        > It can be done in ASP or PHP. don't know with javascript....
        >
        > Let me get the script on ASP and I'll send it to you.
        >
        > BoB
        >
        > "TonyJeffs" <tonyjeffs@aol. com> a écrit dans le message de
        > news:8ec4c623.0 312040557.23962 392@posting.goo gle.com...[color=green]
        > > I want to create a web-based slideshow where it'll hunt through all
        > > the jpg files I put in a folder, irrespective of name or how many, and
        > > cycle through them, one by one.
        > > This would mean that whenever I have new pictures, I just upload
        > > them, and they are automatically part of the slideshow merely by being
        > > in the folder, without updating my code.
        > > The problem, I think, is the security aspect of the web based utility
        > > not having permission to look at files in one of its folders unless
        > > they are named
        > >
        > > Is this possible?
        > > If not Javascript, what other language?
        > > (I don't want the viewer to have to deliberately accept an activex
        > > control, which seems one way I could make it work)
        > >
        > > ...I can dabble in a few languages, not great at any, but grateful for
        > > a pointer in the right direction, if it's possible.
        > >
        > > Cheers
        > >
        > > Tont
        > >
        > > Is it possible to set[/color]
        >
        >[/color]


        Comment

        • Laurent Bugnion, GalaSoft

          #5
          Re: Slideshow

          Hi,

          TonyJeffs wrote:
          [color=blue]
          > I want to create a web-based slideshow where it'll hunt through all
          > the jpg files I put in a folder, irrespective of name or how many, and
          > cycle through them, one by one.
          > This would mean that whenever I have new pictures, I just upload
          > them, and they are automatically part of the slideshow merely by being
          > in the folder, without updating my code.
          > The problem, I think, is the security aspect of the web based utility
          > not having permission to look at files in one of its folders unless
          > they are named
          >
          > Is this possible?
          > If not Javascript, what other language?
          > (I don't want the viewer to have to deliberately accept an activex
          > control, which seems one way I could make it work)
          >
          > ...I can dabble in a few languages, not great at any, but grateful for
          > a pointer in the right direction, if it's possible.
          >
          > Cheers
          >
          > Tont
          >
          > Is it possible to set[/color]

          This is exactly what I use WebLoadFile for:



          Laurent
          --
          Laurent Bugnion, GalaSoft
          Webdesign, Java, JavaScript: http://www.galasoft-LB.ch
          Private/Malaysia: http://mypage.bluewin.ch/lbugnion
          Support children in Calcutta: http://www.calcutta-espoir.ch

          Comment

          • Fabian

            #6
            Re: Slideshow

            TonyJeffs hu kiteb:
            [color=blue]
            > I want to create a web-based slideshow where it'll hunt through all
            > the jpg files I put in a folder, irrespective of name or how many, and
            > cycle through them, one by one.
            > This would mean that whenever I have new pictures, I just upload
            > them, and they are automatically part of the slideshow merely by being
            > in the folder, without updating my code.
            > The problem, I think, is the security aspect of the web based utility
            > not having permission to look at files in one of its folders unless
            > they are named
            >
            > Is this possible?
            > If not Javascript, what other language?
            > (I don't want the viewer to have to deliberately accept an activex
            > control, which seems one way I could make it work)[/color]

            NOt tested, definately in need of further work, but...

            var i = 0
            while (i != NaN) {
            preload[i] = new Image();
            preload[i].src = i + ".gif";
            // test for undefined somehow
            if (preload[i].src is undefined) { i = "a"; }
            else { i = i + 1; }
            }

            You'd still need to number your files sequentially with this of course.

            --
            --
            Fabian
            Visit my website often and for long periods!


            Comment

            • Dr John Stockton

              #7
              Re: Slideshow

              JRS: In article <bqoak2$24rb2c$ 1@ID-174912.news.uni-berlin.de>, seen in
              news:comp.lang. javascript, Fabian <lajzar@hotmail .com> posted at Fri, 5
              Dec 2003 06:42:23 :-[color=blue]
              >
              >NOt tested, definately in need of further work, but...
              >
              >var i = 0
              >while (i != NaN) {
              > preload[i] = new Image();
              > preload[i].src = i + ".gif";
              > // test for undefined somehow
              > if (preload[i].src is undefined) { i = "a"; }
              > else { i = i + 1; }
              >}
              >
              >You'd still need to number your files sequentially with this of course.
              >[/color]

              IIRC, NaN is never equal to anything, not even another NaN or a copy of
              itself. Moreover, a NaN is neither greater nor smaller than anything
              else.

              Better to use while (OK) { or do {...} while (OK) and compute
              OK in the loop.

              Consider

              for (i=0;;i++) {
              ...
              if (...) break
              }

              --
              © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
              Web <URL:http://www.merlyn.demo n.co.uk/> - FAQish topics, acronyms, & links.
              Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
              Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

              Comment

              Working...