Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Onclick and OndblClick on same event

Status
Not open for further replies.

Ethiraj

Programmer
May 16, 2003
4
IN
Hi,

Can I have both onclick and ondblclick functions to a same event?

1.I have created a dynamic rows in a table using JSP. I want to write both onclick and ondblclick both to the row in the table. But only the onclick function is firing even I dblclick the row. Is there is anyway to solve it if so help me

2.In the table which I am creating dynamic rows I want my table header to be static while all the other rows in the table can scroll. Is this can be achieved? If yes how?

Give ur replies with examples Pls let me know whether it can be achieved or not...

regards

Ethiraj


 
why do u want both the events in the same field?

the dblclick event does not fire because the onclick event will be fired for both the clicks.

Known is handfull, Unknown is worldfull
 
Thanks for replying..
The reason I want to have both the function is

In my project, If i single click the row it should be able to have a complete view of the cloumns in the row and if I double click the row I should able to edit the columns...

Actually I am showing only few columns in the row that too with only limited characters..
I am able to do it with a single click for both edit and view but I want to do it seperately

Is there is anyother way to achieve this????

 
well now this is out of mys scope, but surely u will get a better response in the javascript forum.

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top