Sign in to follow this  
Followers 0
Patil

How can i get the object reference for onclick event

5 posts in this topic

Hi,

I have one web page in that after clicking the image it is opening the another page.

In that page they defined the javascript that is onclick event has used in the code. I am unable get reference to that image. Once i click on the image it is opening the another page. i can use the mouse clicks to open the page but i can not perform other operation in that page using the mouse clicks.

operations like to get a object name and id etc. Because i didn't get any reference to that page......

Thanks...........

Share this post


Link to post
Share on other sites



You need to provide more information for anyone to help. Try providing the web page link or source, and your current script.

Maybe this is what you need?

$o_object.fireEvent ("onclick")

Share this post


Link to post
Share on other sites

You need to provide more information for anyone to help. Try providing the web page link or source, and your current script.

Maybe this is what you need?

$o_object.fireEvent ("onclick")
Hi,

Sorry for incomplete info in the post...

I have one web page in that after clicking the image it is opening the another(Second)page. For opening the page they defined javascript that is onclick event has used in the code. when we click on the image it will call javascript and open the new (Second)page.

I am unable get reference to that image. To do some other operation like to get object variable by name or id. For that i need object reference. ?

How can i get the reference for the second page or how can i do the operation like to get object variable by name or id.

Thanks...........

Share this post


Link to post
Share on other sites

I have a similar (possibly the same - I can't tell) question. How do I get the text/reference that shows up after onclick. For example in my case this is an image and to access the image source I can use "$oImg.src" but when I try "$oImg.onclick" I dont get anything. How do I simply access / read / get the text apearing after this control.

Here is the HTML I am working with:

<IMG title="Open this entry" style="CURSOR: pointer" onclick="jump('e20071001', 'A21*', 'xml')" src="images/plus.png">

Thanks in advance.

-Rob

Share this post


Link to post
Share on other sites

@Patil - I don't have time to look for or create a page that I can base an example off of. You need to provide a link or the source of the page in question before I can help.

@RobMac - Try the following...

_IEImgClick ( $oIE, "images/plus.png")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0