Jump to content

Browser issues


gsmith

Recommended Posts

function e1v16(winner){document.forms[0].east1v16.value=winner}function e8v9(winner){document.forms[0].east8v9.value=winner}<font color="0080FF" onclick="e1v16(this.value)" value="Illinois"><xsl:value-of select="tournament/east/seed1"/></font><font color="FF8040" onclick="e1v16(this.value)" value="Fair Dickinson"><xsl:value-of select="tournament/east/seed16"/></font><font color="0080FF" onclick="e8v9(this.value)" value="Texas"><xsl:value-of select="tournament/east/seed8"/></font><font color="FF8040" onclick="e8v9(this.value)" value="Nevada"><xsl:value-of select="tournament/east/seed9"/></font><input type="text" name="east1v16" size="7%" onclick="e16_1(document.forms[0].east1v16.value)"></input><input type="text" name="east8v9" size="7%" onclick="e16_1(document.forms[0].east8v9.value)"></input>

The above is a snippet of what I have. It works in IE and Safari. But in Firefox, it returns "undefined" during the onclick. Can anyone help?

Link to comment
Share on other sites

This works in FF, IE and Opera ( I can't say about Safari ).There is a title attribute that you can utilize.Recommend that you use a span instead, included it here:

<html>  <head>  <title></title>  <style type="text/css">  .blue {    color: #0080FF; }  .red {    color: #FF8040; }  </style>  <script type="text/javascript">  function e1v16(winner)    {document.forms[0].east1v16.value=winner}  function e8v9(winner)    {document.forms[0].east8v9.value=winner}  </script>  </head>  <body><font color="0080FF" onclick="e1v16(this.title)" title="Illinois">Illinois</font><font color="FF8040" onclick="e1v16(this.title)" title="Fair Dickinson">Fair Dickinson</font><font color="0080FF" onclick="e8v9(this.title)" title="Texas">Texas</font><font color="FF8040" onclick="e8v9(this.title)" title="Nevada">Neveda</font><form name="testForm"><input type="text" name="east1v16" size="7%" onclick="e16_1(document.forms[0].east1v16.value)"></input><input type="text" name="east8v9" size="7%" onclick="e16_1(document.forms[0].east8v9.value)"></input></form><span class="blue" onclick="e1v16(this.title)" title="Illinois">Illinois</span><span class="red" onclick="e1v16(this.title)" title="Fair Dickinson">Fair Dickinson</span><span class="blue" onclick="e8v9(this.title)" title="Texas">Texas</span><span class="red" onclick="e8v9(this.title)" title="Nevada">Neveda</span>  </body></html>

Thanks,

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...