PDA

View Full Version : strange problem with href



wakatanka
23 Jul 2010, 11:37 PM
I, i've a layout with a panel populated by many jewels thumbnails jpg (populated by ajax calls).
When i click on a thumb, it will show a panel with some info, in this panel there is a toolbar with the exit (close) button.
If i click the button, i hide the info panel, but the link of the thumbs under the panel responds to the click too, and it
will open again another info panel : (
how can avoid this?

this is the code that open the panel (in every thumbnail):


var openpanel = function(pic) {
Ext.getCmp('bigpanel2').show();
bigpriceimg(pic);
Ext.getCmp('listabigprezzo').scroller.scrollTo({
x: 0,
y: 0
},
true);
}

and this is the handler of the exit button:


var exitpanel = function() {
Ext.getCmp('bigpanel2').hide();
}

meyerovb
24 Jul 2010, 12:14 PM
Ticket 143 in the bugs forum

meyerovb
24 Jul 2010, 12:17 PM
Try using standard sencha elements instead of hyperlinks for now... and never use standard text boxes as sencha can not interact with them, stick to the sencha form components. If you really need a clickable element and can't use out of the box stuff, attach a tap event instead of a click event.