template.aspx target setting is ignored

  •  05-25-2006, 3:21 PM

    template.aspx target setting is ignored

    I'm trying to execute javascript when the link is clicked from preview tab. It doesn't work because the new window is opened with BLOCKED SCRIPTLoadPage(XX) inside address bar. When I modify base (inside template.aspx) to look like that: <base target="_parent" href="<%=referrer%>" /> it still doesn't work because every time I switch to Preview tab the base target setting is reset back to "_blank".
     
    I know that because I call this function from the address bar:
                function ResetBase() {
                      var oEd = document.getElementById('<%=Ed.ClientID%>');
                      var oDoc = oEd.GetDocument();
                      var head = oDoc.getElementsByTagName("head")[0];
                      var htmlbase = oDoc.getElementsByTagName("base").item(0);
                     
                      if(htmlbase) {
                            alert(htmlbase.target)
                      }
                }
    Am I doing something wrong ? or how do I call a javascript function (located inside the page where CuteEdit is instantiated from) from the a link ?
     
    Thank you
View Complete Thread