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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:48:51+00:00 2026-06-04T07:48:51+00:00

I have a form containing many dijit.form elements and also a dijit.Editor. The form

  • 0

I have a form containing many dijit.form elements and also a dijit.Editor. The form is initially filled with data that I get from the server. The user can change the content and then submit this back to the serer. A classic use case.

When the user submits the form I need to only send the changed data. The problem with the dijit.Editor is that it sometimes changes the initial content even if the user did not make any changes. For example:

The initial content entered in the dijit.editor is this:

"Gesegmenteerde rand, 115 mm~Max 13280 U/min, 80 m/sec</br>~Drooggebruik"

And when retrieving the content like this editorObj.get(‘value’); it returns this:

"Gesegmenteerde rand, 115 mm~Max 13280 U/min, 80 m/sec<br />~Drooggebruik"

As you can see the </br> is changed to <br />. I know the original value is wrong, but that’s because the source sucks and that is out of my control.

So my question is: is there an easy way to check if the content has indeed been changed by the user instead of just by dijit.Editor itself.

  • 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-06-04T07:48:53+00:00Added an answer on June 4, 2026 at 7:48 am

    What I ended up doing is was adding two extra attributes to the Editor:

    dijitObj.set('originalValue', value);
    dijitObj.set('value', value);
    dijitObj.set('uneditedValue', dijitObj.get('value'));
    

    In the read out of the value of the the editor I use these to determine if something changed at all:

    var value = dijitObj.get('value');
    if (dijitObj.get('uneditedValue') === value) {
      // The value hasn't changed, so we send the original value
      value = dijitObj.get('originalValue');
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Fact: I'm not that good with jQuery. Problem: I have a form containing dynamically
I have a Html form. I want to get the file containing posted form's
I have a file containing lots of data put in a form similar to
I have a panel containing a form (elements such as labels and textboxes within
I have a form containing many picture boxes named pb_a1,pb_a2,pb_a3... and so on.. I
We have a django-model containing a many-to-many field. We use the same form to
I have form containing many input fields. But I need to take one field
In Matlab, I have data in the following form: z, a 17'256x1 double, containing
I have a HTML form containing checkboxes in the form of .. <input type=checkbox
I have a simple in VB/ASP.NET form containing two text boxes, I am attempting

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.