----- Original Message -----
From: "Paulo Fernandes" <paulofernandes@c...>
To: "javascript" <javascript@p...>
Sent: Saturday, August 10, 2002 10:17 AM
Subject: [javascript] Re: Simple yet undoable !!!
Hi, Joe !
Thanks for taking the time...
I tried replacing the line:
var optionName = new Option(text, value, defaultSelected, selected)
with what you suggested:
var optionName = otop.frames["Frame2"].document.createElement("option");
and it didn't work... :-(
As I told you, I have litlle (not to say almost none) knowledge of
javascripting, but I understood what you told me: I need to make a
reference to the frame where I want the item to be displayed.
Not wanting to push it, do you think you could send me an example on how
to implement this?
I'd be really appreciated, as I am trying to implement it on a project
of mine and don't want to make a round trip to the server each time the
user chooses to add or remove an item from on of the boxes (this is how
I have done it in ASP)...
Thanks in advance...
PauloF
I attach three files, save them to the same directory and open
newOption.htm. You can use the new Option line or the one before by moving
the comment marks.
Joe