directory listing clientside

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

    directory listing clientside

    New to javascript.
    Is it possible to use javascript to scan a directory client side.
    If so, could someone point me in the general direction of information on how
    to. I do not know what keywords I should be googling for :(

    I am aiming to return array of image files to use in a 'slideshow' script
    that will be cut to cd.
    I have already found a slideshow script, but now need to populate array, and
    will be using php to ultimately write the html code with the javascript
    embede for user to save.

    TIA

    PhilM


  • HikksNotAtHome

    #2
    Re: directory listing clientside

    In article <3fe2ea41$0$183 86$afc38c87@new s.optusnet.com. au>, "PhilM"
    <philm@nospam.c om.am> writes:
    [color=blue]
    >New to javascript.
    >Is it possible to use javascript to scan a directory client side.[/color]

    No. Not in a default security environment.
    [color=blue]
    >If so, could someone point me in the general direction of information on how
    >to. I do not know what keywords I should be googling for :(
    >
    >I am aiming to return array of image files to use in a 'slideshow' script
    >that will be cut to cd.
    >I have already found a slideshow script, but now need to populate array, and
    >will be using php to ultimately write the html code with the javascript
    >embede for user to save.[/color]

    If the images are on the CD, and PHP is generating it all, have PHP generate a
    list of the files in the folders and then write it as a JS array. Problem
    solved.
    --
    Randy

    Comment

    • Grant Wagner

      #3
      Re: directory listing clientside

      PhilM wrote:
      [color=blue]
      > New to javascript.
      > Is it possible to use javascript to scan a directory client side.
      > If so, could someone point me in the general direction of information on how
      > to. I do not know what keywords I should be googling for :(
      >
      > I am aiming to return array of image files to use in a 'slideshow' script
      > that will be cut to cd.
      > I have already found a slideshow script, but now need to populate array, and
      > will be using php to ultimately write the html code with the javascript
      > embede for user to save.
      >
      > TIA
      >
      > PhilM[/color]

      No, client-side JavaScript has no access to the local file system in the default
      security environment.

      --
      | Grant Wagner <gwagner@agrico reunited.com>

      * Client-side Javascript and Netscape 4 DOM Reference available at:
      *


      * Internet Explorer DOM Reference available at:
      *
      Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


      * Netscape 6/7 DOM Reference available at:
      * http://www.mozilla.org/docs/dom/domref/
      * Tips for upgrading JavaScript for Netscape 7 / Mozilla
      * http://www.mozilla.org/docs/web-deve...upgrade_2.html


      Comment

      • PhilM

        #4
        Re: directory listing clientside


        "HikksNotAtHome " <hikksnotathome @aol.com> wrote in message
        news:2003121912 5309.08626.0000 2246@mb-m27.aol.com...[color=blue]
        > In article <3fe2ea41$0$183 86$afc38c87@new s.optusnet.com. au>, "PhilM"
        > <philm@nospam.c om.am> writes:
        >[color=green]
        > >New to javascript.
        > >Is it possible to use javascript to scan a directory client side.[/color]
        >
        > No. Not in a default security environment.
        >[color=green]
        > >If so, could someone point me in the general direction of information on[/color][/color]
        how[color=blue][color=green]
        > >to. I do not know what keywords I should be googling for :(
        > >
        > >I am aiming to return array of image files to use in a 'slideshow' script
        > >that will be cut to cd.
        > >I have already found a slideshow script, but now need to populate array,[/color][/color]
        and[color=blue][color=green]
        > >will be using php to ultimately write the html code with the javascript
        > >embede for user to save.[/color]
        >
        > If the images are on the CD, and PHP is generating it all, have PHP[/color]
        generate a[color=blue]
        > list of the files in the folders and then write it as a JS array. Problem
        > solved.
        > --
        > Randy[/color]

        PHP on server can access a users PC directory? I didn't think this was
        possible.

        The aim is to ultimately create plain html file(with embedded javascript)
        for the user to place above a directory of images on their hard drive, that
        they can then cut to disk, and use on any comp as a presentation kind of
        thing.

        PhilM


        Comment

        • PhilM

          #5
          Re: directory listing clientside


          "Grant Wagner" <gwagner@agrico reunited.com> wrote in message
          news:3FE34607.1 033FACE@agricor eunited.com...[color=blue]
          > PhilM wrote:
          >[color=green]
          > > New to javascript.
          > > Is it possible to use javascript to scan a directory client side.
          > > If so, could someone point me in the general direction of information on[/color][/color]
          how[color=blue][color=green]
          > > to. I do not know what keywords I should be googling for :(
          > >
          > > I am aiming to return array of image files to use in a 'slideshow'[/color][/color]
          script[color=blue][color=green]
          > > that will be cut to cd.
          > > I have already found a slideshow script, but now need to populate array,[/color][/color]
          and[color=blue][color=green]
          > > will be using php to ultimately write the html code with the javascript
          > > embede for user to save.
          > >
          > > TIA
          > >
          > > PhilM[/color]
          >
          > No, client-side JavaScript has no access to the local file system in the[/color]
          default[color=blue]
          > security environment.
          >[/color]
          For clarification, by local file system, do you mean server, or the users
          machine?
          (local to web page, or local to client :)
          If server, then there is hope, as I do not want to access a server
          directory. (I could do that with php)

          PhilM


          Comment

          • HikksNotAtHome

            #6
            Re: directory listing clientside

            In article <3fe372c0$0$183 86$afc38c87@new s.optusnet.com. au>, "PhilM"
            <philm@nospam.c om.am> writes:
            [color=blue]
            >PHP on server can access a users PC directory? I didn't think this was
            >possible.[/color]

            No, I thought the images were included in the CD.
            [color=blue]
            >The aim is to ultimately create plain html file(with embedded javascript)
            >for the user to place above a directory of images on their hard drive, that
            >they can then cut to disk, and use on any comp as a presentation kind of
            >thing.[/color]

            <URL:

            html/sgprogrammingfi lesystemobject. asp />

            Will show you how, in IE, to get a file listing, provided the user allows the
            ActiveX to run.


            --
            Randy

            Comment

            • Erwin Moller

              #7
              Re: directory listing clientside

              PhilM wrote:
              [color=blue]
              > New to javascript.
              > Is it possible to use javascript to scan a directory client side.
              > If so, could someone point me in the general direction of information on
              > how to. I do not know what keywords I should be googling for :([/color]

              This question is asked about once a day in this very newsgroup.

              I suggest you just read it.
              [color=blue]
              >
              > I am aiming to return array of image files to use in a 'slideshow' script
              > that will be cut to cd.
              > I have already found a slideshow script, but now need to populate array,
              > and will be using php to ultimately write the html code with the
              > javascript embede for user to save.
              >
              > TIA
              >
              > PhilM[/color]

              Comment

              • Grant Wagner

                #8
                Re: directory listing clientside

                PhilM wrote:
                [color=blue][color=green]
                > > No, client-side JavaScript has no access to the local file system in the[/color]
                > default[color=green]
                > > security environment.
                > >[/color]
                > For clarification, by local file system, do you mean server, or the users
                > machine?
                > (local to web page, or local to client :)
                > If server, then there is hope, as I do not want to access a server
                > directory. (I could do that with php)
                >
                > PhilM[/color]

                I thought it was fairly clear... client-side JavaScript has no access to the
                local file system. Since client-side JavaScript executes on the client, the file
                system local to the client is the client's file system.

                --
                | Grant Wagner <gwagner@agrico reunited.com>

                * Client-side Javascript and Netscape 4 DOM Reference available at:
                *


                * Internet Explorer DOM Reference available at:
                *
                Find official documentation, practical know-how, and expert guidance for builders working and troubleshooting in Microsoft products.


                * Netscape 6/7 DOM Reference available at:
                * http://www.mozilla.org/docs/dom/domref/
                * Tips for upgrading JavaScript for Netscape 7 / Mozilla
                * http://www.mozilla.org/docs/web-deve...upgrade_2.html


                Comment

                Working...