Hi,
My status light indicator is not working on when i click next page row. But its working in All Items view of a list.
My calculated fields value is
=IF([Status Indicator]="Green";"<DIV><img title='Green' border='0' alt='Green' src='/Documents/Technical/Traffic%20Light%20Images/GREEN_THIRD.png'/></DIV>";IF([Status Indicator]="Red";"<DIV><img title='Red' border='0' alt='Red' src='/Documents/Technical/Traffic%20Light%20Images/CRIMSON_THIRD.png'/></DIV>";IF([Status Indicator]="Yellow";"<DIV><img title='Yellow' border='0' alt='Yellow' src='/Documents/Technical/Traffic%20Light%20Images/YELLOW_THIRD.png' /></DIV>";"-")))
Status Indicator is a choice field which have following values 'Green, Red, Yellow'
I used the script in content editor webpart is
<script type="text/javascript" src="jquery-2.1.4.min.js">
</script>
<script type="text/javascript">
var regexpTD = new RegExp("^\\s*<([a-zA-Z]*)(.|\\s)*/\\1?>\\s*$");
function TextToHTML(NodeSet, HTMLregexp) {
var CellContent = "";
var i=0;
try {
CellContent = NodeSet.innerText || NodeSet.textContent;
if (HTMLregexp.test(CellContent))
{
NodeSet.innerHTML = CellContent;}
}
catch(err){}
i=i+1;
}
$( document ).ready(function() {
var x = document.getElementsByClassName("ms-cellstyle ms-vb2");
var i;
for (i = 0; i < x.length; i++) {
TextToHTML(x[i],regexpTD);
}
});
</script>
It is working in this url
https://pococeaninstaller.signin.no/Lists/ProjectGeneral/AllItems.aspx
not working on this url
https://pococeaninstaller.signin.no/Lists/ProjectGeneral/AllItems.aspx#InplviewHash42637534-37e3-4c14-8bc4-68c4f53cc237=Paged%3DTRUE-p_IQSUniqueID%3D15%252d002159-p_ID%3D1373-PageFirstRow%3D31
In all items view of list settings contain a limit count as 30. When i click next page , its is redirected to above url.
Pls help me to resolve this. Thanks in advance
Thanks and regards
Liju P Nandanan









