Re: Databse Image Selection

  •  11-16-2004, 11:17 AM

    Re: Databse Image Selection

    For CuteEditor4.0 try to do this:

     
    create a file as YourDialog.Aspx to list your images ,
    and when the user select an image , run javascript :
     
    top.returnValue='aaaa.jpg';
    top.close();
     
    for the page using CuteEditor4.0 : write this javascript:
     
    function onmybuttonclick()
    {
    var imageurl=showModalDialog("YourDialog.Aspx");
    if(imageurl!=null)
    {
        <%=Editor1.ClientID%>.ExecCommand("PasteHTML",false,"<img src='"+imageurl+"'>");
    }
    }
     
    Hope this helps .
     
    Regards , Terry .
     
     
View Complete Thread