On Tuesday, September 16, 2003, at 01:44 AM, Petr Stehlik wrote:
V Út, 16. 09. 2003 v 10:20, Matthew Hixson píše:
I still can't seem to get away from using getFirstChild() to get ahold
of the text inside the <option> tag, like so:
<option id="teacherName">Mrs. Wormwood</option>
How do you access the "Mrs. Wormwood" part?
Use the span tag.
<option id="teacherOption"><span id="teacherName">Mrs.
Wormwood</span></option>
Then it will be as easy as page.setTextTeacherName("new name");
I tried that, but xmlc parses it out of my page saying that <span> was
an unexpected tag. At any rate, it works by doing
page.setTextTeacherOption("name");
-M@
|