Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2008

    How to extract html data

    I have created a widget which displays news,when clicking on a headline it will display entire html page,i used this code
    var response=req1.responseText();.but i have to extract data from 3 div's inside html page.how i can extract that.any help is appreciated.


  2. #2
    Registered User
    Join Date
    Nov 2007

    Re: How to extract html data

    If you want to extract the HTML content of a HTML control, you can use innerHTML method like this:

    var content=document.getElementById('div1').innerHTML

    I hope this helps to you.

Similar Threads

  1. SIP calls over Packet data
    By thefamilyman in forum VoIP
    Replies: 8
    Last Post: 2010-04-27, 06:12
  2. Replies: 1
    Last Post: 2009-04-20, 17:54
  3. Extracting Data via P2P
    By bladetech69 in forum Near Field Communication
    Replies: 3
    Last Post: 2009-02-17, 11:52
  4. I need to extract sms inbox data by midlet
    By farhanx in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-10-01, 20:05
  5. Replies: 2
    Last Post: 2006-08-11, 20:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts