<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[ABXZone Computer  Forums - Programming & Webmastering]]></title>
		<link>http://www.abxzone.com/forums/</link>
		<description>Java? BASIC? C++? If you speak another language this forum is for you.</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 23:17:01 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>1</ttl>
		<image>
			<url>http://www.abxzone.com/forums/images/element/misc/rss.jpg</url>
			<title><![CDATA[ABXZone Computer  Forums - Programming & Webmastering]]></title>
			<link>http://www.abxzone.com/forums/</link>
		</image>
		<item>
			<title>Achieve interoperability between C# and Java with CSharpJavaMerger</title>
			<link>http://www.abxzone.com/forums/f177/achieve-interoperability-between-c-java-csharpjavamerger-119574.html</link>
			<pubDate>Thu, 29 Oct 2009 06:47:27 GMT</pubDate>
			<description><![CDATA[CSharpJavaMerger is an open source tool. It provides common interfaces of C# and Java and enables you to write one set of code which can be used both by C# and Java.

Below is a method that can be used in both of C# and Java. In the sample, CString is a class defined in the CSharpJavaMerger Framework. 


Code:
---------
public void AddTwoValues()
{
    try
    {
        CString strValue1 = m_mainForm.GetFirstTextBoxValue();
        CString strValue2 = m_mainForm.GetSecondTextBoxValue();

        int iValue1 = strValue1.ToInteger();
        int iValue2 = strValue2.ToInteger();
        int iResult = iValue1 + iValue2;
        CString strShowResult = CString.ValueOf(iResult);
        m_mainForm.ShowResult(strShowResult);
        CString strSaveResult = new CString(strValue1.GetValue() + " + " + strValue2.GetValue() + " = " + strShowResult.GetValue() + "\n");
        m_mainForm.SaveResult(strSaveResult);
    }
    catch (Exception ee)
    {
        m_mainForm.SaveResult(new CString(ee.Message + "\n"));
        m_mainForm.ShowResult(new CString("Error"));
    }
}
---------
More info on CSharpJavaMerger can be found at kevingao.net]]></description>
			<content:encoded><![CDATA[<div>CSharpJavaMerger is an open source tool. It provides common interfaces of C# and Java and enables you to write one set of code which can be used both by C# and Java.<br />
<br />
Below is a method that can be used in both of C# and Java. In the sample, CString is a class defined in the CSharpJavaMerger Framework. <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">public void AddTwoValues()<br />
{<br />
&nbsp; &nbsp; try<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; CString strValue1 = m_mainForm.GetFirstTextBoxValue();<br />
&nbsp; &nbsp; &nbsp; &nbsp; CString strValue2 = m_mainForm.GetSecondTextBoxValue();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; int iValue1 = strValue1.ToInteger();<br />
&nbsp; &nbsp; &nbsp; &nbsp; int iValue2 = strValue2.ToInteger();<br />
&nbsp; &nbsp; &nbsp; &nbsp; int iResult = iValue1 + iValue2;<br />
&nbsp; &nbsp; &nbsp; &nbsp; CString strShowResult = CString.ValueOf(iResult);<br />
&nbsp; &nbsp; &nbsp; &nbsp; m_mainForm.ShowResult(strShowResult);<br />
&nbsp; &nbsp; &nbsp; &nbsp; CString strSaveResult = new CString(strValue1.GetValue() + &quot; + &quot; + strValue2.GetValue() + &quot; = &quot; + strShowResult.GetValue() + &quot;\n&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; m_mainForm.SaveResult(strSaveResult);<br />
&nbsp; &nbsp; }<br />
&nbsp; &nbsp; catch (Exception ee)<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; m_mainForm.SaveResult(new CString(ee.Message + &quot;\n&quot;));<br />
&nbsp; &nbsp; &nbsp; &nbsp; m_mainForm.ShowResult(new CString(&quot;Error&quot;));<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div>More info on CSharpJavaMerger can be found at kevingao.net</div>

]]></content:encoded>
			<category domain="http://www.abxzone.com/forums/f177/"><![CDATA[Programming & Webmastering]]></category>
			<dc:creator>sindy55</dc:creator>
			<guid isPermaLink="true">http://www.abxzone.com/forums/f177/achieve-interoperability-between-c-java-csharpjavamerger-119574.html</guid>
		</item>
		<item>
			<title>Helpful JavaScripts to develop website</title>
			<link>http://www.abxzone.com/forums/f177/helpful-javascripts-develop-website-115581.html</link>
			<pubDate>Wed, 14 Oct 2009 03:20:55 GMT</pubDate>
			<description><![CDATA[*JavaScript Countdown Timer*

This JavaScript displays a countdown timer and alerts the user when the timer reaches zero. It then redirects to another Web ... detail

[IMG]hxxp ://w w w.javascriptbank. com/javascript.images/time/countdown-timer.jpg[/IMG]
Demo: JavaScript Countdown Timer


_How to setup_

*Step 1*: Place CSS below in your HEAD section
CSS

Code:
---------
<style type="text/css">
#txt {
  border:none;
  font-family:verdana;
  font-size:16pt;
  font-weight:bold;
  border-right-color:#FFFFFF
}

</style>
	<!--
    	This script downloaded from w w w.JavaScriptBank. com
    	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
	-->
---------
*Step 2*: Place JavaScript below in your HEAD section
JavaScript

Code:
---------
<script language="javascript">
// Created by: Neill Broderick :: hxxp ://w w w.bespoke-software-solutions.co.uk/downloads/downjs.php

var mins
var secs;

function cd() {
 	mins = 1 * m("10"); // change minutes here
 	secs = 0 + s(":01"); // change seconds here (always add an additional second to your total)
 	redo();
}

function m(obj) {
 	for(var i = 0; i < obj.length; i++) {
  		if(obj.substring(i, i + 1) == ":")
  		break;
 	}
 	return(obj.substring(0, i));
}

function s(obj) {
 	for(var i = 0; i < obj.length; i++) {
  		if(obj.substring(i, i + 1) == ":")
  		break;
 	}
 	return(obj.substring(i + 1, obj.length));
}

function dis(mins,secs) {
 	var disp;
 	if(mins <= 9) {
  		disp = " 0";
 	} else {
  		disp = " ";
 	}
 	disp += mins + ":";
 	if(secs <= 9) {
  		disp += "0" + secs;
 	} else {
  		disp += secs;
 	}
 	return(disp);
}

function redo() {
 	secs--;
 	if(secs == -1) {
  		secs = 59;
  		mins--;
 	}
 	document.cd.disp.value = dis(mins,secs); // setup additional displays here.
 	if((mins == 0) && (secs == 0)) {
  		window.alert("Time is up. Press OK to continue."); // change timeout message as required
  		// window.location = "yourpage.htm" // redirects to specified page once timer ends and ok button is pressed
 	} else {
 		cd = setTimeout("redo()",1000);
 	}
}

function init() {
  cd();
}
window.onload = init;
</script>
	<!--
    	This script downloaded from w w w.JavaScriptBank. com
    	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
	-->
---------
*Step 3*: Place HTML below in your BODY section
HTML

Code:
---------
<form name="cd">
<input id="txt" readonly="true" type="text" value="10:00" border="0" name="disp">
</form>
	<!--
    	This script downloaded from w w w.JavaScriptBank. com
    	Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com
	-->
---------
]]></description>
			<content:encoded><![CDATA[<div><b>JavaScript Countdown Timer</b><br />
<br />
This JavaScript displays a countdown timer and alerts the user when the timer reaches zero. It then redirects to another Web ... detail<br />
<br />
<div align="center">[IMG]hxxp ://w w w.javascriptbank. com/javascript.images/time/countdown-timer.jpg[/IMG]<br />
Demo: JavaScript Countdown Timer<br />
</div><br />
<font size="4"><u>How to setup</u></font><br />
<br />
<b>Step 1</b>: Place CSS below in your HEAD section<br />
CSS<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;style type=&quot;text/css&quot;&gt;<br />
#txt {<br />
&nbsp; border:none;<br />
&nbsp; font-family:verdana;<br />
&nbsp; font-size:16pt;<br />
&nbsp; font-weight:bold;<br />
&nbsp; border-right-color:#FFFFFF<br />
}<br />
<br />
&lt;/style&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; This script downloaded from w w w.JavaScriptBank. com<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com<br />
&nbsp; &nbsp; &nbsp; &nbsp; --&gt;</code><hr />
</div><b>Step 2</b>: Place JavaScript below in your HEAD section<br />
JavaScript<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;script language=&quot;javascript&quot;&gt;<br />
// Created by: Neill Broderick :: hxxp ://w w w.bespoke-software-solutions.co.uk/downloads/downjs.php<br />
<br />
var mins<br />
var secs;<br />
<br />
function cd() {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  mins = 1 * m(&quot;10&quot;); // change minutes here<br />
&nbsp; &nbsp; &nbsp; &nbsp;  secs = 0 + s(&quot;:01&quot;); // change seconds here (always add an additional second to your total)<br />
&nbsp; &nbsp; &nbsp; &nbsp;  redo();<br />
}<br />
<br />
function m(obj) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for(var i = 0; i &lt; obj.length; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(obj.substring(i, i + 1) == &quot;:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  return(obj.substring(0, i));<br />
}<br />
<br />
function s(obj) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  for(var i = 0; i &lt; obj.length; i++) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(obj.substring(i, i + 1) == &quot;:&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  return(obj.substring(i + 1, obj.length));<br />
}<br />
<br />
function dis(mins,secs) {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  var disp;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if(mins &lt;= 9) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; disp = &quot; 0&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; disp = &quot; &quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  disp += mins + &quot;:&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if(secs &lt;= 9) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; disp += &quot;0&quot; + secs;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; disp += secs;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  return(disp);<br />
}<br />
<br />
function redo() {<br />
&nbsp; &nbsp; &nbsp; &nbsp;  secs--;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if(secs == -1) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; secs = 59;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mins--;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp; &nbsp; &nbsp; &nbsp;  document.cd.disp.value = dis(mins,secs); // setup additional displays here.<br />
&nbsp; &nbsp; &nbsp; &nbsp;  if((mins == 0) &amp;&amp; (secs == 0)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; window.alert(&quot;Time is up. Press OK to continue.&quot;); // change timeout message as required<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // window.location = &quot;yourpage.htm&quot; // redirects to specified page once timer ends and ok button is pressed<br />
&nbsp; &nbsp; &nbsp; &nbsp;  } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  cd = setTimeout(&quot;redo()&quot;,1000);<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
}<br />
<br />
function init() {<br />
&nbsp; cd();<br />
}<br />
window.onload = init;<br />
&lt;/script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; This script downloaded from w w w.JavaScriptBank. com<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com<br />
&nbsp; &nbsp; &nbsp; &nbsp; --&gt;</code><hr />
</div><b>Step 3</b>: Place HTML below in your BODY section<br />
HTML<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;form name=&quot;cd&quot;&gt;<br />
&lt;input id=&quot;txt&quot; readonly=&quot;true&quot; type=&quot;text&quot; value=&quot;10:00&quot; border=&quot;0&quot; name=&quot;disp&quot;&gt;<br />
&lt;/form&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; This script downloaded from w w w.JavaScriptBank. com<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Come to view and download over 2000+ free javascript at w w w.JavaScriptBank. com<br />
&nbsp; &nbsp; &nbsp; &nbsp; --&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.abxzone.com/forums/f177/"><![CDATA[Programming & Webmastering]]></category>
			<dc:creator>JavaScriptBank</dc:creator>
			<guid isPermaLink="true">http://www.abxzone.com/forums/f177/helpful-javascripts-develop-website-115581.html</guid>
		</item>
	</channel>
</rss>
