JQuery Code not Working on IE8

Hello again all!

After some much needed help from an expert, I finally got some Javascript (JQuery) I was working on going in Firefox and Chrome. I go to test in the world's "best" browser, IE8 and it doesn't work at all. Here is the code.
<script script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
$(function() {
     $("#PrinterNames").change(function() {
         var printer = $(this).val();
        var url = "file:///C:/Users/JBenson/Desktop/Printer Scripts/Completed" + "/" + printer +".vbs";
        window.open(url,'Start Installation');


<body lang=EN-US style='tab-interval:.5in'>

<img src=inspirelogo.gif>

<h2>Welcome to the HK Printer Installation Page!</h2>
      <h3>Please select a printer:
            <select id ="PrinterNames"  name ="PrinterNames" >
		  <option value="Please Select a Printer" selected="selected">Please Select a Printer</option>
		  <option value="Acadia">Acadia</option>
                  <option value="Altima">Altima</option>
                  <option value="Armada">Armada</option>
                  <option value="Avalon">Avalon</option>
                  <option value="Blazer">Blazer</option>
                  <option value="Camaro">Camaro</option>
                  <option value="Caravan">Caravan</option>
                  <option value="Cavalier">Cavalier</option>
                  <option value="Celica">Celica</option>
                  <option value="Charger">Charger</option>
                  <option value="Chevelle">Chevelle</option>
                  <option value="Corolla">Corolla</option>
                  <option value="Corvair">Corvair</option>
                  <option value="Corvette">Corvette</option>
                  <option value="Daytona">Daytona</option>
                  <option value="Envoy">Envoy</option>
                  <option value="Escalade">Escalade</option>
                  <option value="Frontier">Frontier</option>
                  <option value="HHR">HHR</option>
                  <option value="Hummer">Hummer</option>      
                  <option value="Impala">Impala</option>
                  <option value="Insight">Insight</option>
                  <option value="Intrepid">Intrepid</option>
                  <option value="Journey">Journey</option>
                  <option value="Malibu">Malibu</option>
                  <option value="Maxima">Maxima</option>
                  <option value="Murano">Murano</option>
                  <option value="Neon">Neon</option>
                  <option value="Nomad">Nomad</option>
                  <option value="Nova">Nova</option>
                  <option value="Prowler">Prowler</option>
                  <option value="Sentra">Sentra</option>
                  <option value="Skyline">Skyline</option>
                  <option value="SSR">SSR</option>
                  <option value="Stratus">Stratus</option>
                  <option value="Versa">Versa</option>
                  <option value="Xterra">Xterra</option>
            </select> </h3>

<h3>Steps for Printer Installation </h3>
      <li>Select your printer from the drop down above.</li>
      <li>You will get a pop up window that looks like this<br>
      <img src="printerinstall.jpg" alt="Download Box" ><br>
      Please click on open. It will iniate the installation.<br></li>
      <li>You may see a pop up box that looks like this during your installation<br>
      <img src="trustprinter.jpg" alt="Trust Printer"><br>
      Click on Install driver. <br></li>
      <li>After a few minutes, check your Devices and Printers and the printer you selected should now be there.</li>
<h3>Please contact the helpdesk at 6657 if you encounter any issues. </h3>


Open in new window

I ran it through a fiddle someone created for me, and jslint on that doesn't find a single error. It runs great on Firefox and Chrome. Downloads a file I need the second I click on it.

I hate to be such a bother, but anyone have any ideas? Any reason IE would be so extremely picky?

I have also included a script file so if you wanted to test it in IE, you could.

Thanks Jami
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Michel PlungjanIT ExpertCommented:
Is this for an intranet?
Where does the HTML live? On a web server or hard disk? Is the vbscript supposed to live on the hard disk?
I am frankly amazed it runs on any browser since it is highly suspect to execute a local script file.
Try the following:
1) put the web server the page runs on in trusted zone if that does not help,
2) save the html to hard disk and give it extension .hta for HTML application
Michel PlungjanIT ExpertCommented:
Very simple solution

Remove the space in the window name parameter

JamiBenson092279Author Commented:
It is being tested on my local hard drive at the moment, but will actually run on a server once it is actually working like it's supposed to.  It all is just sitting on my desktop at the moment.  It is for our intranet yes.

I must have copied and pasted wrong since there is no space in the window name parameter.
 I tried changing it to hta as you had suggested. I get the same issue, It won't start the download. As a note, it was giving me an issue with the line(line 9 character 9) about opening a Window. I took it out and received the same issue as before.

Can you make any other suggestions?

Thanks for your time.
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Michel PlungjanIT ExpertCommented:
Yes there is

window.open(url,'Start Installation');

Remove the space from after the word start
JamiBenson092279Author Commented:

I now see that and apologize for not seeing that. I added the underscore. I am truly sorry apologize for that oversight and am sorry to have not seen that issue sooner. I will not make glaring mistakes like that again and then expect someone to correct them.

Even after making the changes you suggested it isn't working like it does in Firefox and Chrome. It pops up a window, like the jquery is telling it to, but it doesn't bring up the download box. I know IE, especially IE8, is very picky about syntax. Is there some reason that it would achieve the expected result in other browsers and not IE? Do I need to try different code instead to achieve the result I desire platform wide?

Thanks again and so sorry for my stupid, erroneous mistake.
Michel PlungjanIT ExpertCommented:
No worries that can happen
I get the vb files in the browser as plain text in Firefox. No attempt of execution.
In ie8 I get a download or open dialog

This is on xp service pack 3

Seems that is the direct opposite of what you get
JamiBenson092279Author Commented:
That is odd!! I am using Windows 7 32 bit.

So very weird.....  

Is there a better way to do what I am trying to that may be more tolerant across all platforms? I originally was going to use an on click event to trigger the download, but I didn't know how to pass the value of the drop down box to the event. Do you think that I might be better off going this way?

Thanks again! Sometimes web programming and I just don't get along!

Michel PlungjanIT ExpertCommented:
I just wrote this for another problem

Is that worth a try?


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JamiBenson092279Author Commented:
I really have to apologize about not getting back to you all about this. I could never get it to work so I tried something else similar and it works..... somewhat. We have been so busy the last couple weeks, I just haven't gotten the time to do anything.

I appreciate all the help you gave me though!

JamiBenson092279Author Commented:
I never actually got this working, but you get the points for trying to help the noob! Thanks again!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.