1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    20
    Vote Rating
    0
    FMIC_DEV is on a distinguished road

      0  

    Post template woes

    template woes


    Hi all -

    I have modified the data-view example and added a onclick event for each image however when the code runs i get a function not defined error. The function is initialized on load. FF shows the onclick event in the image tag but when clicked i get the error.

    here is the template code;

    Code:
        var tpl = new Ext.XTemplate(
    		'<tpl for=".">',
                '<div class="thumb-wrap" id="{name}">',
    		    '<div class="thumb"><img src="{url}" onclick ="thumbclicked()"title="{url}"></div>',
    		    '<span class="x-editable">{ci}</span></div>',
            '</tpl>',
            '<div class="x-clear"></div>'
    Like the H & R tax commerical: "I'm Stuck!".... unlike the H & R tax commerical: "I got people"

    So people... can you help me out

  2. #2
    Ext User
    Join Date
    Jan 2008
    Posts
    20
    Vote Rating
    0
    FMIC_DEV is on a distinguished road

      0  

    Talking Solved template woes

    Solved template woes


    Hi all - just figured out the problem and the solution.

    The problem has nothing to do the the template, but the dataview. I ended up adding a listener to the dataview that picked up the click event and selected the img tag element with the selected id. whats important here is the selection of the parent element of the dataview and only iterate through the images in its heirarchy. if you try to just grab elements by tag name for the document then your id numbers will not correspond to the correct tag heirarchy

    Hope this helps

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