Preview tab and javascript's window.open() function

Last post 04-15-2005, 2:12 PM by fcatacutan. 2 replies.
Sort Posts: Previous Next
  •  04-15-2005, 12:52 PM 5773

    Preview tab and javascript's window.open() function

    Hi,
     
    I'm running into problems when using the Preview tab and clicking on a link that actually makes a javascript function call as opposed to a URL.  When I click on the link, the Javascript function window.open() is called and has been configured to open a new window with predefined dimensions.  The link goes something like <a href="BLOCKED SCRIPTwindow.open(URL, ... )">.
     
    When I click on the Preview tab to test the link, a new browser window opens (which does not have the predefined dimensions that I specified) and attempts to access the page "BLOCKED SCRIPTwindow.open(URL, ... )."
     
    I noticed that when any link in the Preview tab is clicked, a new window is opened and attempts to navigate to the page specified within the href.  This makes sense considering that the user may not have saved the text entered in the editor prior to accessing the Preview tab.  However, is there anyway to resolve my javascript issue?
     
    FYI: My company did purchase your source code.
  •  04-15-2005, 1:38 PM 5777 in reply to 5773

    Re: Preview tab and javascript's window.open() function

    Open the template.aspx. You can find the file under CuteSoft_client/CuteEditor.
     
    Change this line <base target="_blank"  href="<%=referrer%>" />
     
    to <base target="_self"  href="<%=referrer%>" />

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-15-2005, 2:12 PM 5778 in reply to 5777

    Re: Preview tab and javascript's window.open() function

    Hi Adam,
     
    Thanks for the quick response.  I actually stumbled across the file template.aspx when I was trying to locate where the call was being made to open the new browser.  I originally tried target="_self" and received an error, which is not what I was expecting.  I ended up using target="_top" which achieved what I wanted.
     
    Of course now I place myself in the predicament where an author would lose all of his text if he was in the Preview tab and clicked on a link that actually navigated to a new page.  I guess at this point it's one or the other.
     
    Any possibility that you guys could implement something that would allow us to select the target based on the protocol (i.e. http, https, ftp, etc.) specified?
     
    Fermin
View as RSS news feed in XML