Re: Preview Option

  •  03-05-2008, 12:11 PM

    Re: Preview Option

    function SetActiveTab()

    {

    var editor1 = document.getElementById('<%=Editor1.ClientID%>');

     

    editor1.SetActiveTab('Preview');

    }


    function
    ExecCommand()

    {

    var editor1 = document.getElementById('<%=Editor1.ClientID%>');

    var cmd = "preview";

    var val = "preview";

    editor1.SetActiveTab("preview");

    editor1.ExecCommand(cmd,false,val);

    }

     

     1st fn SetActiveTab is not working. But 2ndfunction i sworking it is opening a new window in preview mode.
    Is there anyway to SEtActiveTab to Preview. or I am giving any wrong work to set active tab
     
View Complete Thread