Jump to content

karthiseenu

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by karthiseenu

  1. Hai friends, I have to increse the page loading time out for internet explorer coz i am having a huge process which may take more than one hour to finish. Now it says page cannot be found after some time but the process is running in back ground. Please help me to solve this problem

  2. You want to change the options text/value?document.getElementById('cars').options[0].text="ford";cars is the name of the select box and 0 is the first item.to change the values as well as text just use .value="ford" :)

    No it should be like a text box i wants that type of editing
  3. Thanku for ur reply. I am working in Java Server Faces in that every event like clicking a button post some value to the same page. I have to do some operation when closing that window. If there is any way to disable the window close button it is also helpfull for me.

  4. Hai the above solution is not working while i am post to the same page it is important because i am working with jsf.I try the following accordind to dan replyParent

    <html>	<head>		<script>			var child;			function childOpen(){				child = window.open("ClosingChild.html");			}			function chkChild(){				alert(child.closed);			}		</script>	</head>	<body>		<input type="button" onClick="childOpen();" value="Click">	</body></html>

    Child

    <html>	<head>		<script>			var flag=0;			function onClosing(){				if(flag == 1)				{					alert("Refreshed");						flag = 0;				}				else				{					alert("Closed");					var parent = window.opener;					alert(parent);					parent.chkChild();				}							}						function onPreClosing(){				flag = 1;			}		</script>	</head>	<body onDeactivate="onPreClosing()" onUnload="onClosing();">		<a onClick="window.navigate('ClosingChild.html?name=karthi');" style="cursor:hand">Same Page</a>	</body></html>

  5. Hai Dan i did that with out any parent window

    This code works only in Internet Explore but not in Netscape
    <html>	<head>  <script>  	var flag=0;  	function onClosing(){    if(flag == 1)    {    	alert("Refreshed");	    	flag = 0;    }    else    {    	alert("Closed");    }  	}  	  	function onPreClosing(){    flag = 1;  	}  </script>	</head>	<body onDeactivate="onPreClosing()" onUnload="onClosing();">  	</body></html>

  6. Hai friends, I want to capture the window closing event. I tried the onUnload event but it also fired on document refresh. I wants to capture only window closing. can any one lead me to do this :)

×
×
  • Create New...