PDA

View Full Version : Adding a Notification indicator to tabstrip



LennartOlsen
Aug 10, 2012, 1:19 PM
Hello EXT.net

Ive been trying for 2 days now to make a propper facebook-like notification indicator on a tabstrip item ive got.

I have a small 1 4612 that should be attached like:

4613

trouble is that the positioning code is not dynamic so when i click another tab it could look like this:

4614

Ive tried to use jQuery but i cant work out using DOM on the tabstripitems, so i cant make jQuery dynamicly replace the small notification indicator. heres the java




$(document).ready(function () {
var find = $("#NewsPanel");
var offset = find.offset();
var top = offset.top - 5;
var left = offset.left + 70;
$("#img_NewsnoteOnAll").offset({ top: top, left: left });
$("#debug").text = top.toString + left.toString();
});


Any suggestions?