> ] > The reason of this is that IE4.0 IS NOT 100% PURE JAVA, one
> ] > thing that you really want to think about.
> ]
> ] ??? And Netscape is??? Try to fill in the MSX-Fair form on my page in
> ] Internet Explorer and also try it in Netscape... Well it's very simple
> ] Javascript but you may guess on which browser.it doesn't work...
> Javascript is not java and jave is not javascript.
>
> Java is an object oriented programming language from SUN, which needs to
be
> compiled into byte-code.
>
> Javascripts is a scripting language from netscape, which can be
interpreted
> directly by the browser. After netscape released the first version,
microsoft
> made a clone of it in their browser as well. Ofcourse, they introduced a
> number of incompatibilities. I think that you have used one of the
microsoft
> specific incompatibilities in your MSX-Fair form. Please update your form
to
> make it compatible with both netscape and ie!
Well then please tell me what is Internet Explorer-specific in the script
below.
I can't find it. It seems simple objects to me.
Complete HTML file can be found at
http://www.geocities.com/SiliconValley/Lab/2328/msxdag/registration.html
In Netscape it only seems to be able to get
document.registerform.Extra_tickets_marathon.value, which is a 'normal'
value. The others are both lists from which one option can be selected.
<script language="javascript">
<!-- Begin Price calculation
function DoPrice()
stands = document.registerform.Nr_of_stands.value;
if (stands==0) {
document.registerform.Extra_tickets_marathon.value = 0;
document.registerform.Stand_on_marathon.value = "No"};
if (document.registerform.Stand_on_marathon.value=="Yes") {msxm=1}
else {msxm=0};
xtra = document.registerform.Extra_tickets_marathon.value;
tot = Math.round((stands*35 + msxm*25 + xtra*7.5) * 100);
strTotaalprijs = "" + tot
len=strTotaalprijs.length;
first = strTotaalprijs.substring(0, len - 2) + ",";
last = strTotaalprijs.substring(len - 2, len);
if(first == ",") {first = "0,"};
if(last.length == 1) {last += "0"};
document.registerform.Total.value = "Dfl. "+first+last;
}
// End Price calculation-->
</script>
And this is a piece of HTML where this Javascript is implemented.
<TR><TD COLSPAN=2 align=right>Nr. of stands <I>(ca. 2 meter)</I>:</TD>
<TD><SELECT NAME="Nr_of_stands" onChange="DoPrice()">
<OPTION VALUE="0">none
<OPTION VALUE="1">1 stand
<OPTION VALUE="2">2 stands
<OPTION VALUE="3">3 stands
<OPTION VALUE="4">4 stands</SELECT></TD>
<TD> Dfl. 35,- per stand</TD></TR>
And by the way, I had great difficulties to let this table display correctly
in Netscape, because it didn't put them on screen the way I wanted. Also, I
can't display two tables right below eachother without a n empty line being
displayed.
~Grauw
Btw, the form can also be filled in in Netscape, it is only a bit less
'intelligent'.
--
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<
email me: [EMAIL PROTECTED] or ICQ: 10196372
visit the Datax homepage at http://datax.cjb.net/
MSX fair Bussum / MSX Marathon homepage: http://msxfair.cjb.net/
>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<
****
MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put
in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the
quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/)
****