Aug 10, 2012, 12:19 PM
Adding a Notification indicator to tabstrip
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 that should be attached like:
trouble is that the positioning code is not dynamic so when i click another tab it could look like this:
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
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 that should be attached like:
trouble is that the positioning code is not dynamic so when i click another tab it could look like this:
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?