Topics Topics Help/Instructions Help Edit Profile Profile Member List Register Paatha Gnyapakaalu - Archives from Old DB  
Search New Posts 1 | 2 | 8 Hours Search New Posts 1 | 3 | 7 Days Search Search Tree View Tree View Latest tweets Live Tweets
Bewarse Talk Discussion Board * Archives - 2011 * Cine Talk - Reviews, Gossips, Insider Info etc. * Archive through July 11, 2011 * Javascript experts < Previous Next >

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this 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:    Edit Post Delete Post View Post/Check IP


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..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


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..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


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
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


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..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


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

CLIPART--bawling
Knit India,do not split India !
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

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 ..


MOVIEART--bemmi.dance1

i can capture the events in both IE8 and Mozilla
Knit India,do not split India !
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

amma denemma penkul annai SQL ni Java ni Dotnet ni anntini madatha pettesthunnad kada MOVIEART--gutaka
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

<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 !
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

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..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


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..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


Onlymovies:

ctrl key press cheste onclick function call avvatam ledu..




on which TAG have u put the function ?
Knit India,do not split India !
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

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..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


Onlymovies:

I will try this..




on Click event on the BODY tag .. trap and return false ..
Knit India,do not split India !
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


Esscuseme:


I will try this..
Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


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..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


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
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP


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!!!
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

why did you create a hyperlink, if you dont want new window?
or i did not understand
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

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..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

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!!!
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

so, when control key+link clicked, you don't want new window to open or you want new window to open with session closed.
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

bump
Sarvesham Swasthir Bhavathu...Sarvesham Ssanthir Bhavathu...Sarvesham Poornam Bhavathu...Sarvesham Manglam Bhavathu!!!
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

evariki idea leda?..
Prati malupunu gelichina gurutuga.. Mailu rallapai santakaalu cheyyanaa..
Top of pagePrevious messageNext messageBottom of page Link to this message

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:    Edit Post Delete Post View Post/Check IP

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..

Topics | Last Hour | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration