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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:21:30+00:00 2026-06-05T13:21:30+00:00

I am trying to create a fairly simple editor with the purpose of having

  • 0

I am trying to create a fairly simple editor with the purpose of having an easy way to create questionnaires which will then be sent to customers to fill them out and have em sent back to us.
So the editor part is done with jquery, i just add the desired html elements (text/buttons) on button click. The visual part works.
Now of course a created template should be savable and loadable via xml.

The saving to file part is what I have not yet figured out.

The way I was about to go was just taking the whole html document and parse it via php. But this seems to be a non-ideal solution.

The problem is that my experience is fairly limited and I just wanted to do this as a convenience/hobby project so I constantly feel like I am doing things the stupid way.
So I am completely open to whichever way is best to accomplish this task.

So to give you an example i would have created:

<input type="checkbox" id="checkId1" /><label for="checkId1">Sample Answer</label>
<textarea type="text" name="questionText" id="questionText1" value="Sample Question Text"></textarea>

and want to convert this to an xml that looks sort of like

<Question>
<QuestionType>CheckboxQuestion</QuestionType>
<QuestionText>Sample Question Text</QuestionText>
</Question>

Which I am then going to convert back to html when parsed with jquery.

  • 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-05T13:21:33+00:00Added an answer on June 5, 2026 at 1:21 pm
         I think this is what you mean!
    
         1. you xml 
            <Question>
            <QuestionType>CheckboxQuestion</QuestionType>
             <QuestionText>Sample Question Text</QuestionText>
            </Question>
         2. Then parse xml using JS
    
             $.ajax({
                    type:'GET',
                    url:'your xml file',
                    dataType:'xml',
                    success: function(data){
                       $(data).find("Question").each(function(){
    
                     $('div.caption').append("<input type='checkbox' id='checkId1'>" 
    
                     +"<label for='checkId1'>"
                     +$(this).find('QuestionType').text()
                     +"</label>"
                     +"<textarea type='text' name='questionText' id='questionText1'" +"value='"$(this).find('QuestionText').text()"'>"
                    +"$(this).find('QuestionText').text()"
                    +"</textarea>");
    
                            });
                     } 
                });
    
    
         3. HTML <div class='caption'></div>
    
        Hope this will help! Tnx
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having problems trying to create a fairly simple dynamic SQL query. The
I'm trying to create a fairly simple piece of JavaScript that displays a random
I'm trying to create a fairly simple macro in Word 2010 using Visual Basic.
I'm trying to create a fairly simple form that has a few checkboxes and
I'm trying to create a fairly simple label printer to complement the services offered
I need to create an iPhone app that will be a fairly simple application
I'm trying to create a fairly simple trigger that would add one to a
I have been trying to create a fairly simple application in WPF following the
I am currently trying to create a fairly simple association in Rails, but it
I'm trying to create a UISlider in code, it's fairly simple what I'm doing:

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.