Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16689

Re: Display XML content in HTML page

From Daniel Pitts <newsgroup.nospam@virtualinfinity.net>
Newsgroups comp.lang.javascript
Subject Re: Display XML content in HTML page
References <1a067dc0-9d64-4b7c-ba61-736bf747bb78@googlegroups.com> <7cbt78t4o9lq18ta0tisg2ftq8gmp3pm9k@4ax.com>
Message-ID <pRBfs.2677$7h4.909@newsfe10.iad> (permalink)
Date 2012-10-17 10:24 -0700

Show all headers | View raw


On 10/17/12 6:11 AM, Jim T. wrote:
> On Wed, 17 Oct 2012 05:23:19 -0700 (PDT), Pervez Mulla
> <mullapervez@gmail.com> wrote:
>
>> Hi,
>>
>> I am newbie , 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 .How can I do this .......?
>>
>> I tried with so many examples . but am not getting solution for my problem .Below is my XML format data which is am getting from perl script .
>
> Is the problem parsing the XML? If so RegExp should be up to the job
> in this case. If that's the the problem please be more specific.
No. Just no.
RegExp is *never* the solution to XML parsing. Bad! Bad!

In any case, is it possible to change the back-end perl script's output? 
  JSON is an easier transport format to deal with in JavaScript.

>
>> <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>
>>
>>
>>
>> Please Help
>>
>>
>> Thank You
>> Pervez
>

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Display XML content in HTML page Pervez Mulla <mullapervez@gmail.com> - 2012-10-17 05:23 -0700
  Re: Display XML content in HTML page Jim T. <x@y.z> - 2012-10-17 09:11 -0400
    Re: Display XML content in HTML page Jim T. <x@y.z> - 2012-10-17 09:20 -0400
    Re: Display XML content in HTML page Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-10-17 10:24 -0700
      Re: Display XML content in HTML page Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-17 20:05 +0200
      Re: Display XML content in HTML page Jim T. <x@y.z> - 2012-10-17 21:31 -0400
      Re: Display XML content in HTML page Pervez Mulla <mullapervez@gmail.com> - 2012-10-17 21:42 -0700
  Re: Display XML content in HTML page Hans-Georg Michna <hans-georgNoEmailPlease@michna.com> - 2012-10-17 15:39 +0200
  Re: Display XML content in HTML page Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-17 20:03 +0200
    Re: Display XML content in HTML page Pervez Mulla <mullapervez@gmail.com> - 2012-10-17 21:38 -0700
      Re: Display XML content in HTML page Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-10-18 07:41 +0200
        Re: Display XML content in HTML page Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-10-29 12:09 +0100
          Re: Display XML content in HTML page Cezary Tomczyk <cezary.tomczyk@gmail.com> - 2012-11-09 23:03 +0100
  Re: Display XML content in HTML page Danny <dann90038@gmail.com> - 2012-10-17 13:19 -0700
  Re: Display XML content in HTML page Bart Van der Donck <bart@nijlen.com> - 2012-10-31 00:50 -0700

csiph-web