10
Gives you control to perform actions when the control key and the mouse button is clicked in the same time. Something similar to selecting elements in Windows with ctrl+click.
Just change the event.ctrlKey to event.shiftKey to make it shift+click. If you don't get it don't worry the snippet contains the demo for shift+click too.
You may need to change the event.which though 1 = left click, 2 = middle click, 3 = right click(at least in firefox 1.5.0.5)
Just change the event.ctrlKey to event.shiftKey to make it shift+click. If you don't get it don't worry the snippet contains the demo for shift+click too.
You may need to change the event.which though 1 = left click, 2 = middle click, 3 = right click(at least in firefox 1.5.0.5)
5
MovingParts
so you executed a query that took .5 second to execute and you want to bind that to a windows control. next you decide that you will need to have two controls bound to the same datasource. not a problem, except when you do this:
control1.datasource = datatable
control2.datasource = datatable
you notice that each control mirrors the other and you cannot pick two seperate and distinct values.
one way to solve this is to create two datatables and execute the query twice. unfortunately this now doubles your query time. bad idea.
here is the elegant solution...
control1.datasource = datatable
control2.datasource = datatable
you notice that each control mirrors the other and you cannot pick two seperate and distinct values.
one way to solve this is to create two datatables and execute the query twice. unfortunately this now doubles your query time. bad idea.
here is the elegant solution...









