DHTML + Mac question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lazy70

    DHTML + Mac question

    Hi,
    I have an html page P that contains a iframe I.
    In the same page i have two combobox, C1 and C2.
    I would to load data in combo C2 after a choice by user over C1.
    So I have created a jsp that get data from a DB and then build a page with
    javascript code to update C2.

    Foreach data I create an option with parent.document .createElement( 'option')
    and then with an appenChild I update C2.

    It worksfine on IE, Netscape (7) and Mozilla FireFox on PC, but doesn't work
    in IE and Mac.
    Why?
    Can anybody know an alternative way to do the same thing without the reload
    of P?

    Thanks a lot
    Ktrl+S


  • Mick White

    #2
    Re: DHTML + Mac question

    Lazy70 wrote:
    [color=blue]
    > Hi,[/color]
    <snip>[color=blue]
    >
    > Foreach data I create an option with parent.document .createElement( 'option')
    > and then with an appenChild I update C2.[/color]

    You may use, assuming form named "f", and a menu/list named "s":

    document.f.s.op tions[document.f.s.op tions.length] =
    new Option("Option text here","Option value here(optional)" )

    Mick
    [color=blue]
    >
    > It worksfine on IE, Netscape (7) and Mozilla FireFox on PC, but doesn't work
    > in IE and Mac.
    > Why?
    > Can anybody know an alternative way to do the same thing without the reload
    > of P?
    >
    > Thanks a lot
    > Ktrl+S
    >
    >[/color]

    Comment

    • Lazy70

      #3
      Re: DHTML + Mac question

      "Mick White" <mwhite13@BOGUS rochester.rr.co m> wrote in message
      news:MhUDc.1468 70$j24.49518@tw ister.nyroc.rr. com...[color=blue]
      > Lazy70 wrote:
      >[color=green]
      > > Hi,[/color]
      > <snip>[color=green]
      > >
      > > Foreach data I create an option with[/color][/color]
      parent.document .createElement( 'option')[color=blue][color=green]
      > > and then with an appenChild I update C2.[/color]
      >
      > You may use, assuming form named "f", and a menu/list named "s":
      >
      > document.f.s.op tions[document.f.s.op tions.length] =
      > new Option("Option text here","Option value here(optional)" )
      >
      > Mick
      >[/color]

      Thanks, now I try
      I hope works ;)

      Bye
      Ktrl+S


      Comment

      Working...