Click here to Skip to main content
15,894,460 members

Comments by Singh Deepika (Top 3 by date)

Singh Deepika 16-Feb-17 1:18am View    
//In the script tag of your view

@if (TempData["Notification"] != null)
{

$("#NotificationBox").html('@TempData["Notification"]');
$("#NotificationBox").fadeIn(1000);
$("#NotificationBox").delay(5000).queue(function (next) {
$("#NotificationBox").html("");
$("#NotificationBox").css("background-color", "");
next();
});

}
Singh Deepika 18-Jan-17 23:47pm View    
For that, you could delay the calling of the function in your javascript or delay the hide and show of the overlay. Using the $().delay() method :-

Below is just a suggestion that you could try :-

if (isShown != undefined && overlay != undefined)
{
if (isShown === true) {
$(overlay).delay(5000).queue(function (next) {
$(overlay).addClass('cm-overlay-show').removeClass('cm-overlay-hide');
next();
});
}
else
{
$(overlay).delay(5000).queue(function (next) {
$(overlay).addClass('cm-overlay-hide').removeClass('cm-overlay-show');
next();
});
}
}


Singh Deepika 18-Jan-17 6:19am View    
the regex is matching input string "http://www.bigwinnerme.com". Checkout at regexstorm.

What check are you applying. If the string wont match it will return Null. Also, you could test your regular expression here : http://regexstorm.net/tester