- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
41 Posted Topics
I have an html table with six rows and two columns. I have what it is supposed to look like [URL="http://wordpress.thelandman.org/test.html"]here[/URL]. But, what is really confusing me is that with the exact same source code snippet inside wordpress [URL="http://wordpress.thelandman.org/buying/"]here[/URL] is not displaying the same output, the image does not span …
You should probably try System.nanoTime() long startTime = System.nanoTime(); methodToTime(); long endTime = System.nanoTime(); long duration = endTime - startTime;
I have recently been working on a job with a client who gets their data from county data. The county data is contained in .dbf files. Every year the data is updated and my client will get a CD/DVD from someone containing the county data in .dbf format. Now the …
Ok, so this problem may have been asked before, but no one seems to have my exact problem. When I put a set of inline <P>'s inside an inline div and then put the width to 100%, instead of expanding to the width of it's parent element it sticks at …
Recently I have been working with Mysql and PhpMyAdmin a lot on Ubuntu, and I have stumbled across a very annoying error, or set of errors. I keep on getting a bunch of random loosely related error messages. These are the errors I get. When I try to log in …
I am not quite sure what the red line of code is supposed to do. [CODE]$output[] = '<td>'; echo "<input type='text' name='Value[{$row['id']}]' value='{$row['value']}'>"; $output[] = '</td>'; $output[] = '<td>'; echo "<input type='checkbox' name='Update[{$row['id']}]' value='Box #{$row['id']}'>"; $output[] = '</td>';[/CODE] Is that what you were looking for, or did you want the …
the problem is that you are making it skip the first number by using[CODE]integer = fin.nextDouble();[/CODE] before the while loop. in the examples you gave if the first number is not there the answer is correct 98 -46 74 -66 -- without the first number, 98, the answer is 140 …
I was just wondering if anyone knew how to make a WordPress menu item only show to an Administrator.
What do you mean by blur, do you mean so the user just can't click it? if you do just do [CODE]document.getElementById['id-of-select-box'].disabled=true;[/CODE] Although I think I might be missing your point entirely.
what exactly is your problem? is it that i is not the correct value, or is it that siteIDs[i] has the wrong value? perhaps the problem is that you did not declare i.
Yeah, I agree. I also know java but would have trouble trying to build a tower defense game. Any tutorials that you guys could link us to would be greatly appreciated.
you are super close. Do you have to check for both ascending and descending or just one.
how are you running this piece of code? where is the main method
your problem is in what you are sending the php script, not the php script itself. you are sending this.parentNode. instead of a valid url. if the php script was say called getarticle.php then this code would be applicable.[CODE]onclick="javascript:makePOSTRequest(this.parentNode.action,this.parentNode.children[0].value);"[/CODE] basically what I am doing here is getting the url from …
well, you could try an invisible 'a' element and then programmaticly click it. that would probably work, but I have no idea how you would implement that though
do something like [CODE]echo "<p style=\"display:none\" id=\"anid\">$count</p>;[/CODE] and then in javascript do [CODE]if(document.getElementById("anid").innerHTML>=5){ document.getElementById("uploadbutton").style.display = "none"; }[/CODE]
you should declare foodObject as an instance variable in Party, and instantiate it in the constructor. Then it won't empty. [CODE]public class Party { private String inputLine; private Food foodObject; public Party() { foodObject = new Food(); reader = new Scanner(System.in); }[/CODE] and then take out the foodObject = new …
if you want Cal to run you must put parentheses at the end of it [CODE]<input type="button" onClick="Cal()"> // with parentheses at the end that will work[/CODE]
I think this is what you are looking for [URL="http://download.oracle.com/javase/tutorial/uiswing/layout/gridbag.html"]http://download.oracle.com/javase/tutorial/uiswing/layout/gridbag.html[/URL]
so what exactly is your problem? the code that you gave does not seem to explain your problem at all. I understand the end goal, but our goal here is not to write your code for you but to help you overcome problems you might have.
check out regular expressions. [URL="regular-expressions.info"]regular-expressions.info[/URL] used with str.match(regularexpression) look up all the methods of string in the java api [URL="http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html"]http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html[/URL] you could also check out stringbuffer [URL="http://download.oracle.com/javase/1.4.2/docs/api/java/lang/StringBuffer.html"]http://download.oracle.com/javase/1.4.2/docs/api/java/lang/StringBuffer.html[/URL] it looks pretty useful
well your problem lies in the way you ask your user,the easiest way would be to prompt them for Medical y/n then if response is y add medical price to total, then prompt Dental y/n then if response is y add dental price to total... [CODE]int totalinsurance = 0; System.out.print("would …
instead of[CODE]document.write("<td>", i, "*", j, "</td>"); onClick="window.alert('i*j')";[/CODE] do[CODE]document.write("<td onClick=\"eval(this.innerHtml);\">", i, "*", j, "</td>");[/CODE] this is just a quick and dirty method. I don't understand what you mean by [QUOTE]oh and i need to have a super randomized background that relies on Math.ceil(Math.random())[/QUOTE].
you have to use DOM 2 not DOM 0. use this to attach events to obj in html [CODE]function addEventHandler(obj, eventName,handler){ if (document.attachEvent){ obj.attachEvent("on" + eventName, handler); } else if (document.addEventListener) { obj.addEventListener(eventName, handler, false); } }[/CODE] use it like this [CODE]submit = document.getElementById("proceed"); addEventHandler(submit, "click" , function(){return ValidateSubCategory;}); addEventHandler(submit, …
your code is very close, just do this [CODE]int temp = 1; int d = 0; while (temp >0.0001){ temp = temp /2; d++; } System.out.println(d);[/CODE] this will loop until temp < 0.0001 which is exactly what you want.
Why not just have an instance variable that holds subtotal total and taxes, and increment or decrement based on what the user selects. I might have missed your point entirely, so some more explanation would be helpful.
Well, If I understand your question right, then this code would probably do what you are saying. [CODE]class A extends JPanel{ public static void methodcalledfromB(){ //some code } public static void methodcalledfromA(){ B.methodcalledfromA(); } } class B extends JFrame { public static void methodcalledfromB(){ A.methodcalledfromB(); } public static void methodcalledfromA(){ …
I tried your code on my computer( proccesor:amdx64 os: ubuntu) and I did not get your error.
if I understand correctly this is what you are trying to do.[CODE]totalCharges.setText(totalCost);[/CODE]
The difference is in the Layout Managers. The LM(Layout Manager) for the original content pane is BoxLayout and the layout for your own content pane is FlowLayout. a much better explanation of layout managers is found here [url]http://download.oracle.com/javase/tutorial/uiswing/layout/using.html[/url]
Your problem is that the embed tag is the one with a src property, not the object tag. Your code says [CODE]holder = document.getElementById('content'];//this grabs the object not the embed ... holder.src = films[flashNumber]; //this line will tell the object tag to have a src of films[flashNumber] not the embed[/CODE]
So what is the problem here? I assume that your code is trying to print out a list of links that link to each consecutive month in tbl_localnews.
If this is what I think, then it is a problem of scope. the read file method just prints out a,b,c,d, and e, but does not assign to a variable that main could access. try declaring a,b,c,d, and e where you declare the scanner variable. That way every piece of …
have each input tag that you want to turn red when a negative number is entered have an onblur event that triggers a general function checkelement and have them pass themselves. I don't think I am explaining this well.[CODE]<input id="input1" name="input1" onblur="checkelement(this)"> <input id="input2" name="input2" onblur="checkelement(this)"> <input id="input3" name="input3" onblur="checkelement(this)"> …
I have created an html page that must not have the automatically created url/page number at the top, in the header, or the url/page number at the bottom, in the footer, when you print the page. I know that it is possible because google maps does it [URL="http://maps.google.com/maps?hl=en&ie=UTF8&ll=37.0625,-95.677068&spn=54.269804,79.013672&z=4&pw=2"]http://maps.google.com/maps?hl=en&ie=UTF8&ll=37.0625,-95.677068&spn=54.269804,79.013672&z=4&pw=2[/URL]. So I …
Well what is the definition of GUI.class? The problem is probably that GUI.class isn't defining package carpkg; at the top of the file. or it could be that [CODE]GUI gui = new GUI[/CODE] is missing it's ();
my guess is that nomedoc is null because of some chrome quirk. if that is not the problem then try POST instead of GET, that might be your problem.
What is the problem here? Could you give us some more detail as to what you are trying to have happen.
The End.
Gerbiler