#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    3
    Rep Power
    0

    Thumbs up Html Form Content Extractor


    Hello all, I was trying to extract the labels associated with form elements(like radios, textboxes, etc) , but there is no way to extract them, even via dom it is not possible. I mean, it is completely dependent on heuristics ( eg, distance between form element and label, position of label wrt form element etc). I have to ask that is there any way by which i can extract labels associated with form elements or is there any software available in market?


    Also, in html 4 and 5, there is a "label" tag, but it is not widely used, so i can't use that also.

    Kindly help me.
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Location
    The Pleiades
    Posts
    299
    Rep Power
    8
    You can use jQuerys built in closest() function. That will target the closest element to the form element in the hierarchy. When you submit the form, use the onSubmit form handler and run a JS/jQuery function.

    Regards,

    Nm.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    3
    Rep Power
    0

    label extractor


    Thanks, will give it a try
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Location
    Dallas
    Posts
    3
    Rep Power
    0

    reply


    in blog posting i have a problem in that why we use ancer tab nere a keyword...n what is the procedure for that..

IMN logo majestic logo threadwatch logo seochat tools logo