Tuesday, September 15, 2009

CF 8 Application Server Startup Problem

you have an issue when your system is started u have to manually start the application even if the application is set to automatic.So here is the solution..

Open Control Panel; Select Administrative Tools; Right Click on Services and send it to the Desktop as a shortcut.

Now, open Services.

Find the CF 8 Application Server line and Right Click on it, and select Properties.

On the General Tab, make sure the Startup type is Automatic.

On the Recovery Tab, make the following entries:

First failure: Restart the Service

Second Failure: Run a program

Third failure: Take no action (I figure by this point, I have to do it manually!)


Run program

Program: Click the Browse button and find the jrunsvc.exe module.

Mine was under C:\inetpub\wwwroot\runtime\bin\jrunsvc.exe



Command line parameters: "ColdFusion 8 Application Server"



After you Apply the changes, click OK, then you might as well start the service while you are here. On your next boot, it should start up!

Monday, September 14, 2009

No Right Click in a Page

JS CODE:

var BM = 2; // button middle
var BR = 3; // button right
var msg ="MOUSE RIGHT CLICK IS NOT SUPPORTED ON THIS PAGE";
function mouseDown(e)
{
try { if (event.button==BM||event.button==BR) {return false;} }
catch (e) { if (e.which == BR) {return false;} }
}
document.oncontextmenu = function() { alert(msg); return false; }
document.onmousedown = mouseDown;

BUTTONRIGHT.ASPX:

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>No Right Click</title>

<script src="js/JScript.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<table bgcolor="yellow">
<tr>
<td>
<img src="images/Sunset.jpg" alt="sunset" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>

OR BY SIMPLE ADDING ONCONTEXTMENU IN BODY:

<body oncontextmenu="return false;">