GetSavePoint/RestoreSavePoint functions are not implemented in V6

Last post 05-14-2007, 8:33 AM by tom.Ognibene. 3 replies.
Sort Posts: Previous Next
  •  05-08-2007, 3:09 PM 29375

    GetSavePoint/RestoreSavePoint functions are not implemented in V6

    In v5.3 we used these functions to provide support for Ajax style modals.  A user would select some text, click a button and summon an Ajax modal.  Upon return from the modal, we would add some adornments to that text in script code.  These Editor functions allow use to save/retrieve the selected text.  Will these be implemented in a future build, or is there another way to do this?
    thanks


  •  05-09-2007, 1:13 PM 29443 in reply to 29375

    Re: GetSavePoint/RestoreSavePoint functions are not implemented in V6

    Tom,
     
    Try using the following functions in version 6.0.
     
    Window_RestoreSavePoint(win,sp)
    Window_GetSavePoint(win)
     
     

    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

  •  05-09-2007, 2:53 PM 29450 in reply to 29443

    Re: GetSavePoint/RestoreSavePoint functions are not implemented in V6

    Those functions don't appear to be available on the client.  Do I need to include any extra script files beyond what CE pulls in?
  •  05-14-2007, 8:33 AM 29625 in reply to 29450

    Re: GetSavePoint/RestoreSavePoint functions are not implemented in V6

    I'm not certain how to call the replacement functions, can you provide an example.  I've only tested in IE and Firefox

    This is my example Javascript, each of the alerts below display 'undefined'.

                <script language="JavaScript" type="text/javascript" >
                function ShowMyDialog(button)
                {
                    //use CuteEditor_GetEditor(elementinsidetheEditor) to get the cute editor instance
                    var editor=CuteEditor_GetEditor(button);
                    //show the dialog page , and pass the editor as newwin.dialogArguments
                    //(handler,url,args,feature)
                    alert('editor.Window_GetSavePoint:'+typeof(editor.Window_GetSavePoint))
                    alert('Window_GetSavePoint:'+typeof(Window_GetSavePoint))
                    alert('GetSavePoint:'+typeof(GetSavePoint))
                    var newwin=editor.ShowDialog(null,"My_Custom_Text.html?_rand="+new Date().getTime()
                        ,editor,"dialogWidth:400px;dialogHeight:240px");
                }
            </script>

    I looked at the Window_GetSavePoint() function in IE_Implementation\CuteEditorImplementation.js and it has some syntax I'm not familiar with, mainly:
            return
            {
                type:OxO8f05[0xb],controls:arr
            };




View as RSS news feed in XML