Re: This only works in IE, not in Firefox etc.

  •  11-22-2009, 2:52 AM

    Re: This only works in IE, not in Firefox etc.

    Half the problem solved.
     
    If figured out, that this is the problem: (text marked with yellow)
     

    <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm19.aspx.vb" Inherits="Aspergerforeningen.WebForm19" %>
    <%
    @ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="ce" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script language="JavaScript" type="text/javascript" >
    function ShowMyDialog(button) {
    var editor = CuteEditor_GetEditor(button);
    var newwin = editor.ShowDialog(null, "getLink.aspx?link=" + getTekst()
    , editor,
    "dialogWidth:400px;dialogHeight:240px");

    }

     

    function getTekst() {
    var editor1 = document.getElementById('<%=Editor1.ClientID%>');
    var editselection = editor1.GetSelection();
    var r = editselection.createRange();
    return r.htmlText;
    }
    </script>
     
    A soon as the Java code is using af variable the window dont open. If i just type in something, like this :

    var
    newwin = editor.ShowDialog(null, "getLink.aspx?link=" + "this is a test",
     
    everything works fine. Is it at java problem, or is it the cute soft editor? (Im not the best java programmer, so it's proplaby me :-))
     
    Anybody have a idea?
     
    Kindly PeterDK
View Complete Thread