stumped...table row click event and then cancel the checkbox click

G

Guest

I have a html table and mutliple rows. On each row i put an onclick event
that opesn a modal window and prompts the user for some information.

I want this modal window to show when the user clicks anything on that row.
I have a few checkboxes in the row cells.

The click event first fires on the checkbox and then the row (opening the
modal window after the checkbox is checked).

How can I force the modal window to open first and cancel the onclick on the
checkbox????

Once the modal window has been opened i set a value on the row so that
future clicks do not open the modal window.

any help would be appreciated
dave
 
D

Duane Phillips

Dave,

I do not know how to cancel a triggered value edit on an unlocked
control except by an after update event or before update event or click
event. Maybe you may achieve what you need by one of the suggestions below:

Can you disable or lock the checkbox?
Can you convert the checkbox to an X in that column?

Failing both of those, you can just let the checkbox fire, and run event
handling code to check the value of the checkbox and revert it to what it
currently is not. If checked then uncheck, else check. Finally revert focus
back to modal window.

Or

Dump the row click and move the window launch to a sub procedure, do the
same as above with the check box (but skip the "revert" piece), then call
the launch window sub.

Either way, you get to the same destination.

~ Duane Phillips.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top