Search This Blog

Wednesday, November 18, 2015

Asynchonous Exucute jquery script (visual web part ) and Page script

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
setTimeout(function(){
var RootPath = $("#lblProjectPath").text().replace('VDRRootpath',' NGO Document ');
$("#lblProjectPath").html(RootPath );
$('a').click(function (e) {
var RootPath = $("#lblProjectPath").text().replace('VDRRootpath','NGO Document');
if(RootPath .indexOf("http:>>0179nitiv002tvs:8120>") >= 0)
                {
                $("#lblProjectPath").html(RootPath.replace('http:>>0179nitiv002tvs:8120>','>'));  
                 }
else
                {
                  $("#lblProjectPath").html(RootPath);  
     }

});
},
50);
});
</script>

No comments:

Post a Comment