Forms Renderer Error with IE7 Browsers

Topics: Standard packages
Oct 24, 2011 at 9:23 PM

I am building a Web site with Composite C1 2.1.1, Build no. 2.1.4113.99.  One of the pages has a forms renderer function on it.  Whenever I open the page using IE7, I get the following error (in a popup dialog box with an OK button - Note: The site is not publically accessible; it is an internal development server):

      Internet Explorer cannot open the site http://sweci.net/Home/News-and-Information/Contact-Us.aspx.  Operation aborted.

When I remove the function form the page, the page loads fine.  Any help would be appreciated.  Thanks!

John Graminski

 

Oct 25, 2011 at 8:22 AM

Hello,

Could you please try  to apply next fix:

( I am not sure if it will help but I Googled and problem really exist in IE7-IE8 and the fix to execute  javascript code when the document is loaded.)

1) locate file \Frontend\Composite\Forms\Renderer\Controls\FormsRender.ascx.cs , locate this code:

 

//Localizing DatePicker
var script = InsertScriptIntoHeader();
script.InnerHtml = @"
<!--

$('.InputDate').datepicker();

$(document).ready(function() {
$.validator.addMethod(""integer"", function(value, element) {
return /^\d+$/.test(value);;
}, $.validator.messages[""digits""]);
$.validator.addMethod(""number"", function(value, element) {
return /^-?(?:\d+)(?:" + NumberDecimalSeparator() + @"\d+)?$/.test(value);
}, $.validator.messages[""number""]);
$(""form"").each(function() {
$(this).validate();
});
})

-->
";

 

 

move $('.InputDate').datepicker(); to the $(document).ready(function() { } )  section, like this:

 

//Localizing DatePicker
var script = InsertScriptIntoHeader();
script.InnerHtml = @"
<!--
$(document).ready(function() {

$('.InputDate').datepicker();

$.validator.addMethod(""integer"", function(value, element) {
return /^\d+$/.test(value);;
}, $.validator.messages[""digits""]);
$.validator.addMethod(""number"", function(value, element) {
return /^-?(?:\d+)(?:" + NumberDecimalSeparator() + @"\d+)?$/.test(value);
}, $.validator.messages[""number""]);
$(""form"").each(function() {
$(this).validate();
});
})

-->
";

 

 

save the file and re-check