open new popup windows and focus a certain one

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    #16
    Originally posted by gits
    hi ...

    i changed your last code here:

    [CODE=javascript]getFocus(win_ar ray[win_num!=0?win_ num-1:win_num]);[/CODE]
    and my last code worked in Firefox ... definitly!
    But it does not work for me.

    Originally posted by gits
    which IE? test the following in the address-bar of IE:

    Code:
    javascript:var i = [];alert(typeof i);
    in case you get object - it works ... IE6 did it!

    kind regards
    Yeah!
    Sorry...it works in IE.

    Kind regards,
    Dmjpro.

    Comment

    • gits
      Recognized Expert Moderator Expert
      • May 2007
      • 5388

      #17
      ... test again with my working code and use:

      [CODE=javascript]
      var w_ref = win_array[0];
      [/CODE]
      instead of:

      [CODE=javascript]
      var w_ref = win_array[win_num !=0 ? win_num-1 : win_num];
      [/CODE]
      the first opened popup should be focused. is it?

      kind regards

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #18
        Originally posted by gits
        ... test again with my working code and use:

        [CODE=javascript]
        var w_ref = win_array[0];
        [/CODE]
        instead of:

        [CODE=javascript]
        var w_ref = win_array[win_num !=0 ? win_num-1 : win_num];
        [/CODE]
        the first opened popup should be focused. is it?

        kind regards
        Na!
        It's not working.
        Please help.

        Kind regards,
        Dmjpro.

        Comment

        • gits
          Recognized Expert Moderator Expert
          • May 2007
          • 5388

          #19
          hmmm ... i don't get it ... ;( ... when started from the html-page it will not work ... when i start it from the firebug-console it does ... strange problem indeed ...

          Comment

          Working...