Greetings,
This forum has proven to be incredibly useful.
I have a scenario in which i utilize the onload aspect of the body tag to call two functions. One of the functions requires me to pass parameters into it.
This function is called on several different pages, and the parameters fine-tune the results. The first function simply loads some XML.
Below is the code. It functions properly in IE, but does not work in FireFox
I recently learned a few days ago that when utilizeing the object.onLoad method to call a function you have to pass parameters into your function like this (for firefox): NOTE: this syntax does not work in IE?!Code:<body onLoad="browserDetect();testPhrase2('America\'s Top 100','','','','','AT100')">
Simply writing the function and parameters works great in IE, but FF requires all these other steps.Code:xmlDoc.onload = function(evt){ testPhrase2("America's Top 100",'','','','','AT100'); }
I'm guessing my current problem, is once again, not knowing the proper syntax required to pass parameters into a function for firefox when dealing with the body onload event.
I humbly await assistance.
Thank you all very much for you service to others,
satelliteCoder





Bookmarks