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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar