Page 1 of 1

safari has issues

Posted: Tue May 22, 2007 5:06 pm
by sarris
After struggling for some days to make my code work for both IE and mozilla i checked if things work with safari and i came across two issues
A) The inline frame that i have in the page doesnt show at all.
B) i have this javascript code

Code: Select all

function addOption(selectbox,text,value)
{
alert(selectbox);
		var optn = document.createElement("OPTION");
		optn.text = text;
		optn.value = value;
		selectbox.options.add(optn);
}
The code runs up to the last line and then stops.
I have this alert(selectbox) there just to see if there is a problem with the way selectbox is passed but its all ok. The alert shows "OPTION SELECT"

Does anyone have any ideas on those issues?
Thanks in advance