Posts

Java Networking Home

Image
   Java Networking Home       In this chapter, you will learn how to connect multiple devices to share resources and communication.  Java networking API allows programmers to develop scalable and robust applications. java.net package includes a set of classes and interfaces and other packages. You will learn how to use them to connect devices and share information from remote systems.     Java Tutorial Home     Java Network Programming Introduction Java Network Classes Part1   Java Network Classes Part2 Java Network Datagrams           TOP      

Disable Cut,Copy and Paste using jQuery

Image
 How to prevent cut, copy, paste in text box.       Generally while registering in website, user forced to type manually some data. Ex: confirm email/confirm password. It is because to ensure user entered correct data. This tutorial shows how to stop cut, copy, pasting data in a text field while entering his details such as email/password. The below example shows how to prevent cut, copy, and pasting in confirm email input field. This is implemented using jQuery. With the help of jQuery bind() function, it can be achieved. In the bind() function, you have to specify the cut, copy, and paste events that are fired when a user attempts to cut, copy, or paste in a text field. When it occurs, it shows an alert message to the user.   TOP   index.php <html> <head> < title >Codingzon Tutorials< /title> <head> < script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js" >< /script> < script ...

Count Characters in Textarea with jQuery

Image
 Counting characters in textarea with jQuery     In web applications, when designing forms for receiving data from users, such as product feedback, etc., it is necessary to allow users to input a limited amount of text. It can help to prevent spam and avoid reading unnecessary long messages. It also saves resources. So In this blog, you are going to learn  shows how to limit number of characters and display characters left in textarea while user entering text in the textarea component. It also includes, how to count characters in a text that is entered in a text box using jQuery .   Here is an example.  MOVETOP↑   countcharacters.php <html> <head> <title> Codingzon Tutorials http://localhost/phpuseful/countchars.php# </title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js" ></script> <body bgcolor= "" > <center> <br /><br /><br /><br ...