Question about ArcMedia JavaScript Source Code 3000 Pro (gar448) for PC

1 Answer

How to block ctrl+c and ctrl+v in opera:java code

We are using two text boxes where we insert email id
email id -----------
email id -----------
but we dont want to copy -pest here.
tell me the code for java line to block this options ''Ctrl+C'', andd ''Ctrl+V'' used to copy - pest purpose

Posted by on

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

    President:

    An expert whose answer got voted for 500 times.

  • Master
  • 2,110 Answers

Function noCTRL(e)
{
var code = (document.all) ? event.keyCode:e.which;
var ctrl = (document.all) ? event.ctrlKey:e.modifiers & Event.CONTROL_MASK;
var msg = "Sorry, this functionality is disabled.";
if (document.all)
{
if (ctrl && code==86) //CTRL+V
{
alert(msg);
window.event.returnValue = false;
}
else if (ctrl && code==67) //CTRL+C (Copy)
{
alert(msg);
window.event.returnValue = false;
}
}
else {
if (ctrl==2) //CTRL key
{
alert(msg);
return false;
}
}
}

Posted on Feb 06, 2009

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

Please write a java program to print my full name dhanalakshmi in a single line.


place the below code in a text file dhana.txt and compile it.

class dhana {
public static void main(String[] args) {
System.out.println("dhanalakshmi"); // Display the string.
}
}

regards
harit

Jul 07, 2010 | Sun Java Programming Language (cdj-275)

3 Answers

Java source code for hospital management system


Sir,
I need a project of Hospital management system. Since client needs project in very sort time so plz send same type of project at my email id that can help me out in database design or full code in a professional way .. Please be in touch with me.
regards Varun kumar
email : er.varunsoft@gmail.com

Apr 18, 2009 | Compilers & Programming Tools

1 Answer

Can i get the code to convert Text to XML using JSp


That depends upon precisely what you want to do, but generally yes, it's a fairly straightforward process to convert text to XML using here is a reference site touching on the topic you requested:
http://www.devsphere.com/xml/taglib/process/reference.html and according to this site in reference to their XML Java Tag Library they offer as a free download, "XJTL provides several XML parsing actions (<p:parse>, <p:element>, <p:start>, <p:end>, <p:data> and <o:pi>) that let you build JSP pages that process XML documents in the most natural and easiest way possible." As my Java professor used to say, "Java is not merely a programming language, it's a way of representing the entire world." That is akin to XML, which is an acronym for eXtensible Markup Language. The extensibility itself is why I answered your question cautiously above.

Apr 11, 2009 | Sun Java Programming Language (cdj-275)

1 Answer

I have a hand written documents which is scanned and stored in a pdf format. i want to write coding to read this pdf file and convert the scanned text into normal text. is it possible using java. please...


No and here's why... Java is a programming language; its purpose is to be used to create programs that do useful things, but it is not equipped to do the complex analyses required to convert images to text. What you need is an OCR "image to text" conversion software application. Java is not such an application; it is a programming language meant to be used by programmers in a "platform independent context" (usually the World Wide Web). I suggest searching Google for what you need using these keyword strings: OCR image-to-text software. OCR stands for Optical Character Recognition.

Note that performing OCR on handwritten text is particularly difficult because it is so non-uniform (irregular). Here is a link that may be helpful in your quest for what is on its face at least by the way you asked, a very difficult process: http://www.softpedia.com/get/Office-tools/Other-Office-Tools/OCR-Image-to-Text-Conversion-Tool.shtml.

As one of my best programming professors (who taught me Java) used to say, "Yes, anything is possible in creating a computer program, but only if you have enough what? Skills, money and time to get the job done! Don't forget: time is money, so you know, don't bite off more than you can chew."

Apr 11, 2009 | Sun Java Programming Language (cdj-275)

1 Answer

Table creation via textfields using swings


import java.lang.Object;
import javax.swing.table.DefaultTableModel;


public class tabletest extends javax.swing.JFrame {
String[][] row = null;
String[] title=new String[3];
private int i;


/** Creates new form tabletest */
public tabletest() {
initComponents();
setTitle("table test");
setVisible(true);
System.out.print("NO Database Needed");
title[0]="Name";
title[1]="Desig";
title[2]="id";
}


/*
" In middle of this two source one generated code will be there that will be done by dragging ur fields to ur frame. THIS IS FOR netbeans IDE "
*/

private void b1ActionPerformed(java.awt.event.ActionEvent evt) {
row=new String[4][3];
// TODO add your handling code here:

String s1=t1.getText();
System.out.println(" event 1");
String s2=t2.getText();
System.out.println(" event 2");
int k=Integer.parseInt(t3.getText());
String s3=""+k;
System.out.println(" event 3");
try{
// for(int i=0;i<=2;i++)
row[i][0]=s1;
row[i][1]=s2;
row[i][2]=s3;
i++;

}catch(Exception e){
e.printStackTrace();

}
table.setModel(new DefaultTableModel(row,title));
}

private void b2ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:

t1.setText("");
t2.setText("");
t3.setText("");

}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new tabletest().setVisible(true);
}
});
}

// Variables declaration - do not modify
private javax.swing.JButton b1;
private javax.swing.JButton b2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JPanel jPanel1;
private javax.swing.JLabel l1;
private javax.swing.JLabel l2;
private javax.swing.JLabel l3;
private javax.swing.JPanel p2;
private javax.swing.JScrollPane scp1;
private javax.swing.JTextField t1;
private javax.swing.JTextField t2;
private javax.swing.JTextField t3;
private javax.swing.JTable table;
// End of variables declaration

}

Mar 13, 2009 | Compilers & Programming Tools

1 Answer

Mysql database tables+find new inserted or update row using java


After you add the new record into table A, you can use the LAST_INSERT_ID() function to retrieve the value of the auto_increment PK field. Look here for more information on this function: http://dev.mysql.com/doc/refman/5.0/en/information-functions.html

Mar 02, 2009 | Sun Java Programming Language (cdj-275)

1 Answer

MySQL Auto Increase


Try this -


CREATE TABLE users (
id MEDIUMINT NOT NULL AUTO_INCREMENT,
login TEXT NOT NULL,
password TEXT NOT NULL,
PRIMARY KEY( id )
);

INSERT INTO users VALUES ( null, 'bob', 'mypassword' );
INSERT INTO users VALUES ( null, 'bill', 'pass' );
INSERT INTO users VALUES ( null, 'sean', '1234' );

Aug 04, 2008 | Sun MySQL

Not finding what you are looking for?
ArcMedia JavaScript Source Code 3000 Pro (gar448) for PC Logo

Related Topics:

864 people viewed this question

Ask a Question

Usually answered in minutes!

Top ArcMedia Compilers & Programming Tools Experts

Robin Hill
Robin Hill

Level 3 Expert

1251 Answers

Michael Thomas
Michael Thomas

Level 3 Expert

3051 Answers

Mike

Level 3 Expert

4331 Answers

Are you an ArcMedia Compiler and Programming Tool Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...