Click here to Skip to main content
15,895,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
function IsEdit(ID,i,companyId, companyType) {
       try {

           document.getElementById('hdnIsEdit').value = ID;
           document.getElementById('txtHistoryMessage' + ID).style.Width = "250" + "px";
           document.getElementById('txtHistoryMessage' + ID).style.Height = "250" + "px";
           document.getElementById('btnEdit' + ID).style.display = "none";

           jQuery.CcEditorPlugin($("#txtHistoryMessage" + ID), {
               style: "css/jquery.sceditor.default.min.css"
           });

           $('iframe')[1].contents().find('body')[0].innerHTML = document.getElementById('txtHistoryMessage' + (ID)).value; MatchHeights()
       }
       catch (ex) {
           alert(ex.Message());
       }
   }



Need to set contents of txtHistoryMessage to the iframe1 of page
Posted
Comments
Arjun Menon U.K 19-Jun-12 4:28am    
Please help me

1 solution

First off, unless your iframe is referring to a page on the same domain, you can't, due to the Same Origin Policy.

Otherwise, I see no problem with the code you have there.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900