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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:49:01+00:00 2026-06-13T10:49:01+00:00

I have application in which check-box tree is present. I want to pre-populate the

  • 0

I have application in which check-box tree is present. I want to pre-populate the check-box’s if user before checked some of those check box.

For that am getting XML format from my back-end perl script as shown below.like, in below XML only 0, 43,44,45,46 and 50 are coming so only those respective checkbox need to checked on page load.I want to display those checked check-box on page load by calling perl script from blackened parsing XMl .How can I do this?

<perldata> 
 <hashref memory_address="0x86f4880"> 
  <item key="0">1</item> 
 </hashref> 
</perldata> 
<perldata> 
 <hashref memory_address="0x86f4880"> 
  <item key="43">1</item> 
 </hashref> 
</perldata> 
<perldata> 
 <hashref memory_address="0x86f4880"> 
  <item key="44">1</item> 
 </hashref> 
</perldata> 
<perldata> 
 <hashref memory_address="0x86f4880"> 
  <item key="45">1</item> 
 </hashref> 
</perldata> 
<perldata> 
 <hashref memory_address="0x86f4880"> 
  <item key="46">1</item> 
 </hashref> 
</perldata> 
<perldata> 
 <hashref memory_address="0x86f4880"> 
  <item key="50">1</item> 
 </hashref> 
</perldata> 
  • 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-13T10:49:03+00:00Added an answer on June 13, 2026 at 10:49 am

    I read a flat XML file , you would read from your PERL program.

    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8" />
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
        <script type="text/javascript">
        $(helloWorld)
        function helloWorld() {
            $.ajax({
                url: 'perldata.xml',
                success: function(data) {
                    $('[key]',data).each(function(){
                        $('#chk_'+$(this).attr('key')).prop('checked',true)
                    })
                }
            })
        }
        </script>
        <title>perlData</title>
    </head>
    <body>
    <div id="message">
    <form>
    <input id='chk_0' type='checkbox' />0<br />
    <input id='chk_1' type='checkbox' />1<br />
    <input id='chk_2' type='checkbox' />2<br />
    <input id='chk_3' type='checkbox' />3<br />
    <input id='chk_4' type='checkbox' />4<br />
    <input id='chk_5' type='checkbox' />5<br />
    <input id='chk_6' type='checkbox' />6<br />
    <input id='chk_7' type='checkbox' />7<br />
    <input id='chk_8' type='checkbox' />8<br />
    <input id='chk_9' type='checkbox' />9<br />
    <input id='chk_10' type='checkbox' />10<br />
    <input id='chk_11' type='checkbox' />11<br />
    <input id='chk_12' type='checkbox' />12<br />
    <input id='chk_13' type='checkbox' />13<br />
    <input id='chk_14' type='checkbox' />14<br />
    <input id='chk_15' type='checkbox' />15<br />
    </form>
    </div>
    
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Android: i am using gps check box in my application, which user check this
I have an application where i have created a thread which must check the
I have to check connection leak in my application i.e. open connections which have
I have a application which uses a JTree. For each node in the tree,
I have implemented a combo box which has a check box in it (Windows
We have weblogic appserver running on unix box with our application which uses log4j
In my application I have methods which returns a control (checkbox, radiobutton, textbox) but
I have application which uses Sherlock ActionBar package. The application uses platform-specific behavior for
I have application which needs to use a dll (also written by me) which
I have an application which uses the microsoft kinect device. The thing is that

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.