• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

to enable the button by pasting the value in text field by mouse right click paste

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Initially when there is no text in textbox, the button appears disabled.
if a description is pasted using mouse click( mouse right click->paste), the OK button does not get enabled. However if Ctrl+V is used, it works fine.
Please help me .
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Umesh,
can you please explain your situation in more details to me? like - which JavaScript eventhandler you are using (like onBlur event or something).
actually, i face some similar problems on various browsers for this mouse activity. what happens to me is- i want to have a field disabled and the data can be entered into it by a popup. now, to make it work fine on all the browsers i can't use DISABLED property for the HTML text element so what i do is onFocus='this.blur();'. the problem is 'tabbing' thing makes me look dumb because when i press tab then it goes into the field and we can type in !!! which i don't want. it works fine if i try to put mouse on the text field (it doesn't allow me enter anything)....
anyways thats not a problem to post here though..
regards
maulin
 
Umesh Nagpal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx
maulin,
I hv one text field and ok button in the form , If the field is empty , the button is disabled.
If you paste something by Ctrl+v it works fine(onKeyUp event) .But if I paste thru right click of mouse, then button doesn't get enable.
I hope now u can understand the situation, Please help me.
umesh.

Originally posted by Maulin Vasavada:
hi Umesh,
can you please explain your situation in more details to me? like - which JavaScript eventhandler you are using (like onBlur event or something).
actually, i face some similar problems on various browsers for this mouse activity. what happens to me is- i want to have a field disabled and the data can be entered into it by a popup. now, to make it work fine on all the browsers i can't use DISABLED property for the HTML text element so what i do is onFocus='this.blur();'. the problem is 'tabbing' thing makes me look dumb because when i press tab then it goes into the field and we can type in !!! which i don't want. it works fine if i try to put mouse on the text field (it doesn't allow me enter anything)....
anyways thats not a problem to post here though..
regards
maulin

 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
on key up only looks for key pushes....that is why it does not detect the mouse
try using onchange() instead....
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yeah..i agree with Eric...
and also older versions of Netscape doesn't support onKeyUp events i guess (well i haven't tried those on Netscape's newer versions as well like NN6.0>
regards
maulin
 
It's exactly the same and completely different as this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic