473,394 Members | 1,902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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="javascript: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?"
Jul 23 '05 #1
4 1617
On 15 Sep 2004 05:37:18 -0700, Tone wrote:
<A HREF="javascript: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?"


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
Jul 23 '05 #2
Tone wrote:

<A HREF="javascript:popUp('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>

Jul 23 '05 #3
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>


to*******@yahoo.com (Tone) wrote in message news:<6a**************************@posting.google. 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="javascript: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?"

Jul 23 '05 #4
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>
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: TeknoCat | last post by:
Hey everyone, I may be repeating myself here, but if someone sent a reply then I missed it, and I can't get Outlook Express to download any messages more than 2 days old. Anyway, I'm having a...
5
by: Paul Krasucki | last post by:
This is for a search page that takes parameters on one page, processes the query, and displays them on another page. I've got a javascript popup window on a button click event. When the user...
6
by: tshad | last post by:
I am trying to set up a Javascript popup box that has a way of sending back a message to asp.net on how to process some data. At the moment I am just doing: ...
9
by: tshad | last post by:
This is from my previous post, but a different issue. I have the following Javascript routine that opens a popup page, but doesn't seem to work if called from an asp.net button. It seems to work...
4
by: Matt Jensen | last post by:
Howdy all Hopefully I can explain my problem straightforwardly. In it's simplest explanation, what I want to do is have a hyperlink that, when clicked, executes some client side JavaScript and...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
0
by: Barney | last post by:
1) I have an aspx page for customer details, opened using showModalDialog (i know, i know, but I inherited it and it's too integrated to change at this point). 2) This aspx page has some...
0
by: gnewsgroup | last post by:
I am not sure if anyone of you have had such experience. I am trying to use a popup calendar control in my web application. I've tried all kinds of 3rd-party date pickers. For example, the RJS...
1
by: dzaf | last post by:
Hello, My question is simple and I have not seen an answer so far having surfed the web endlessly. I run a Kids Flash Games Website: http://www.doron-zur.com Some of the games require Full...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.