On 6/6/06, Damien McKenna <[EMAIL PROTECTED]> wrote:
> I've written this custom JS function to update some totals on a page
> when a selector is changed, anyone have any ideas why it would work
> in Firefox and Safari but not IE6?
>
> aCase = 180;
> cases = document.getElementById('count_cases').value;
> total_cases = (cases * aCase);
> document.getElementById('total_cases').innerHTML = total_cases;
>
> IE gives an error saying:
>         Object doesn't support this property or method
> and points to the cases= line.
>
> Any thoughts folks?  Thanks.
>

IE is getting confused because you are using a variable "total_cases"
with the same name as one of your elements on the page...just change
the name of that variable, and you should be ok...

aCase = 180;
cases = document.getElementById('count_cases').value;
tc = (cases * aCase);
document.getElementById('total_cases').innerHTML = tc;



-- 
Jim Wright
Wright Business Solutions
[EMAIL PROTECTED]
919-417-2257

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242687
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to