Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > javascript popup view by details

Reply
Thread Tools

javascript popup view by details

 
 
Tone
Guest
Posts: n/a
 
      09-15-2004
I have a very simple javascript popup that opens to
a drive folder, e.g.

c:\test

which is called as such:

<A HREF="javascriptopUp('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?"
 
Reply With Quote
 
 
 
 
RobG
Guest
Posts: n/a
 
      09-16-2004
Tone wrote:


> <A HREF="javascriptopUp('C:/test')">Test Folder</A>


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(link,'aWindow','');
}
</script>
<form><input type="button" value="click"
onclick="listFiles('file:///c:/temp');">
</form>

 
Reply With Quote
 
 
 
 
Tone
Guest
Posts: n/a
 
      09-16-2004
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="JavaScript">
<!--

function popUp(URL) {

var objShell = new ActiveXObject ( "Shell.Application" );
objShell.ShellExecute ( "explorer.exe", '/n,'+URL, "", "open", 1 );
}
// End -->
</script>




(Tone) wrote in message news:<. com>...
> I have a very simple javascript popup that opens to
> a drive folder, e.g.
>
> c:\test
>
> which is called as such:
>
> <A HREF="javascriptopUp('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?"

 
Reply With Quote
 
Tone
Guest
Posts: n/a
 
      09-16-2004
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="JavaScript">
<!--

function popUp(URL) {

var objShell = new ActiveXObject ( "Shell.Application" );
objShell.ShellExecute ( "explorer.exe", '/n,'+URL, "", "open", 1 );
}
// End -->
</script>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Details/Hide Details link button =?Utf-8?B?Sm9l?= ASP .Net 1 03-13-2006 04:51 PM
ASP.NET JavaScript Popup, No Popup Using Back Button dapkniht ASP .Net 1 03-08-2006 08:49 AM
How to make a week view and day view calendar just like month view calendar in .NET ? Parthiv Joshi ASP .Net Web Controls 1 07-06-2004 03:15 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM
Warning "Re: Your details" & "Re: My details" Joe Lee Computer Support 3 05-17-2004 05:08 PM



Advertisments