Re: performing onclick

"Jessop, Isaac R" <[email protected]> Mon, 17 Oct 2011 22:03:38 +0100
Newsgroups gmane.comp.parsers.htmlparser.user
Message-ID <7B2E427C5A208B4FAC822A585419EF6121ECA49EAA@GVW0676EXC.americas.hpqcorp.net>
The on click event triggers JavaScript
In this case a function called redirectUrl
and passes it a reference to the html element in this
case the image tag.

My guess ( and it is only a guess as I don't have the source of you're the page you are parsing)
Is that this function handles all the image clicks on the page and uses the reference passed to determine what url to redirect to

In order for you  " perform the on click " you would need to parse out the
JavaScript function and determine what action it would take ( url redirect) when this image is clicked then do the redirect.

Isaac Jessop


From: tubin gen [mailto:[email protected]]
Sent: Monday, October 17, 2011 1:51 PM
To: [email protected]
Subject: [Htmlparser-user] performing onclick

I was  using html parser to parse some html ,Now My html has an image
here is the html

<img src="Repository/Movie%20Section/Telugu%20Movies/Gundamma%20G-Gundamma%20Gari%20Krishnulu%20VCD_T.jpg" id="Movies_dlMovies_ctl14_imgMovieImage" class="imgStyle" onclick="javascript:return redirectUrl(this);" alt="Gundamma Gari Krishnulu">


this img tag has onClick function , so when I clikc the image the new page whose url is not in the html but the function generates it  is opened , using htmlparser can I perform onclick on this image ?

If not what library should I use to perform onclick?

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct

_______________________________________________
Htmlparser-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlparser-user