473,507 Members | 8,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

shift button

Hi,
I would like to use shift button to select multiple rows in table but there
seems to be problem with it. I have table rows inside the <a> tag so I can
drag them and drop like in windows explorer. I would like to mimic also
explorer style of selecting multiple rows using the shift button. But when i
click on one of my rows using shift button then rows are selected but new
windows is also opened - and I would like to prevent this kind of action. Is
it possible?

regards
Mariusz
Jul 23 '05 #1
1 1552
Ivo
"Mariusz" wrote
I would like to use shift button to select multiple rows in table but there seems to be problem with it. I have table rows inside the <a> tag so I can
drag them and drop like in windows explorer.
<tr> elements are not allowed inside <a> elements in any version of HTML I
know. This means your page does not validate (see http://validator.w3.org/
and run your page through it). This means browsers may interpret your HTML
very differently, leading to unpredictable results and failing scripts.
Also, modern browsers allow script to add dragging behaviour to virtually
any element. No need for <a> tags at all here.
I would like to mimic also
explorer style of selecting multiple rows using the shift button. But when i click on one of my rows using shift button then rows are selected but new
windows is also opened - and I would like to prevent this kind of action. Is it possible?


Sounds like you forgot to return false from the event handler. That is the
usual way to prevent the href being followed when a link is clicked. For
more specific tips, it might help to see the actual code, or an url.
--
Ivo
Jul 23 '05 #2

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

Similar topics

44
4658
by: Carlos Andr?s | last post by:
Hi everybody. I've got a problem. I'd like to avoid opening a new window when you have pressed the shift key and you click in the left button of the mouse. I've tried the next solution, in the...
7
6677
by: Susan Bricker | last post by:
I know that I saw some information concerning the <shift>+<enter> combination use to bypass launching an Access mdb application and enter the Access design workspace. Would someone please direct...
3
2350
by: tdmailbox | last post by:
I set up my code to disable the shift bypass however for certain users I want to allow them through a button no a form to be able open up the list of tablies and queries. Is there a vb command...
3
14125
by: ngreplies | last post by:
I have a need for an extra facility to be available when the user presses the SHIFT key whilst clicking on either a Button Control or a textbox. I am using both VB6 and VB.NET2002. Could anyone...
7
7185
by: Csaba Gabor | last post by:
I'd like to detect the shift key when a button is "clicked" in Firefox/Mozilla. If the button is clicked with the mouse, no problem. However, if the onclick event is keyboard originated, then my...
3
11715
by: CanuckChuck | last post by:
I have a code for enabling a command button to password protect the enabling/disabling of the Shift bypass. For some reason though I keep recieving a syntax error when I try to use it. I copied the...
3
11609
by: Pietro | last post by:
Hi all, First of all I'd like to thank you very very much ,as finally after many years of searching,I could find a code to disable/enable the shift key,but actually i cannot use the code as I'm...
9
3532
by: dale5804 | last post by:
poss a silly question, but basically i have a database where its properties mean when it is opened (enter / double click) the actual database, and options (file/edit/...etc) are hidden and only the...
4
1907
hsn
by: hsn | last post by:
hello everyone. i want to add to a string the windows ctrl button and the shift button. what i mean is, i want to store a string which has, lets say "cmd", i want to add to this string ctrl and...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.