HTML, CSS, JavaScript, Flash
Problem with Vista
10/04/2008
08:32:16 AM
2HA0IASGH Show this entire thread in new window
From:
Reg Brehaut
To:
All
Attachments:
None
When I generate a report from my web app, I open a pop-up or new window (depending on what the user's settings are) to show the results. Something like this:

<script type="text/javascript"> <!-- var win = window.open('wc.dll?PSProcess~StdForm~&amp;Form=ReportProgress&amp;sk=2HA0GRF4Y18212&amp;sh=119&RequestId=2HA0JNE9217080','_blank', config='top=10,height=700,width=800,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no'); win.focus() //-->> </script>

And this works (I have not personally tested it on every browser but I have had no complaints from any of my clients).

I use the same approach for creating a spreadsheet extract (as a csv file expecting that the user's machine will be set up to open it with Excel).

<script type="text/javascript"> <!-- var win = window.open('reports/Salaries.csv','_blank'); win.focus() //-->> </script>

While this works in Windows XP it does not work in Vista. I can see the pop-up appear but then it immediately disappears again.

If I open a new browser tab and copy this into the url address bar in my Vista browser (prefaced by the website, of course) Vista opens the file correctly.

Anyone have any idea as to what I am doing wrong, either in this construction or in my Vista settings?

I have looked at the security settings and can find nothing that makes any difference there, but may have overlooked something.

Thanks

Reg