troubleshooting Question

Select Javascript not working for Safari

Avatar of kiranswaminathan
kiranswaminathan asked on
JavaScriptWeb BrowsersWeb Applications
2 Comments1 Solution1497 ViewsLast Modified:
Hi ,

We have issues with some javascript  where, Safari browser can't interpret the javascript select command (list box to select the country). I know that Safar can be picky when running javascript. But to the best of my knowledge, this follows W3C standards.  Any help would be much appreciated

regards
K
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
<head>
 
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
<title>xx- Europe</title>
 
<style type="text/css">@import url(css/styles-xxx.css);</style>
 
<link rel="stylesheet" href="css/simple-xxxxx.css" />
 
<style type="text/css">
 
tr.odd {
 
background-color: #F7F7F7;}
 
table.contentTable{
 
margin-bottom: 25px;}
 
table.contentTable td, table.contentTable th {
 
border-bottom: 1px solid #ccc;
 
padding: 5px 10px 5px 1px;}
 
table.contentTable td.sep, table.contentTable th.sep {
 
border-left: 1px solid #ccc;
 
padding-left: 10px;}
 
table.contentTable td.space, table.contentTable th.space {
 
padding-right: 25px;}
 
table.contentTable, table.threeColTable {
 
margin-bottom: 25px;}
 
table.contentTable td, table.contentTable th {
 
border-bottom: 1px solid #ccc;
 
padding: 5px 10px 5px 0;}
 
table.contentTable td.sep, table.contentTable th.sep {
 
border-left: 1px solid #ccc;
 
padding-left: 10px;}
 
table.contentTable td.space, table.contentTable th.space {
 
padding-right: 25px;}
 
</style>
 
<script type="text/javascript">
 
function Link() {
 
</script>
 
</head>
 
<body>
 
<div id="document" style="width: 742px; height: 1007px">
 
<div id="head">
 
<table cellspacing="0" cellpadding="0" border="0" width="100%">
 
<tr valign="top"><td><img border="0" src="images/logo_xxxbank.jpg"></td></tr>
 
<tr align="center"><td align="center"><b><font size="5">Virtual Office Portal</font></b></td></tr>
 
<tr align="center"><td><img src="images/08_map.gif" alt="Map of Europe" /></td></tr>
 
<tr align="center"><td><br>
 
<SELECT NAME="liste1" SIZE=1>
 
<OPTION SELECTED VALUE="">--- Select your Environment ---</OPTION>
 
<OPTION VALUE="/Lond/xxxDenmark/">Denmark</OPTION>
 
<OPTION VALUE="/Lond/xxxFrance/">France</OPTION>
 
<OPTION VALUE="/Lond/xxxSweden/">Sweden</OPTION>
 
<OPTION VALUE="/Lond/xxxSwitzerland/">Switzerland</OPTION>
 
<OPTION VALUE="/Lond/xxxUK/">UK</OPTION>
 
</SELECT>&nbsp;&nbsp;&nbsp;<input type="image" src="images/go.gif" class="inline" onClick="if (liste1.selectedIndex!=0) location=liste1.options[liste1.selectedIndex].value; else alert('Veuillez faire un choix au menu.')">
 
<br><br></td></tr>
 
</table>
 
<div id="foot"><p id="copy">Copyright xxxxxxxxxxx</p></div>
 
</body>
 
</html >
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros