|
How to access desktop application from html page without using ActiveXObject because using it the programme runs only on IE.
<html>
<head>
<title>Application Executer</title>
<!-- <HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="Application Executer"
BORDER="no"
CAPTION="no"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"
SCROLL="no"
WINDOWSTATE="normal">-->
<script type="text/javascript" language="javascript">
function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("c:/windows/system32/ooVoo.exe", 1, false);
}
</script>
</head>
<body>
<input type="button" value="Run oovoo" onclick="RunFile();"/>
</body>
</html>
|
|
|
|
|
You can't; that is specifically disallowed by browsers for security reasons.
Veni, vidi, abiit domum
|
|
|
|
|
|
You could find out by reading any introductory Java reference, or take a look at the Java Tutorials[^].
Veni, vidi, abiit domum
|
|
|
|
|
Classname objectname=new Classname();
|
|
|
|
|
I have created one swing application,in that my database should be updated by reading sms in modem(inbox) pls help me friends
|
|
|
|
|
|
Hello everyone! Pls i have writing console application with java bcus that is what we were taught with. Now, i decided to write calculator program using d jbuilder visual class. I have designed d interface and when i tried to write to each button, i can't do it. So pls, som1 shud give me d guideline to achieve dis, how to input codes, and d codes required for dis calculator if not all, but at least a sample plsssssss. Tnx in adv.
|
|
|
|
|
1. Use the Java Tutorials[^], and sample articles you can find on the internet.
2. Write proper words rather than this childish txtspk such as pls, som1 shud give me d guideline.
Veni, vidi, abiit domum
|
|
|
|
|
hey guys can u pls tell me which group to join,,,,,,i want to learn java n i choose java as my career platform
"You are the Creator of Yourself"
|
|
|
|
|
|
I would like to know how to count blank lines before methods in java code
|
|
|
|
|
Read each line, if it's blank add 1 to a counter. Continue until all lines have been read.
Veni, vidi, abiit domum
|
|
|
|
|
public class someclass{
public void savedata()
{
Connection con
}
public void usecon()
{
savedata sd = new savedata();
}
}
|
|
|
|
|
Why are you trying to create an object with the name of one of your class's member functions? If con is a member variable of the class then you need to initialise it somewhere and then you just use it by its name in any of the other functions. Maybe you should go back and read up on classes and their members.
Veni, vidi, abiit domum
|
|
|
|
|
public class ConClass
{
public Connection con = null;
public ConClass(DataSource ds){
try{
con = ds.getConnection();
} catch(SqlException ex){
System.out.println(ex.getMessage());
}
}
public Connection getCon(){
return con;
}
}
public class SaveData
{
private Connection con = null;
public void save(ConClass cObj){
if(con == null){
con = cObj.getCon();
}
}
}
|
|
|
|
|
hi
i am doing some file operations using java. i edit my local system files(like txt) by the file operations.
Now i want to edit the same files which is remotely located.
Example scenario:
Suppose the system having the ip:10.187.39.25. the txt file is located in /usr/src/xxx/yyy.txt.
by using the java program from my system i have to edit the yyy.txt file.
is it possible.? please guide me or send some suggestions.
Regards,
cooldharma06
|
|
|
|
|
The file must be shared from the remote system, and your userid needs to have full read/write access to it, in which case you just use the full path name as above.
Veni, vidi, abiit domum
|
|
|
|
|
I think using a socket can meet your demand.
|
|
|
|
|
cooldharma06 wrote: is it possible.?
Basically no.
To do anything on another computer the other computer must be running an application and you must communicate with that application.
For example, per the other response, if you "share" a file\directory then the OS itself (on each machine) is using a mechanism to create the appearance the file is in both places.
Conversely you could log in to another, again via something running on that machine and run an editor on that machine (which how you logged in is a feature that could be provided) and then you could edit it.
|
|
|
|
|
|
|
i googled and i got some library as JSCH library. and i exploring this. anybody have the idea about this one means guide me...
|
|
|
|
|
I have two Radio Buttons >>>Label 'Y' and 'N' the gap between them is what I want to reduce so they are close to each other.
I am using Mig layout.
|
|
|
|
|