Navigation

12/05/2011

IE warning message

Using Javascript to show warning only in Internet Explorer Browser:



<script language="javascript">
function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}
function checkVersion()
{
  var msg = "<p>Internet Explorer Users:<br> You will get a popup warning message (view content that was delivered securely).  You can <a href='http://blogs.msdn.com/b/askie/archive/2009/05/14/mixed-content-and-internet-explorer-8-0.aspx' target='_blank'>change IE settings</a> to avoid this warning, or use Firefox or Chrome instead.</p><p>&nbsp;</p>";
  var ver = getInternetExplorerVersion();

  if ( ver > -1 )
  {
    if ( ver >= 8.0 )
     
  document.write( msg );
  }

}

checkVersion();       


function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
var rv = -1; // Return value assumes failure.
if (navigator.appName == 'Microsoft Internet Explorer')
{
var ua = navigator.userAgent;
var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
if (re.exec(ua) != null)
rv = parseFloat( RegExp.$1 );
}
return rv;
}
function checkVersion()
{
var msg = "
Internet Explorer Users: You will get a popup warning message (view content that was delivered securely).  You can change IE settings to avoid this warning, or use Firefox or Chrome instead.

";
var ver = getInternetExplorerVersion();

if ( ver > -1 )
{
if ( ver >= 8.0 )

document.write( msg );
}

}

checkVersion();       

</script>

11/07/2011

Using Putty program to tunnel to Millennium server

1.  For each Millennium port (2000, 4600, 1031-1035, 80, etc.), I created a forwarding port (in Putty under "Connection" > "SSH" > "Tunnel").  I did this by entering the port number in the "Source port" area and the server's IP address and port for the "Destination".  You can see this in the attached screenshot. 

2.  Then I opened a Putty SSH session to the server.

3.  Then I opened Millennium by using the following command in the Windows "Run" box:

"C:\Program Files\Millennium\iiirunner.exe" ip=localhost

Updating the IP address listed in the iiirunner.lax file would also have the same effect.  You could also just modify your Millennium shortcut by adding "ip=localhost" (no quotes) to the end of the shortcut's target.

Some other things to keep in mind ....

1.  You have to have Putty open while Millennium is open.
2.  You might also need to tunnel additional ports for your specific situation.
3.  Sometimes a specific Millennium application wouldn't open the first time I'd select it from the control bar; the black iii runner.exe box would list an error message.  However, usually, everything would work fine if I selected the module again from the control bar.  May be something flakey on my end ... but I thought I would mention it just in case.



Matt Polcyn email 2008