safari has issues

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
sarris
Forum Contributor
Posts: 137
Joined: Mon Dec 04, 2006 2:44 pm

safari has issues

Post 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
Post Reply