Simple-ish question

Discussion in 'Learning Javascript' started by ougitou1, Dec 19, 2015.

  1. ougitou1

    ougitou1 Invisible Black Veteran

    Messages:
    103
    Likes Received:
    9
    First Language:
    en-
    Primarily Uses:
    N/A
    Hello all i have a question that despite the topic may of may not be as simple as i original thought. anyway the question is as follows

    how do i get the index of a window's elements?

     the reason i need this is because id like to use the index as flags for triggering windows to hide or show.

    i really need help with this. 
     
    #1
  2. Jeremy Cannady

    Jeremy Cannady Coldfire Veteran

    Messages:
    449
    Likes Received:
    260
    Location:
    Texas
    First Language:
    English
    Depends on where you want the index data. 

    If you want the index inside of the window code then call this.index();

    If you want the window index during a scene code then call this.wateverWindow._index;
     
    #2
    estriole likes this.
  3. ougitou1

    ougitou1 Invisible Black Veteran

    Messages:
    103
    Likes Received:
    9
    First Language:
    en-
    Primarily Uses:
    N/A
    thanks coldfire i'll try it now.
     
    #3
  4. ougitou1

    ougitou1 Invisible Black Veteran

    Messages:
    103
    Likes Received:
    9
    First Language:
    en-
    Primarily Uses:
    N/A
    it works thnks a bunch. 
     
    #4

Share This Page