Happy Monday to all.
I am writing some very basic code to create a web page where my users can go, choose an item out of a drop down list, and then a file downloads base don your choice.
After some help I was able to get this working via jquery in the onchange event of the drop down box. I about did cartwheels when I got it to work in Firefox and then Chrome. I went to IE8 and bam!!! It doesn't work. This is pretty much par for the course.
This is my first experience with any type of javascript. I apologize for the seemingly simple question, but let me tell you it's driving me bananas!!
Here is the code
<html>
<head>
<script script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.
js">
$(function() {
$("#PrinterNames").change(function() {
var printer = $(this).val();
var url = "file:///C:/Users/JBenson/Desktop/PrinterScripts
/Completed"+"/"+ printer +".vbs";
console.log(url);
window.open(url,'Start Installation')
});
});
</script>
</head>
<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>
<ol>
<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>
</ol>
<H3>Please contact the helpdesk at 6657 if you encounter any issues. </H3>
</body>
</html>
I am hoping this is something really simple that you need for IE. Any help you can provide would be so very appreciated. I am so tired of this issue I could throw the compy through a window.
Thanks again all!