This error comes up on Internet explorer but not firefox.
------------------------------------------------------------
javascript script error description: object required -
Source www.example.com.au/tst.php - line 119
This then breaks the calc script
Any ideas???
<script type="text/javascript"><!--// Change background colors when focus set window.onload = init; function init() { for(var i=0;i<document.RegistrationForm.length;i++) { document.RegistrationForm[i].onfocus = document.RegistrationForm[i].onblur = changeBg; }} function changeBg(evt) { var szEvent = "object" == typeof(event) ? event.type : evt.type; this.style.background = szEvent == "focus" ? "#C9EDFC" : "transparent"; // color light brown- #DACFB8, rose-#ffc0cb}// Calculate Totals function calcTotal(){ fieldsArray = ['price1',]; Total = 0; for(i=0; i<fieldsArray.length; i++){ Total += parseInt(document.getElementById(fieldsArray[i]).value); alert("Don't forget -each paid attendee can bring another person for FREE."); } document.getElementById("Total").value = Total; document.RegistrationForm.Amount.value = document.RegistrationForm.Total.value; }
so you have a problem in your html, check the case in each attributes of your fields (id, name)
0
ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.
One of a set of tools we're offering as a way to say thank you for being a part of the community.
Tried all 3 solutions and yes it works fine in Firefox but in internet explorer it keeps giving me an error.
javascript script error description: object required Line 119 or Line 120
function mover(obj) {
if (typeof(obj) != "object") { document.location.href = obj.replace("redirp.htm","
else { obj.href = obj.href.replace("redirp.h
}
</script>
I find a code in the HTML page, i think that you forgot to mention here. Here the condition is failing
if (typeof(obj) != "object") { document.location.href = obj.replace("redirp.htm","
And in that condition u have defined obj.replace, which is incorrect,
Hope this helps