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 6655117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:28:30+00:00 2026-05-26T01:28:30+00:00

I am building an online survey tool. A Question entity looks like this: [Question]

  • 0

I am building an online survey tool. A Question entity looks like this:

[Question]
int QuestionId { get; set; }
int QuestionNumber { get; set; }
String QuestionText { get; set; }
QuestionType QuestionType { get; }

When i display a Question on my website, it displays QuestionText, and differet answer possibilities depending to the QuestionType.

When i want to edit a question, i have an edit view.

My boss wants a WYSIWYG editor, so that he can click on the QuestionText label on my website, and be able to edit it directly from there, without having to go to another page. How would i approach this?

My guess is: I need an action controller that takes QuestionId and the new QuestionText as parameters, and use AJAX to send it, so that the change will be seamless. To edit the current label, i need a onclick event, that opens some kind of editor that displays the current label text. When i click on OK in the editor, it will call the action controller and change the text. If the update succeeds, i will send some information back, to let the AJAX method know it has succeeded, and then update the label on the website.

Is this the correct way to do it? Any comments, examples and solutions are welcome!

  • 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-26T01:28:31+00:00Added an answer on May 26, 2026 at 1:28 am

    Yep, that is exactly how it works. Some comments:

    1. Use JSON to exchange the data because it allows to exchange objects instead of simple strings.

    2. The ajax() method of jQuery has a success callback, so it’s trivial to wait for the server and update the UI.

    3. CKEditor is a good WYSIWYG editor which is easy to embed.

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

Sidebar

Related Questions

noob question: I'm building a checkout system for an online commerce site. I'm getting
I am building an online survey system for which I wish to produce statistics.
Possible Duplicate: Simplest way to profile a PHP script We are building this online
Background to question: We are building an online web application that requires the user
I am building an online survey app. I am rendering questions over several pages.
We are building an online map (like Google Maps) and we ran into layout
I'm building an online store to sell products like Green Extra-large, T-shirts. I.e., the
I'm building an online text-based game much like Mafia Wars. I'm using PHP on
I am building a online ticket booking site . In this I am doing
I'm building a website which allows you to write python code online just like

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.