Variable Javascript

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

    Variable Javascript

    Posted: Fri Jan 23, 2004 3:59 pm Post subject: Variable Javascript

    --------------------------------------------------------------------------------

    Hi all,

    i have a problem with javascript variable.
    I have a script that sets a global variable and open a dialog, then
    when i
    push a button of this dialog and i read the variable, this variable
    isn't set to last value but is not defined.

    How can i do for have equal reference for this variable.?

    Thanks

    Stefano

    I use Mozilla 1.4
  • Rene Nyffenegger

    #2
    Re: Variable Javascript

    [color=blue]
    > Posted: Fri Jan 23, 2004 3:59 pm Post subject: Variable Javascript
    >
    > --------------------------------------------------------------------------------
    >
    > Hi all,
    >
    > i have a problem with javascript variable.
    > I have a script that sets a global variable and open a dialog, then
    > when i
    > push a button of this dialog and i read the variable, this variable
    > isn't set to last value but is not defined.
    >
    > How can i do for have equal reference for this variable.?
    >
    > Thanks
    >
    > Stefano
    >
    > I use Mozilla 1.4[/color]

    Stefano

    It would definitely help if you posted your code.

    Probably, in the dialog, you need to read something like
    opener.window.y our_global_vari able

    hth
    Rene


    --
    Rene Nyffenegger

    Comment

    Working...