Cannot use inline assignment and direct assignment doesn't work

  •  11-16-2007, 3:29 PM

    Cannot use inline assignment and direct assignment doesn't work

    Adam,
     
    Throughout your javascript examples, you use this format:
     
    <%=Editor1.ClientID%>
     
    We cannot use this format because of Ajax implementation which cannot alter controls using inline code or assignment. Also, Microsoft recommends not using inline in Framework 3.
     
    When I use the standard assignment:
     
    var cuteEditor1 = document.getElementById("Editor1");
     
    and try things like this:
     
    cuteEditor1.SetHeight("400px");
     
    it fails even though cuteEditor1 reports as being an object.
     
    How do we reference the CE object if we can't use inline assignment?
     
    Thanks,
    FredD
View Complete Thread