1. #1
    Ext User
    Join Date
    Jun 2007
    Posts
    1
    Vote Rating
    0
    Brian_himself is on a distinguished road

      0  

    Default Newbie question: select all elements in one div

    Newbie question: select all elements in one div


    Hi all,

    I'm new to Javascript and just tryin out those awesome extjs-features.
    For my purpose, i want to select all the <td> elements from a div.
    That is, i have a photo gallery and i want each large photo (which are shown as thumbnails in a table on the site) to be shown in a Messagebox or a dialogbox, (think both will work). While that large image is shown in the box, the photgallery shall fade out, i.e. ill lower the transpareny of the td-elements in that table. That photogallery resides in a div.
    So i need to call all the td elements in that certain div, but only these. Think that questions quite trivial, but i couldnt find help anywhere so far.

  2. #2
    Ext User para's Avatar
    Join Date
    Apr 2007
    Location
    Redmond, WA
    Posts
    918
    Vote Rating
    -2
    para has a little shameless behaviour in the past

      0  

    Default


    I believe that if you lower the transparency of the parent DIV, it will affect everything contained within it. Try it out.

  3. #3
    Ext User
    Join Date
    Apr 2007
    Location
    Houston, TX
    Posts
    15
    Vote Rating
    0
    neror is on a distinguished road

      0  

    Default


    Another option is to use an element mask over the div (as long as you don't need to be able to click on anything in that div while it's masked). It's as easy as Ext.get('div-id').mask() and then Ext.get('div-id').unmask() to unmask it.

  4. #4
    Sencha User
    Join Date
    Mar 2007
    Location
    Bah
    Posts
    434
    Vote Rating
    0
    efege is on a distinguished road

      0  

    Default


    Quote Originally Posted by Brian_himself View Post
    For my purpose, i want to select all the <td> elements from a div.
    Regardless of what you intend to do, one answer to your question would be:

    Code:
    Ext.select('#yourDivId td')
    Fernando G

  5. #5
    Ext User para's Avatar
    Join Date
    Apr 2007
    Location
    Redmond, WA
    Posts
    918
    Vote Rating
    -2
    para has a little shameless behaviour in the past

      0  

    Default


    No.

    That's not a question. That's asking someone to do the code for you.

    Look at the Image Organizer example.

  6. #6
    Ext Premium Member BernardChhun's Avatar
    Join Date
    Mar 2007
    Location
    Quebec, Canada
    Posts
    831
    Vote Rating
    2
    BernardChhun will become famous soon enough

      0  

    Default


    This isn't a forum meant for building apps for other people I believe. Most of us are here to build web apps & get help doing it.

    you should probably hire someone to do it for you.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi