locked
MSCRM2011 javascript not working in ie11 RRS feed

  • Question

  • function loadProductSelection() {
    alert("Xrm.Page.data.entity.getId() && Xrm.Page.getAttribute(lambda_clientnumber).getValue(); :"+Xrm.Page.data.entity.getId() && Xrm.Page.getAttribute("lambda_clientnumber").getValue());
    	
    	if (crmForm.ObjectId && crmForm.all.lambda_clientnumber.DataValue && crmForm.all.lambda_policy.DataValue) {
    	    alert(Xrm.Page.data.entity.getId() && Xrm.Page.getAttribute(lambda_clientnumber).getValue());
    		//crmForm.all.IFRAME_contact_product.src = "http://" + window.location.host + ":10006/External/PreCertLogProduct.aspx?p1=" + crmForm.all.lambda_policy.DataValue.replace(' ', '') + "&p2=" + crmForm.all.lambda_clientnumber.DataValue.replace(' ', '');
    
    var policy = Xrm.Page.getAttribute("lambda_policy").getValue();
     var clientnumber = Xrm.Page.getAttribute("lambda_clientnumber").getValue();
     
     Xrm.Page.getControl("IFRAME_contact_product").setSrc("http://" + window.location.host + ":10006/External/PreCertLogProduct.aspx?p1=" + policy.replace(' ', '') + "&p2=" + clientnumber.replace(' ', ''));

    alert("http://" + window.location.host + ":10006/External/PreCertLogProduct.aspx?p1=" + crmForm.all.lambda_policy.DataValue.replace(' ', '') + "&p2=" + crmForm.all.lambda_clientnumber.DataValue.replace(' ', '')); } }
    Can i know what is happening for this javascript ??
    • Edited by KennyChan6996 Wednesday, October 28, 2015 4:28 AM Wrong
    Wednesday, October 28, 2015 3:49 AM

All replies

  • Hello,

    You code is mix of 2011 and CRM 4.0 (crmForm), first convert this code to 2011 and then test crm 4.0 code is not supported.

    Thanks


    Mahender | Our Blog
    "Make sure to click on 'Vote as Helpful' and 'Mark As Answer', if you get answer of your question

    Wednesday, October 28, 2015 7:43 AM
    Moderator