473,327 Members | 2,074 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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

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
Sep 2 '06 #1
1 2073
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.

"dave" <da**@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
>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

Sep 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: MLH | last post by:
I tried the following code to prevent a checkbox from being updated (going from a value of Null to True, from True to False or from False to True). I was surprised it did not work. Can anyone...
0
by: loga123 | last post by:
Hi All, I am very new to .net and trying to develop a small application. I am using asp .net 2.0. I have a table control (server) in my code that has header row like this. <asp:Table...
1
by: MLH | last post by:
I have a form used as a subform on frmCreateInvoice. It is displayed in datasheet view in the subform control. It displays a few text fields, a boolean field (shown as a checkbox control) and a...
2
by: =?Utf-8?B?UmljaA==?= | last post by:
Is there a cancel argument for cancelling if you want to check or uncheck a checkbox? In the checkChanged event of a checkbox I ask the user if they are sure they want to check/uncheck...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.