Rakesh Kumar

Ranch Hand
+ Follow
since May 30, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rakesh Kumar

Dear friends ,
anybody knows how we an set and get htmlframe width or height please update me ASAP.

rakesh
dear friends,
I have to resize an html frame vertically only , but not horizontally, how can i do that ?


Thanks
rakesh
Dear friends,
I have a javascript variable and I want to convert it to php variable.Anybody have any idea please share ASAP


Thanks
rakesh
12 years ago
PHP
dear friends,
i have 3 div s inside a main div like rows in a table.
I have to resize the table by dragging by mouse , if one div expands other get contracted. This should be done as in frames.
If you guys have any idea please share with me ASAP
Thanks
rak
dear friends,
I am doing a php application and some times i am getting errro likr "Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /mnt/CPSW/tmp/emts/web/2-STA-ALM-MON.php on line 16".The php file is given below.The mentioned line is "echo '<script type = "text/javascript" src= "Stylesheet/disable_F5.js" > </script>
" . What may be the parsing error , if ypu guys have anu idea please share with me ASAP.



<?php
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Purpose: This file is to load the monitoring applet
// -----------------------------------------------------------------------------
?>
<?php
echo '<script type = "text/javascript" src= "Stylesheet/disable_F5.js" > </script>
<script type = "text/javascript">
/*Called from alarm applet to pass poped up window sattsu*/
function getInfo(){
document.alarmApp.mngAppdataStartSocket(top.almPoppedUp);
}
/**
* This function starts the alarm pop up window
*/
function popOutAlmWin()
{
top.MainDataFrame.location.href="mainDataFrame.php";
var width = 900;
var height = 450;
var wleft = (screen.width - width) / 2;
var wheight = (screen.height - height) /2;

top.almWin = top.SectorFrame.window.open(top.contextId+"-STA-ALM-MON.html?CR=true&MJ=true&MN=true&WA=true&RefreshDuration=600","almWin","width="+width+",height="+height+","+"left="+wleft+",top="+wheight+","+"location=no menubar=no"+"status=no,toolbar=no,scrollbars=no,resizable=yes");
top.isAlarmMonRunning =0;
top.almPoppedUp = 1;
top.almWin.focus();
top.almWin.moveTo(wleft,wheight);
top.almWin.focus();
}
/**
* This function resets the alarm pop up
*/
function popUpClosed()
{

window.opener.top.almPoppedUp = 0;
top.isAlarmMonRunning=0;
//alert("popUpClosed almPoppedUp ="+window.opener.top.almPoppedUp +" isAlarmMonRunning="+top.isAlarmMonRunning)
}



/**
* This function resises teh applet
*/
function resize()
{
var w_newWidth,w_newHeight;
var w_maxWidth=1600, w_maxHeight=1200;

if (navigator.appName.indexOf("Microsoft") != -1)
{
w_newWidth=document.body.clientWidth-45;
w_newHeight=document.body.clientHeight-60 ;
}
else
{
var netscapeScrollWidth=15;
w_newWidth=window.innerWidth-netscapeScrollWidth;
w_newHeight=window.innerHeight-netscapeScrollWidth;
}

if (w_newWidth>w_maxWidth)
w_newWidth=w_maxWidth;

if (w_newHeight>w_maxHeight)
w_newHeight=w_maxHeight;

// alert("document.alarmApp = "+document.alarmApp)
document.alarmApp.setSize(w_newWidth,w_newHeight);
window.scroll(0,0);

}

</script>
<title> Alarm Monitoring </title>

<body onUnLoad="popUpClosed();" onLoad="" onResize="resize();" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" >
<applet name="alarmApp"archive="./Applet/alarm/alarm.jar" code ="AlarmApplet.class" width="100%" height="100%">
<param name="Window" value="no"/>
<param name="CLIENTID" value="2060563439">
<param name="IpAddress" value="107.108.204.159">
<param name="PortNo" value="65472">
<param name="CR" value="1">
<param name="MJ" value="1">
<param name="MN" value="1">
<param name="WA" value="1">
<param name="DF" value=>
<param name="AlarmNumber" value="4">
<param name="ContextId" value="2"></applet>
</body>';
?>


Thnaks
Rakesh
12 years ago
PHP
Dear friends,
I am developing an application in which an applet is loaded on a webpage and has a button on it.on click of the button the applet comes as a window. and the previous location is loaded with "mainDataFrame.php".The code is as follows



top.MainDataFrame.location.href="mainDataFrame.php";
var width = 900;
var height = 450;
var wleft = (screen.width - width) / 2;
var wheight = (screen.height - height) /2;
top.almWin = top.SectorFrame.window.open(top.contextId+"-STA-ALM-MON.html?CR=true&MJ=true&MN=true&WA=true&RefreshDuration=600","almWin","width="+width+",height="+height+","+"left="+wleft+",top="+wheight+","+"location=no menubar=no"+"status=no,toolbar=no,scrollbars=no,resizable=yes");
top.isAlarmMonRunning =0;
top.almPoppedUp = 1;
almWin.focus();
top.almWin.moveTo(wleft,wheight);



The issue is eventhough i am calling " almWin.focus();
" the focis is not coming to the openend window. I think the focus is going to "top.MainDataFrame.location.href="mainDataFrame.php";
" because if i conmment "top.MainDataFrame.location.href="mainDataFrame.php";
" it is working fine ie the window gets focus.

The frame is resizng it is fine.But the problem is , the content is not resizing as per the frame resize.Please help on this if you have any idea on this.
Dear friends,
We hould hav a javascript function if we pass a height and call that function it should chnage the iframe size with its content.
if anybody have any idea on how we can change teh height of 2 iframes as per the height given using javavscript please share with me.

Thank you
rak
Cod eis as below


parentframe.location.href="dummy.html"
var win = window.open("applethtml")
win.focus()


Actually focus is going to parentframe from wheer applet popped out.Eventhough
I am calling " win.focus()" it is not focussong to applet window.

Please share if you guys have any idea on this how we can bvring the focus on window only.
12 years ago
Dear friends,
I am opening a window which loads an applet and after that i am caliing like below.

var win= window.open()
win.focus();
But the focus is not coming on it.

if you have any idea please share it.
Thanks
Rak
12 years ago
Actually what i want is project the applet frame without disturbing the socket connection in it. Dear friends if you have any idea pleaseshare ASAP.

Thanks in advance
Rakesh
12 years ago
Dear friends,

I tried to implement resising on drag of the applet window by user using below coding .but it is not resizing but ad=fter refresh only it is drawing properly as per the

public void setSize(int width, int height) {
super.setSize(width,height);

validate();
}

I am able to pass teh width and height into applet as pert he resize. But "setSise()" method is not working properly.

Friends please share your idea and thought about it.It is little urgent.

Thanks in advance


Thank
rakesh
12 years ago
dear friends,
I am doing one GUI project which loads an applet and opens a socket connection to server which a c++ module and apache webserver is in middle between webbrowser and the webserver in c++.
Problem is like this, i will open an applet in the sceren and opens a socket connection and receives events and show in applet as table.And there is one 'popout' button to make the applet opens as a window. and continue the existing socket connection and show the received events. But when i tried to open in a new window, and I am able to provide the ip address and port for opening a socket connection it shows exception as "connection refused."


Actually I know how to open in a new window.it is working.Any of you have any idea , how we can project and applet without breaking existing socket connection and opens in a window? Please share your idea and thought about this ASAP.

Thanks in advance
rakesh
12 years ago
Dear friends
how we can create a tetx file in server initiated from client sid ecode by javascript or php.

Thnaks
Rakesh
T sand I hv to do it in apache server.
12 years ago
PHP