Can't ctach the Savebutton in Firefox

  •  04-15-2006, 7:02 AM

    Can't ctach the Savebutton in Firefox

    Hi,
     
    I try to open a Popupdialog when I hit the Savebutton, this works fine in IE but in FF it just performs a Postback and the javascript function isn't called.
     
    In C# i wrote this:
    Editor.Attributes["oncommand"] = "BLOCKED SCRIPTHandleEditorCommand(this,event)";
     
    the javascript function is
     

    function HandleEditorCommand(Editor,e)

    {

    if(!e)

    e=window.event;

     

    if(e.command=='PostBack'&& e.commandvalue=='Save' )

    {

    var content=Editor.getHTML();

    _Default.GetEditorContent(content);

    detail=window.open("SaveDialog.aspx","Detail","width=440,height=370,left=100,top=200,dependent=yes,resizable=no,status=yes,statusbar=yes");

    detail.focus();

    event.returnValue=false;

    }

    }
    any idea why firefox does not call this function?
View Complete Thread