Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Highlighted
Contributor
Posts: 37
Registered: ‎03-10-2011
My Device: Not Specified

PB: anyone has swipe to bring up delete button functionality?

  I've been having issues with this (using jQueryMobile on PlayBook).  The button comes up, but clicking on it doesn't execute the onclick function.  Isn't it something like:

 

 

...
$(".listitemsupportsdelete").bind("swipeleft swiperight", function() {
	$('.DeleteButton').remove();
	// swiped item
	var $li = $(this);
	// the button
	var $DeleteButton = $('<a>Delete</a>').attr({
		'class': 'mycssclass', 'onclick' : '"deleteItem("' + $li.attr('rowid') + '")"'});

	$li.prepend($DeleteButton);
});
...
$("#contents *").page();
...

 

 

 

I've tried using live('pageshow',function.....) but it hasn't worked either