javascript popup view by details

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

    #1

    javascript popup view by details

    I have a very simple javascript popup that opens to
    a drive folder, e.g.

    c:\test

    which is called as such:

    <A HREF="javascrip t:popUp('C:/test')">Test Folder</A>


    This displays the contents of the c:\temp folder
    but defaults to a view of "large icons." Is there
    a way to make it default to a view of "details?"
  • Andrew Thompson

    #2
    Re: javascript popup view by details

    On 15 Sep 2004 05:37:18 -0700, Tone wrote:
    [color=blue]
    > <A HREF="javascrip t:popUp('C:/test')">Test Folder</A>[/color]
    ...[color=blue]
    > This displays the contents of the c:\temp folder
    > but defaults to a view of "large icons." Is there
    > a way to make it default to a view of "details?"[/color]

    Since only IE (of IE/Moz/Opera) does that,
    I suggest you ask the manufacturer of that
    OS component.

    [ And I doubt the solution (if there is one)
    has anything to do with Javascript. ]

    --
    Andrew Thompson
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.PhySci.org/ Open-source software suite
    http://www.1point1C.org/ Science & Technology
    http://www.lensescapes.com/ Images that escape the mundane

    Comment

    • RobG

      #3
      Re: javascript popup view by details

      Tone wrote:

      [color=blue]
      > <A HREF="javascrip t:popUp('C:/test')">Test Folder</A>[/color]

      What Andrew said: talk to Microsoft. Other browsers show a
      standard detail view.

      Here's another way of doing what you want that works in other browsers:

      <script type="text/javascript">
      function listFiles(link) {
      var fileWindow = window.open(lin k,'aWindow','') ;
      }
      </script>
      <form><input type="button" value="click"
      onclick="listFi les('file:///c:/temp');">
      </form>

      Comment

      • Tone

        #4
        Solution found

        Basically, the problem was that windows.open() in the
        javascript didn't allow me the control I needed to
        specify the appropriate command line parameters to
        Windows Explorer. Perhaps there is a way, but I
        didn't find it.

        So, I found a solution that doesn't use windows.open().

        Here is the code snippet:


        <SCRIPT LANGUAGE="JavaS cript">
        <!--

        function popUp(URL) {

        var objShell = new ActiveXObject ( "Shell.Applicat ion" );
        objShell.ShellE xecute ( "explorer.e xe", '/n,'+URL, "", "open", 1 );
        }
        // End -->
        </script>




        toonces_t@yahoo .com (Tone) wrote in message news:<6ab9363f. 0409150437.10f0 0082@posting.go ogle.com>...[color=blue]
        > I have a very simple javascript popup that opens to
        > a drive folder, e.g.
        >
        > c:\test
        >
        > which is called as such:
        >
        > <A HREF="javascrip t:popUp('C:/test')">Test Folder</A>
        >
        >
        > This displays the contents of the c:\temp folder
        > but defaults to a view of "large icons." Is there
        > a way to make it default to a view of "details?"[/color]

        Comment

        • Tone

          #5
          Re: javascript popup view by details

          Hmmm . . . somehow this message got put on the wrong
          thread. Trying again . . . .

          Basically, the problem was that windows.open() in the
          javascript didn't allow me the control I needed to
          specify the appropriate command line parameters to
          Windows Explorer. Perhaps there is a way, but I
          didn't find it.

          So, I found a solution that doesn't use windows.open().

          Here is the code snippet:


          <SCRIPT LANGUAGE="JavaS cript">
          <!--

          function popUp(URL) {

          var objShell = new ActiveXObject ( "Shell.Applicat ion" );
          objShell.ShellE xecute ( "explorer.e xe", '/n,'+URL, "", "open", 1 );
          }
          // End -->
          </script>

          Comment

          Working...