Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6031577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:12:15+00:00 2026-05-23T05:12:15+00:00

I have a CKEditor at my page, in order to allow users to edit

  • 0

I have a CKEditor at my page, in order to allow users to edit html online.

one of the features I want to add to the page is the ability to save the contents of the editor with a button like “Save Template”, which will be followed by the save/open window, without security warnings or page refresh.

I realize that Javascript can’t access the client’s file system, so I can’t use it to create and save a file.

my next approach was to send the editor contents to the server, save it as a file and then send it back to the user.

since I don’t want the page to refresh I used an AJAX method to save the design.

now at the OnSucceed javascript function I activated an hidden iframe which retrieves the file from server, but this activates an IE security warning…

I’ve tried to fire both method and iframe at the same time now there are no warnings, but the iframe gets executed always before the AJAX method…

is there any other way to do this? am I missing something simple…?

EDIT:

I used iframe with UploadPanel as suggested in

http://encosia.com/ajax-file-downloads-and-iframes/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:12:16+00:00Added an answer on May 23, 2026 at 5:12 am

    I would have gone down a similar route – sending it on a round trip to the server. Indeed, that’s the process by which I’ve implemented all sorts of pages for retrieving files from a server – but I’ve never come across a security warning from stuff I’ve written (but I don’t use asp.net).

    You didn’t say what the security warning is – nor if SSL is involved in any way.

    I suggest you build a test rig where the user just presses a button to trigger the javascript and compile the response from static data on the server – mediated by your code. Note that if you want the file to donwload then you should say so in the response headers e.g.

    Content-Disposition: attachment; filename="yourfile.html"
    

    You might also try returning a mimetype not explicitly supported by the browser to force download:

    Content-type: application/octet-stream
    

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following: POST page that allows users to write text in CKEditor
i have a textarea and I am using ckeditor to allow users to enter
hi i have ckeditor and one button for save ckeditor text whith ajax .
I have a CKEditor used to edit a text in a web-page. In the
I have a standard HTML page with an CKEditor on it wrapped in a
We have a CKEditor in place, on a ASP.Net MVC 3 page: var editor
i'v got a trouble, i want to use Ckeditor with my project, i have
I have an instance of CKEditor on a page. I am trying to give
I have a form that uses CKEditor and all works. I save the text
I'm using the WYSIWYG editor CKeditor in one of my websites. In order to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.