This is a migrated thread and some comments may be shown as answers.

Security warning on folder creation in IE7

1 Answer 40 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Roland Van Putten
Top achievements
Rank 1
Roland Van Putten asked on 18 Mar 2009, 01:23 PM
Hi All,

I am using RadEditor Q3 2008 (02.1001) and when, in a ImageManager or DocumentManager dialog, I want to create a new folder I get in IE7 a warning about a scriptprompt (for entering the new folder name).

In a previous version the foldername had to be entered in the dialog itself, and I saw the new version (Q1 2009) using a RadWindow as a prompt, but upgrading is currently not an option.

Is there a way to circumvent / surpress this issue server-side, or use a radwindow instead of a javascript prompt?

Thanks in advance,

Regards,

Roland
3po.nl

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 24 Mar 2009, 09:55 AM
Hi Roland,

If upgrading to Q1 2009 is not an option then things get quite complex.
In order to "replace" the prompt with radprompt you will need to run a dialog as external dialog, and then override the createNewDirectory method of the built-in FileLilster control.

Here is an example discussing how to run a dialog from external location:
http://demos.telerik.com/aspnet-ajax/editor/examples/externaldialogspath/defaultcs.aspx

Here is the signature of the method that you need to alert and play with
Telerik.Web.UI.Widgets.GenericFileLister.prototype.createNewDirectory = function()
{
  //The new version goes here
}

Sincerely yours,
Tervel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Roland Van Putten
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Share this question
or