473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Need help with Mac/IE problem

Can anyone tell me how to make the following code work in IE on the Mac,
specifically OS X?

================================================== =========
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
<title>Untitled</title>
</head>

<body onload="fillLists()">

<form name="logic_form" action="">

<div><span id='Bold'>SIZE</span></div>
<div>
<select name='Size40668'
onChange="addOptionsColor40668(this.selectedIndex) ">
<option value=16 Selected>16in</option>
<option value=18 >18in</option>
</select> center-to-top
</div>
<div><span id='Bold'>Color</span></div>
<div><select name='Color40668'><option value=""></option></select></div>

<div><span id='Bold'>SIZE</span></div>
<div>
<select name='Size27961'
onChange="addOptionsColor27961(this.selectedIndex) ">
<option value=16 Selected>16in</option>
<option value=18 >18in</option>
</select> center-to-top
</div>
<div><span id='Bold'>Color</span></div>
<div><select name='Color27961'><option value=""></option></select></div>

<script language="JavaScript">
<!--
var NS4 = (navigator.appName == "Netscape" &&
parseInt(navigator.appVersion) < 5);
var NSX = (navigator.appName == "Netscape");
var IE4 = (document.all) ? true : false;
var Color40668 = new Array();
Color40668[0] = new Array("Black Anodized", "Blue Anodized", "Red
Anodized");
Color40668[1] = new Array("Black Anodized", "Blue Anodized", "Red
Anodized");
function addOptionsColor40668(regionID)
{
if (NSX) {
addOptionsNSColor40668(regionID);
} else if (IE4) {
deleteOptionsColor40668();
addOptionsIEColor40668(regionID);
}
}
function addOptionsNSColor40668(regionID)
{
var count = 1;
document.logic_form.Color40668.length = 1;
for (var x=0; x < Color40668[regionID].length; x++) {
document.logic_form.Color40668.options[count] = new
Option(Color40668[regionID][x], Color40668[regionID][x]);
count++;
}
}
function addOptionsIEColor40668(regionID)
{
var newOpt;
for ( var x = 0; x < Color40668[regionID].length; x++ ) {
newOpt = document.createElement("option");
newOpt.value = Color40668[regionID][x];
newOpt.text = Color40668[regionID][x];
document.logic_form.Color40668.add(newOpt);
}
}
function deleteOptionsColor40668()
{
var selLength = document.logic_form.Color40668.options.length;
for ( var i = selLength; i >= 0; i--) {
document.logic_form.Color40668.remove(i);
}
}
var Color27961 = new Array();
Color27961[0] = new Array("Black Anodized", "Blue Anodized", "Red
Anodized");
Color27961[1] = new Array("Black Anodized", "Blue Anodized", "Red
Anodized");
function addOptionsColor27961(regionID)
{
if (NSX) {
addOptionsNSColor27961(regionID);
} else if (IE4) {
deleteOptionsColor27961();
addOptionsIEColor27961(regionID);
}
}
function addOptionsNSColor27961(regionID)
{
var count = 1;
document.logic_form.Color27961.length = 1;
for (var x=0; x < Color27961[regionID].length; x++) {
document.logic_form.Color27961.options[count] = new
Option(Color27961[regionID][x], Color27961[regionID][x]);
count++;
}
}
function addOptionsIEColor27961(regionID)
{
var newOpt;
for ( var x = 0; x < Color27961[regionID].length; x++ ) {
newOpt = document.createElement("option");
newOpt.value = Color27961[regionID][x];
newOpt.text = Color27961[regionID][x];
document.logic_form.Color27961.add(newOpt);
}
}
function deleteOptionsColor27961()
{
var selLength = document.logic_form.Color27961.options.length;
for ( var i = selLength; i >= 0; i--) {
document.logic_form.Color27961.remove(i);
}
}

function fillLists() {
var regionID = 0;
addOptionsColor40668(regionID);
addOptionsColor27961(regionID);
}
//-->
</script>

</form>

</body>
</html>
================================================== =========

Regards,

Aaron Prohaska

-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-
Wrench Science Inc.
http://www.wrenchScience.com/
Phone: 510.841.4748 x206
Fax: 510.841.4708
-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-/-
Jul 20 '05 #1
1 1018
On Fri, 16 Jan 2004 15:23:39 -0800, Aaron Prohaska
<NO*************@verdesoft.com> wrote:
Can anyone tell me how to make the following code work in IE on the Mac,
specifically OS X?


First, it would be nice to know what was wrong with it, and don't just
say: "It doesn't work." Be specific. What is supposed to happen? When is
it supposed to do it (what action must to user take to cause the problem)?
What happens that wasn't supposed to?

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: kazack | last post by:
I posted a similiar question in this newsgroup already and got an answer which I already knew but didn't get the answer I was looking for so I am reposting the code and question differently in the...
9
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with...
19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
2
by: bryan | last post by:
I have a situation that's pretty delicate that I need some help on. I've been stumped for awhile I just need some advice on the best possible solution. The problem: I have a site I'm making...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
8
by: skumar434 | last post by:
i need to store the data from a data base in to structure .............the problem is like this ....suppose there is a data base which stores the sequence no and item type etc ...but i need only...
20
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site...
13
by: PinkBishop | last post by:
I am using VS 2005 with a formview control trying to insert a record to my access db. The data is submitted to the main table no problem, but I need to carry the catID to the bridge table...
25
by: Jon Slaughter | last post by:
I have some code that loads up some php/html files and does a few things to them and ultimately returns an html file with some php code in it. I then pass that file onto the user by using echo. Of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.