Gidday Gang, I'm currently trying to make a simple price calculator for a web page. It works like this: - A visitor enters a quantity of each product they desire in a text input box - A read-only input box then displays the subtotal for that item(trigged by ONCHANGE of the quantity text box) - A read-only input box displays the total for all items (triggered by the ONCHANGE of the quantity text box) The calculator works fine in Internet Explorer, but the subtotal/total boxes don't display anything at all in Firefox. Page can be seen at http://www.johnbayne.com/hc15/orderformbeta3.html If anyone has any suggestions at all for this problem, I'd be most appreciative. Cheers gang, - JB
I don't know if you've changed it since you posted this, but it seems to be working fine in FF 1.5.0.7
Hi! Don't use the on* attributes. Scripting and page structure should be kept separate. Instead, you can use event listeners, which can be attached purely through JS. You may want to download and use my two wrapper functions for this which iron out a slight browser incompatibility. Search for addEventListener for information on how it works. Regards - P
Hey Mate, did you turn on "enable Javascript" and "enable Java" in the browser you were testing with? Sometime its simpler than it seems to be. Cheers FFH