Archive

Posts Tagged ‘java code’

Quick Java Code

February 19th, 2012 Comments off

Need this project done asap, pretty much have less than 2 days to finish it. Would like to have it by tomorrow.

Project info attached, PDF.

Adding Gui To Java Code

October 16th, 2009 Comments off

Attached is the assignemnts the one file contains the old project that the assignment will be applied to and the other contains the new .class file and the new assignment. pls keep in mind that i have a very limited budged and a very limited time span for this project so pls bid soon

Simple Java Code Needed

July 29th, 2009 Comments off

I’m trying to build a form where when you click a button a new window opens. There we choose an item and send the item code back to the parent page to populate a text field. After this is done the new window should close automatically. This is the code I’m working with at the moment. I think the head of the child file needs changing.

parent file (parts of it):

Code:
//head:

<script type=”text/javascript”>
targetElement = null;
function addProduct(frm, id) {
if(!frm || !id)
return;
targetElement = frm.elements[id];
var handle = window.open(‘find_product.php’);
}
</script>

//body:

<form id=”frm” name=”frm” action=”#”>
<input name=”code” type=”text” id=”code” size=”10″ />
<input name=”name” type=”text” id=”name” size=”32″ />
<input type=”button” value=”Add Item” onclick=”addProduct(this.form, ‘code’);” />
</form>

child file (parts of it):

Code:
//head:

<script type=”text/javascript”>
function addProduct(frm, id) {
if(!frm || !id)
return;
var elem = frm.elements[id];
if(!elem)
return;
var val = elem.options[elem.selectedIndex].value;
opener.targetElement.value = val;
this.close();
}
</script>

//body:

<form id=”frm” name=”frm” action=”#”>
<input name=”code” type=”hidden” value=”<?php echo $row_rsProducts['ProductID']; ?>” />
<input name=”name” type=”hidden” value=”<?php echo $row_rsProducts['ProductName']; ?>” />
<input type=”button” value=”Add Product” onclick=”addProduct(this.form, ‘code’);” />
</form>

Another thing that I’m not sure how to go round is that forms can’t be nested so after the field is filled in, how can I submit the value? I’d like to use this same field for another form.

Please bid only if you can solve both of these problems.

Java Code Needed

March 19th, 2009 No comments

I need some java code that when placed in a web page will make a page of my choice (currently http://headeradz.com/headeradz.htm ) show at the top of the page. currently the URL floats on top of the web page. I need the java code to make the page, (or any page I want) show at the top of the page, while pushing down the content of the page instead of layering on top of it. The current code allows drag and drop, but that isn’t necessary.

The code must work by putting it inside a page that’s already included so that by placing the code in one file, it will automatically work on all my websites.

If you have questions, please use the PMB.

Bear