Thanks for ur reply.
I have two buttons one is for start server and other for stop server.
To start a server one shell script is there and for stop also.
I want to do that when i click start button it should start my server for that i have to run that shell script.
Using java api Runtime and Process i can run shell script but by clicking a button how to run shell script i do not know.
Can you help me out?????...
User Profile
Collapse
-
how to run a shell script using javascript
Hi,
I have a button. I want to run a shell script when i click that button.
My HTML code is given below:
Can anybody help me out for this proble...Code:<html> <head> </head> <body> <input type = "button" value = "run script" onclick = "some javascript func to run script()"> </body> </html>
-
how to check/uncheck a number of checkboxes by clicking an image
Hi,
I want to check or uncheck a number of checkboxes by clicking an image.
My html code is given below:
[HTML]
<TABLE>
<TR>
<TD>
<div id = "checkdiv" >
<img src = "/images/check.jpg" />
</div>
</TD>
</TR>
<TR>
<TD>... -
how to show server time clock in client
Hi,
I am using struts 2.
I need to have a clock ticking every second in my webpage to show server time. I do not want to refresh my whole page every second and i do not want to use applet.
Now how can i display time in my webpage?
I wrote jsp code like the following:::::
[code=java]
<%
java.util.Date d= new java.util.Date( );
DateFormat df = DateFormat.getD ateInstance();... -
Thanks for your reply.
I know i can delete blank lines by loading file into a string but what i wanted is that if there is any xml parser method through which i can delete.
Any way thanks....Leave a comment:
-
how to delete blank lines from xml file by using java
Hi,
I wanted to delete a line from xml file which i did it. But after deletion of that line there is a blank space. Again if i am adding another line by using java that blank line remains as usual.
My xml file is :::::::
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<config>
<employee id = "1" name = "aa"... -
keep track of auto refresh in jsp page
hi,
I have designed a jsp page. This jsp is able to auto refresh after 5 second.
But i want after 5th times of auto refreshment the table present inside the body should change.
Can anybody help me out.
My code is ::
<%@ page import = "example.*, java.util.*, javax.servlet.h ttp.*" %>
<%! int i=0;
int cnt=0;
%>
[HTML]... -
Hi,
I solved that problem.
Actually for Mozilla code should be like that :::::::
[CODE=html]
<!--[if !IE]>-->
<OBJECT classid="java:m yapplet.class" type="applicati on/x-java-applet;version= 1.2"
height="300" width="600" >
<!--<![endif]-->
<OBJECT classid="clsid: 8AD9C840-044E-11D1-B3E9-00805F499D93"...Leave a comment:
-
Hi,
By seeing my code, can you please tell me how to deploy applet by using <applet> tag....Leave a comment:
-
-
Hi,
Actually i posted the same question in some other thread but till now i did not get back any reply. Thats why i posted question in same thread so that u can at least reply me back.
I set all attributes values in double quotes. Still it is not working.
I followed that link whatever u sent.
In that link also it is written that through object tag applet can be run.
My modified code is :::...Leave a comment:
-
how to run applet in html for mozilla
Hello,
I want to run applet program in FF browser, which is written in a jsp page.
I have written code for that but that is working only in IE.
That is not working in Mozilla.
My code is:::
<%
String servername = request.getServ erName();
String serverurl = "http://"+ serverName +"/cgi-app/";
String...Leave a comment:
-
applet will not work in FF/Moz
HI gits,
I have one more problem.
I have already posted that question but till now i did not get any answer.
My problem IS i am trying to deploy an applet through jsp.
For IE it is working but for mozilla it is not
For IE i have written the following LINES in jsp page:
[HTML]
<OBJECT classid="clsid: 8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH=600 HEIGHT=300 ALIGN=TOP codebase="/javaplugin/j2re1_3_0-win.exe">... -
Hi gits,
Thanks a lot. That one is working perfectly.
What i had done that i called that function at last of my context menu handler.
Now it is working perfectly.
But like other default context menu cant it be closed on right click means after getting context menu if i am doing right click new one is generated and the first one is closed.
I am very happy that it is working.
If you...Leave a comment:
-
Hi gits,
I wrote the following code in my closeMenu func, with
[CODE=javascript]
document.onclic k=function (evt) {
closeMenu(evt);
}
[/CODE]
[CODE=javascript]
function closeMenu(e) {
var id = 'contextMenu';
if (e.target.id != id) {
var node = document.getEle mentById(id);
if (node != null) {
node.style.visi bility = 'hidden';
...Leave a comment:
-
Hi gits,
I am getting "TD" for left click. But for right click i am not getting anything.
Whenever i am doing right click, i think that closeMenu function is not called for which i am not getting any alert message.....Leave a comment:
-
I found one extension which is DOM Inspector 1.1.1.8.
I disabled that one still right click is not working.
Is there any way to know extensions and what is the solutions for my problem.
Regards,
Bibhu...Leave a comment:
-
for only left click i am getting alert message. But when trying to close context menu by using right click i am not getting alert.
And one thing that code is working perfectly, according your last post, in mozilla of XP OS not in linux....Leave a comment:
-
Hi gits,
I am working in linux platform. Now i came to know When i am running my code in mozilla of linux platform it is not working means (close the context menu right click is not working). But when i tried it in mozilla of XP it is working.
can you please tell me why it is like this and what to do.Leave a comment:
-
My whole code i am sending you.
[CODE=javascript] function nrc(e) {
var contextMenu;
document.oncont extmenu = function (evt) {
var srcElement;
if (evt && evt.target) {
srcElement = evt.target;
if (srcElement.nod eType == 3) {
srcElement = srcElement.pare ntNode;
...Leave a comment:
No activity results to display
Show More
Leave a comment: