Click here to Skip to main content
15,898,743 members

Comments by Madhukar Krishna (Top 19 by date)

Madhukar Krishna 12-Mar-19 1:52am View    
Try this

function preventBack() { window.history.forward(); }
setTimeout("preventBack()", 0);
window.onunload = function () { null };
Madhukar Krishna 12-Mar-19 1:48am View    
Please post your code
Madhukar Krishna 4-Oct-18 13:36pm View    
Great Sitecore! You are a genius. Thank you so much! This works for me!
Madhukar Krishna 4-Oct-18 9:09am View    
Hi F-ES Sitecore. I have the following code and I want it to stop for the first of first type of control which is empty:

//Repeater
var isValid = true;
$("#Rpt1").find("input[type=text]").each(function () {
if ($.trim($(this).val()) == '') {
alert("At least one textbox is empty");
$(this).focus(); // focus the element
isValid = false;
return false;
}

})

$("#Rpt1").find(".Select1").each(function () {
if ($.trim($(this).val()) == '0') {
alert("select a value");
$(this).focus(); // focus the element
isValid = false;
return false;
}

})

$("#Rpt1").find("input[type=file]").each(function () {
if ($.trim($(this).val()) == '') {
alert("select a file");
$(this).focus(); // focus the element
isValid = false;
return false;
}

})
return isValid;


How to do it? I will be thankful if you answer this!!!
Madhukar Krishna 1-Oct-18 6:11am View    
Deleted
Thanks a ton F_ES Sitecore. That did the trick for me. Thank you very much