Author |
Message |
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22713 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 10:41 am: |
|
420:
mee code, body click ki pani chestundi, but link meeda click chestunte pani cheyyatam ledu.. <head> <title>Mouse Events Example</title> <script type="text/javascript"> function handleEvent(oEvent) { var oTextbox = document.getElementById("txt1"); oTextbox.value += "\n button down is " + oEvent.button; var arrKeys = []; if (oEvent.ctrlKey) { arrKeys.push("Ctrl"); return false; } oTextbox.value += "\n keys down are " + arrKeys; } </script> </head> <body onclick="handleEvent(event)" > <P>Use your mouse to click and double click on the body</p> <P><textarea id="txt1" rows="15" cols="50"></textarea></p> <a href = 'http://www.google.com'> google </a> </body> </html> Try to click on the goole link Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22711 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 10:36 am: |
|
Esscuseme:window.event.ctrlKey - does not work in all browsers
maadi intranet application - compatable with IE, so no issues. Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|
Esscuseme
Yavvanam Kaatesina Bewarse Username: Esscuseme
Post Number: 1182 Registered: 03-2005 Posted From: 67.161.7.18
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 10:35 am: |
|
Onlymovies:
window.event.ctrlKey - does not work in all browsers you need to check window.event.keyCode = 17 17 is keycode for control and 16 is for shift |
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22710 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 10:32 am: |
|
420:
Thanks annai for the js.. I will try this also.. mean while i got another solution, on each link i called a function, this function has a single line window.location.href = link; so ee statement valla same page lo link open avutundi, tester happy ee solution tho.. mee solution kkooda try chesta.. thanks Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|
420
Bewarse Legend Username: 420
Post Number: 11930 Registered: 12-2006 Posted From: 194.151.209.237
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 9:25 am: |
|
Nalla_baalu:amma denemma penkul annai SQL ni Java ni Dotnet ni anntini madatha pettesthunnad kada
Jack in all Kitchens ,but never on the dinner table
Knit India,do not split India !
|
420
Bewarse Legend Username: 420
Post Number: 11929 Registered: 12-2006 Posted From: 194.151.209.237
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 9:21 am: |
|
Bedar save below as HTML page and try it 2 times. 1) Comment the Return False and watch the behaviour 2) Uncomment the Return False and check it out .. i can capture the events in both IE8 and Mozilla Knit India,do not split India !
|
Nalla_baalu
Pilla Bewarse Username: Nalla_baalu
Post Number: 250 Registered: 06-2011 Posted From: 76.185.40.73
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 9:21 am: |
|
amma denemma penkul annai SQL ni Java ni Dotnet ni anntini madatha pettesthunnad kada |
420
Bewarse Legend Username: 420
Post Number: 11928 Registered: 12-2006 Posted From: 194.151.209.237
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 9:19 am: |
|
<head> <title>Mouse Events Example</title> <script type="text/javascript"> function handleEvent(oEvent) { var oTextbox = document.getElementById("txt1"); oTextbox.value += "\n button down is " + oEvent.button; var arrKeys = []; if (oEvent.ctrlKey) { arrKeys.push("Ctrl"); return false; } oTextbox.value += "\n keys down are " + arrKeys; } </script> </head> <body onclick="handleEvent(event)" > <P>Use your mouse to click and double click on the body</p> <P><textarea id="txt1" rows="15" cols="50"></textarea></p> </body> </html> Knit India,do not split India !
|
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22709 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 9:05 am: |
|
inside onclick alert message is displayed for all clicks, except which i press ctrl key. shift press chesinappudu kooda alert message vastundi. I think ctrl press chesi mouse click cheste, adi onclick event la consider cheyyatam ledu.. Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22708 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 9:02 am: |
|
420:n which TAG have u put the function ?
I have a jsp page which will be included in all other pages. I have defined a js funcation as document.onclick = function(){ alert('inside onclick'); if(window.event.shiftKey) return false; //This is working for shift key if(window.event.ctrlKey) return false; This is not working } Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|
420
Bewarse Legend Username: 420
Post Number: 11927 Registered: 12-2006 Posted From: 194.151.209.237
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 8:55 am: |
|
Onlymovies:ctrl key press cheste onclick function call avvatam ledu..
on which TAG have u put the function ? Knit India,do not split India !
|
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22707 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 8:53 am: |
|
click event lo alert message pettanu. normal click ki alert message display avutundi, but ctrl key press chesi click chestunte ee alert message kooda display avvakunda new window open avutundi.. ctrl key press cheste onclick function call avvatam ledu.. Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|
420
Bewarse Legend Username: 420
Post Number: 11926 Registered: 12-2006 Posted From: 194.151.209.237
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 8:43 am: |
|
Onlymovies:I will try this..
on Click event on the BODY tag .. trap and return false .. Knit India,do not split India !
|
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22706 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 8:39 am: |
|
Esscuseme:
I will try this.. Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22705 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Wednesday, July 06, 2011 - 8:39 am: |
|
Firefox:why did you create a hyperlink, if you dont want new window? or i did not understand
application lo links vunnayi, like ikkada thread open cheyyataniki link vuntundi. thread meeda click chesinappudu by default same window lo open avutundi. ma application lo kooda same page lo open avutundi. But when you use ctrl or shift key pattukuni click cheste, kotha window lo aa link open avutundi. I dont want that. I want all the processing in the same window. Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|
Esscuseme
Yavvanam Kaatesina Bewarse Username: Esscuseme
Post Number: 1181 Registered: 03-2005 Posted From: 67.161.7.18
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, July 05, 2011 - 9:38 pm: |
|
Onlymovies:
if that's the case, why can't you catch event using javascript - for ctrl key and shift key - write a function for this which returns true or false - for click event - write another function for this which returns true or false if both above two functions return true then do nothing. hope this matches your requirement |
Bhavani
Celebrity Bewarse Username: Bhavani
Post Number: 9931 Registered: 02-2005 Posted From: 207.114.139.254
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, July 05, 2011 - 7:19 pm: |
|
Firefox:why did you create a hyperlink, if you dont want new window? or i did not understand
naadi kooda same to same doubt annai...malli adigithe OM baa kodathaademo ani adagale! Sarvesham Swasthir Bhavathu...Sarvesham Ssanthir Bhavathu...Sarvesham Poornam Bhavathu...Sarvesham Manglam Bhavathu!!!
|
Firefox
Kurra Bewarse Username: Firefox
Post Number: 584 Registered: 12-2004 Posted From: 75.99.127.234
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, July 05, 2011 - 5:33 pm: |
|
why did you create a hyperlink, if you dont want new window? or i did not understand |
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22704 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, July 05, 2011 - 4:02 pm: |
|
i dont want open a window on ctrl+ click or shift+click.. mainly i dont want to open 2 window of my application. Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|
Bhavani
Celebrity Bewarse Username: Bhavani
Post Number: 9912 Registered: 02-2005 Posted From: 207.114.139.254
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, July 05, 2011 - 2:24 pm: |
|
i think he wants the session to be opened but with the content from the link clicked, not the same content as the original session.... Sarvesham Swasthir Bhavathu...Sarvesham Ssanthir Bhavathu...Sarvesham Poornam Bhavathu...Sarvesham Manglam Bhavathu!!!
|
Esscuseme
Yavvanam Kaatesina Bewarse Username: Esscuseme
Post Number: 1180 Registered: 03-2005 Posted From: 67.161.7.18
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, July 05, 2011 - 2:20 pm: |
|
so, when control key+link clicked, you don't want new window to open or you want new window to open with session closed. |
Bhavani
Celebrity Bewarse Username: Bhavani
Post Number: 9910 Registered: 02-2005 Posted From: 207.114.139.254
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, July 05, 2011 - 1:44 pm: |
|
bump Sarvesham Swasthir Bhavathu...Sarvesham Ssanthir Bhavathu...Sarvesham Poornam Bhavathu...Sarvesham Manglam Bhavathu!!!
|
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22703 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Tuesday, July 05, 2011 - 7:56 am: |
|
evariki idea leda?.. Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|
Onlymovies
Bewarse Legend Username: Onlymovies
Post Number: 22702 Registered: 01-2009 Posted From: 199.173.226.229
Rating: N/A Votes: 0 (Vote!) | Posted on Friday, July 01, 2011 - 2:48 pm: |
|
ctrl key press chesi edayina link meeda click chestunte, vere window oopen avutundi, with same session. Idi ela avoid cheyyatam? any idea please urgent konchem.. Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
|