Jump to content

Search the Community

Showing results for tags 'java'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH


  • Community Calendar

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Found 62 results

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <body><script> function alertTotal() { var aSelect = document.getElementById('a'); var bSelect = document.getElementById('b'); var cSelect = document.getElementById('c'); var aValue = aSelect.options[aSelect.selectedIndex].value; var bValue = bSelect.options[bSelect.selectedIndex].value; var cValue = cSelect.options[cSelect.selectedIndex].value; alert(parseInt(aValue) + parseInt(bValue) + parseInt(cValue)); }</script>CPU #######:<select id="a"><option value="0">Not selected</option> <option value="3500">I7 R3500.00</option> <option value="2500">I5 R2500.00</option> <option value="1500">I3 R1500</option> </select><br>Mother Board :<select id="b" width="230" STYLE="width: 430px" size="0"><option value="0">Not selected</option> <option value="363">Intel Houlton D2500 Mini-ITX - Supports 2 x DDR3 (Max 4GB). Up to 8 USB 2.0 Ports, 2 x SATA, 1 x Parallel Port, 2 x Serial Ports (via Header) 1 x D-Sub, 1 x Conventional PCI Slot, 10/100/1000 LAN</option> <option value="2">2</option> <option value="3">3</option> </select><br>RAM:#######<select id="c"><option value="0">Not selected</option> <option value="100">2GB DDR3 1333, 240-Pin Memory Module - PATRIOT</option> <option value="190">4GB DDR3 1333, 240-Pin Memory Module - PATRIOT</option> <option value="250">4GB DDR3 1333, 240-Pin Memory Module - Kingston </option> </select><br><br><br><br><button onclick="alertTotal();">Show Total</button> </body> When i click the total works fine but when i add the scritp to show the total i get nothing , i don't want to click to see the total Price: R<span id="alertTotal();"></span>
  2. yoyo w3... im trying to build up a ''news'' box... and the messeages that comes out from my database are comming and all that... but what i wish it to do right now is to do like the picture down here: (ATTACHED... (NUMBER 1)) i wish to add a java-klappe script... i founded it here: http://www.koders.co....aspx?s=none#L6 i wish to do so i can click the news title, and then the news drop down (like the java klappe are supposed to do...). here is the original code i wish to use in this case: function klappe(id){var klappText = document.getElementById('k' + id);var klappBild = document.getElementById('pic' + id); if (klappText.style.display == 'none') { klappText.style.display = 'block'; // klappBild.src = 'images/blank.gif';}else { klappText.style.display = 'none'; // klappBild.src = 'images/blank.gif';}} function klappe_news(id){var klappText = document.getElementById('k' + id);var klappBild = document.getElementById('pic' + id); if (klappText.style.display == 'none') { klappText.style.display = 'block'; klappBild.src = 'pic/minus.gif';}else { klappText.style.display = 'none'; klappBild.src = 'pic/plus.gif';}} its just how to add it into the word... i mean,... how to insert it so it works with the code i have gathered/coded... here is what i've coded so far in the news box...: <?php$news_query = "SELECT n_headline,n_text FROM news";$news_result = mysql_query($news_query)or die(mysql_error());while($n_row = mysql_fetch_assoc($news_result)){echo $n_row['n_headline'];echo "<br />";echo $n_row['n_text'];}?> so... hoping someone can help me integrade this code so it will work ... thanks... .
  3. Does anyone know how or what code I need to use to create a interactive map were certain regions pop up? Thanks!
  4. I'm relatively new to java, and I've been working on a gui. Now when I run my code instead of opening the gui window I get this message in my console: java.lang.NumberFormatException: empty Stringat sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)at java.lang.Double.parseDouble(Unknown Source)at package.PartA.initialize(PartA.java:215)at package.PartA.<init>(PartA.java:58)at package.PartA$1.run(PartA.java:45)at java.awt.event.InvocationEvent.dispatch(Unknown Source)at java.awt.EventQueue.dispatchEvent(Unknown Source)at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)at java.awt.EventDispatchThread.pumpEvents(Unknown Source)at java.awt.EventDispatchThread.pumpEvents(Unknown Source)at java.awt.EventDispatchThread.run(Unknown Source) Also I've narrowed it down to it being something to do with these 3 lines: dFP = Double.parseDouble(jTextFieldFP.getText());dFAP =Double.parseDouble(jTextFAP.getText());dFDD =Double.parseDouble(jTextFDD.getText()); Please see if it's something simple I've just overlooked! Thank you!
  5. Dear all, Currently I am building a website for my study/myself but start to experience some problems, maybe it's impossible to do but I would like to take a shot. Underneath the following URL my website is located.http://www.nielsschreuders.nl/webtest As you can see, this site exists out of one page only in which multiple sections "home, products, about,..." are located by scrolling through the page all sections can be seen. Though, in the product section I have implemented 6 spry collapsible panels but page 3 is getting confused when two spry's underneath each other are collapsed. What I would like to accomplish is to have page three (pagina 3 in dutch) pushed down when these spry's are collapsed but keeping the ability of navigating to the start of page 3 by the navigation-bar. If this would not be possible, I would like to know if it is possible to open one collapsible panel by which another one (if collapsed ) closes. I already searched for a suitable solution but I get the impression of this being a very hard to tackle problem.When extra information is needed, I would certainly like to post it here. Thanks in advance,Niels
  6. Hi I have finaly managed to get a cookie to save the data i want it to. I now have a problem that it saves it with Undefined after it. and when i try and pull the information out i will either get Undefined displayed in my webpage or the information i saved with the word undefined after it. how do i define the code i am putting in to the cookie as text. i am using the code from the following website www.jslab.dk.
  7. I want to replicate this game I made in Scratch onto my site. http://scratch.mit.edu/projects/absorr/1489987Would javascript work? Is there a better option that won't cost me money? If javascript would work, how do i make it so that the object can move and bounce off walls?
  8. Whenever I use <a onclick="">on text</a> it ignores the css formatting for the <a>. Why? Is there a way around it?
  9. samerhannoun

    Php Java Bridge

    Hi guys,,, I am into something strange and I haven't any idea about how to implement this ###### (PHP Java Bridge). I make some research and then go back here to ask some question if you can help guys! What I would like to know the following: 1. What is the System requirement for that? (Windows and Linux). and small examples test on windows and Linux FinallyThanks in advance for any help Best wishes
  10. Hi! Background:I am maintaining a Java application where I create a http server (using the class org.apache.http.protocol.HttpService). The http server creates a socket on port 6060. From an Ajax script executed in a browser on the same machine, a xmlhttp request is sent to localthost port 6060. The request is transmitted to the Java application and and response is sent, works fine. As long as the solution is executed on a client machine (desktop computer). The Java application executes in ONE instance since it is ONE machine with ONE user. The application is designed to handle requests from one user only. Problem:When the solution is executed on a terminal server (through Windows Remote Desktop Connection), each user will start a new instance of the Java application, that is if there are five users logged in the the terminal server, there will be five running instances of the Java application. The first started instance allocates port 6060 on localhost. But when the following instances tries to allocate port 6060 on localhost, it fails since it is already allocated by the first instance. I expected this to work, since I thought that each user on a terminal server executed in a own session with a memory and ports of its own, but obviously this is not the case. I have however heard that it should be possible to allocate a "virtual" port (i.e. unique for my session) instead of a machine physical port. Does anyone have a clue about how to solve this, I am in urgent need of advises... I insert parts of my Java code where I create the http server: ServerSocket mSocket = new ServerSocket( 6060);HttpParams mHttpParams = new SyncBasicHttpParams();mHttpParams .setIntParameter(CoreConnectionPNames.SO_TIMEOUT, DEFAULT_TIMOUT ) .setIntParameter(CoreConnectionPNames.SOCKET_BUFFER_SIZE, DEFAULT_BUFFER_SIZE ) .setBooleanParameter(CoreConnectionPNames.STALE_CONNECTION_CHECK, false ) .setBooleanParameter(CoreConnectionPNames.TCP_NODELAY, true ) .setParameter(CoreProtocolPNames.ORIGIN_SERVER, "HttpComponents/1.1") .setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET, "UTF-8"); // Set up the HTTP protocol processorHttpProcessor httpproc = new ImmutableHttpProcessor(new HttpResponseInterceptor[] { new ResponseDate(), new ResponseServer(), new ResponseContent(), new ResponseConnControl() }); // Set up request handlersHttpRequestHandlerRegistry reqistry = new HttpRequestHandlerRegistry();reqistry.register("*", new GadgetRequestHandler( mGadgetIntegrator )); // Set up the HTTP HttpService mService = new HttpService(httpproc, new DefaultConnectionReuseStrategy(), new DefaultHttpResponseFactory(),reqistry,mHttpParams); Thanks!
  11. I'm trying to get these sliders to work so a user can adjust the readability of the website. i have a slider to adjust the font size, the number of colums and the background color. For the background color i want to have some sort of color picker but i still need to look into that but if you have any suggestions please let me know! here's the code: //fontsizewindow.onload = function() {var value_display = document.getElementById("value_display").className.class="value_display";var lorem = document.getElementsByClassName("lorem");document.getElementById("slider").onchange = function() {value_display.value = this.value;lorem.style.fontSize = this.value + "em";}}//kolom aantalfunction changeColumnNoSlider(event) {var val = event.target.value;document.getElementById('columns-no-value').className='columns-no-value'.textContent = val;var el = document.getElementsByClassName('kolom');el.style.webkitColumnCount = val;el.style.MozColumnCount = val;} The problem is that i use it for blog post so it's not just one article i want to adjust. the code works if i use .getElementById but i need to use classes. Thanks in advance!
  12. hello newbie here.. i got a big issue whit a eclipsephp i recently installed at his latest version and the problem is that it dont have CSS or HTML codes, i cant call , ID's , Class, Browse whit Ctrl + Space, even if a call it for a external file i it dont show me whit Crtl + Spaces the this that i need, and many code more when i need it like Dreamweave ... in Dreamweaver you have all dose option whit Crtl + Space they told me that you have a way to install plugins Css and Html on EclipsePHP how and where i do that ?
  • Create New...