Insert hyperlink - link is being modified

Last post 10-28-2011, 6:39 AM by ketty00. 4 replies.
Sort Posts: Previous Next
  •  08-03-2011, 8:09 PM 69241

    Insert hyperlink - link is being modified

    We have added code so that when a user clicks on the "Insert hyperlink" icon, we allow the user to click a browse button to link to a special page we created to play a video in a popup window. Once the user selects what video they want to play, we populate the "Url:" field with the following:
    /us/media/video_popup.aspx?id=Is_there_a_leadership_and_talent_crisis_hr.flv" onclick="BLOCKED SCRIPTMM_openBrWindow('/us/media/video_popup.aspx?id=Is_there_a_leadership_and_talent_crisis_hr.flv','Video','width=530,height=525,left=50'); return false;" target="_blank
     
    This allows us to do the following:
    If a user has javascript enabled, it will open a new window with height and width we specify
    If user has javascript disabled, it will still open the page in a new window and just ignore the onclick code
     
    In Cute Editor v6.1, it ends up inserting the following hyperlink (THIS IS WHAT WE WANT TO HAPPEN)
    <a title="2007 Best Companies for Leaders survey with Chief Executive magazine" onclick="BLOCKED SCRIPTMM_openBrWindow('/us/media/video_popup.aspx?id=Is_there_a_leadership_and_talent_crisis_hr.flv','Video','width=530,height=525,left=50'); return false;" href="http://www.cutesoft.net/us/media/video_popup.aspx?id=Is_there_a_leadership_and_talent_crisis_hr.flv" target="_blank">Group </a>
     
    In Cute Editor v6.6, it ends up inserting the following hyperlink (NOT WHAT WE WANT)
    <a title="2008 Best Companies for Leaders" onclick="BLOCKED SCRIPTMM_openBrWindow('" href="http://www.cutesoft.net/video/video_popup.aspx?id=020309_2008_Best_companys_for_leaders_hr_ch1.flv" target="_blank" false;? return video_popup.aspx? id="020309_2008_Best_companys_for_leaders_hr_ch1.flv','Video','width=530,height=525,left=50');" video>Group </a>
    Why is v6.6 changing what we entered for the URL?
    Is there any way to disable what is modifying the URL?
     
  •  08-11-2011, 8:57 PM 69503 in reply to 69241

    Re: Insert hyperlink - link is being modified

    Cute Editor support team, any suggestions?
  •  09-09-2011, 12:37 PM 70002 in reply to 69503

    Re: Insert hyperlink - link is being modified

    Cute Editor support team, any suggestions? Does the support team not read this forum anymore?
  •  09-09-2011, 3:12 PM 70003 in reply to 70002

    Re: Insert hyperlink - link is being modified

    Hi demmett,
     
    Please try the examle below, it should fix this issue.
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <!-- #include file = "CuteEditor_Files/include_CuteEditor.asp" -->
    <head>
    </head>
    <body>
        <form name="theForm" method="post">
            <%
            Dim editor
            Set editor = New CuteEditor
            editor.ID = "CalendarContents"
            editor.Draw()
            %>
        </form>
    </body>
    </html>

       <script type="text/javascript">      
        function CuteEditor_FilterHTML(editor,code)   
      {   
           return code.split("&quot;").join('"');
      }   
     function CuteEditor_FilterCode(editor,code)   
      {   
           return code.split("&quot;").join('"');  
      }   
     </script>  
     
    Regards,
     
    Ken
  •  10-28-2011, 6:39 AM 70547 in reply to 69241

    Re: Insert hyperlink - link is being modified

    Wow! this is really great.. thanks for this hyper link buddy...
View as RSS news feed in XML