3,892 Posted Topics
Re: > [inlinecode]top.bottommenu.document.location.reload();[/inlinecode] It should be [inlinecode]top.frames['bottommenu'].location.reload();[/inlinecode]. location is a property which belongs to the window object and not the document object. Plus you are confusing others by pasting two functions with the same name and different function definitions. Be a bit more concise and clear the next time. | |
Re: > pure object oriented Java is not a true OO language. If you are looking for pure OO, look into Smalltalk and Ruby in which everything is a class and all operations are messages to objects. Read [URL="http://www.jvoegele.com/software/langcomp.html"]this.[/URL] | |
Re: [quote] [code] String query = "UPDATE Grades SET " + "FirstName='" + fields.first.getText() + "', LastName = '" + fields.last.getText() + "', Quiz1 = '" + fields.Quiz1.getText() + "', Quiz2 = '" + fields.Quiz2.getText() + "', Quiz3 = '" + fields.Quiz3.getText() + "', MP1 = '" + fields.MP1.getText() + "', … | |
Re: You are assuming smooth execution. What happens if the browser is closed when taking the exam? What happens when the user refreshes the page? You need to maintain the user state as well as the time of the examination in the user session. Keep the involvement of Javascript in business … | |
Re: Visiting the links [URL="http://www.ogre3d.org/wiki/index.php/Basic_Tutorial_1"]here[/URL] would be a good option. Also if you are ready to buy a book, take a look at [URL="http://www.amazon.com/Pro-OGRE-3D-Programming/dp/1590597109"]this.[/URL] | |
Re: Sitting in the dark corners of my house doing nothing requries a lot of craft... | |
Re: > but shutting people down entirely is highly discouraging. Losers always crib, those interested ask sensible questions and winners pave their own way. | |
Re: Maybe something like [URL="http://www.shoutmix.com/main/"]this.[/URL] | |
Re: I am assuming here that you are talking about your Java application. When starting the application, bind it to any port which is not currently in use. That way when you try to create another instance of your application, you would get a socket exception saying that he port is … | |
Re: > If you don't declare a variable as being global or local (as defined by where its var > statement is) the browser has to guess. Not entirely true. There are two types of variables in javascript -- global scoped variables and function scoped variables. There is no block scope … | |
Re: [quote=Lardmeister;438672]I know this is a little late, but if you live in the US, switch to law and join the money making crowd. In your present technical field you will always be just a peon competing with low paid labor from India or China.[/quote] If you are the best, nothing … | |
Re: The same program works fine with me. Which OS and compiler (version) are u using? | |
Re: > Serialilzation is solution to your question. Serialization is a completely different beast. In serialization, you serialize i.e. persist an object onto the secondary storage and read them again as and when required. Here the user is presented with a simple text file so the only option is to read … | |
Re: You need to have a basic understanding of Javascript objects for understanding the solution presented below: [B]Test.html[/B] [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <link rel = "stylesheet" href = "Styles.css" media = "all" type = "text/css" /> <title>sample page</title> … | |
Re: Look at the error console of Firefox or get a debugging tool like Firebug to ease your Firefox development. | |
Re: Look into the [URL="http://developer.mozilla.org/en/docs/DOM:document.createElement"]document.createElement()[/URL] function which creates new DOM elements based on the passed parameter. Also look into the [URL="http://www.w3schools.com/htmldom/dom_obj_select.asp"]DOM select [/URL]and [URL="http://www.w3schools.com/htmldom/dom_obj_option.asp"]DOM option[/URL] objects. | |
Re: > Also, JavaScript has no way to read server files Not entirely true. You can read an XML file on the server using the XML DOM API. But this applies for only valid XML files. | |
Re: What is the point in having multiple check boxes with the same name and value? Also as you haven't shown us your Servlet, it would be difficult for us to pin point the error. And please state your requirements a bit more clearly. | |
Re: A few points: • Class names should begin with an uppercase character. Following the Java coding conventions is a must considering you are developing enterprise applications using J2EE which itself needs you to follow rigorous coding practices. • Comments in java begin with // or /* and not # as … | |
Re: Like you said, since 'href' isn't an event handler I wouldn't have much faith in the first approach and I have never seen it being used in a professional environment. The same issue occurs with the second approach since you end up calling a function inside the 'href'. A better … | |
Re: Just make your 'OK' button of type 'submit' and you should be good to go. Its probably the easiest way of achieving the desired task. Other options include capturing the keyboard event, checking whether a RETURN key has been pressed and handling it accordingly. This approach is best avoided unless … | |
Re: Put the text data in their own container tags. Also don't use <font> tags, they are deprecated in favor of stylesheets. Something like : [code] <jsp:useBean id="adminUser" class="bss.BSSUserDetailsDo" scope="session"/> <div style='font: normal 12px verdana; color: brown;'> <bean:message key="Bss.user.welcome"/> <span id='firstName'><jsp:getProperty name="adminUser" property="firstName"/></span> </div>[/code] You were erroneously using the bean property … | |
Re: I guess you are talking about the 'Prototypejs' framework. In that case, please visit the forums / getting started section [URL="http://www.prototypejs.org/learn"]there[/URL] to get better help, specifically [URL="http://www.prototypejs.org/learn/introduction-to-ajax"]this[/URL] section. | |
Re: > my greatest weakness is my lack of creativity. No one lacks creativity, it's just misplaced... | |
Re: Same here while replying to threads and moderating. | |
Re: You must be using browser specific features. IE is notorious in making your code run even when it is not correct. Paste the code and we will try to help you out. The only advice we can give you is to develop for Firefox so the possibility of the code … | |
Re: Use the 'onload' event handler for this task. This way, as soon as the document / body is loaded, the button will be in disabled state. [code] <html> <head></head> <body onload="funcToDisable();"> </body> </html>[/code] Here the 'functionToDisable()' will contain the action which you need to perform when the document loads. That … | |
Re: > I wanted to become a good programmer Becoming a good programmer is all about using the right tools at the right time. Try to learn new very high level languages like Ruby, Python etc. Every language you learn will give you a new perspective of the problem at hand. … | |
Re: This problem occurs when at the time of installation of Tomcat you make it point to JRE instead of JDK. Reinstall Tomcat and when it asks for Java path, provide it the path to your JDK instead of the default JRE which appears there. | |
Re: Ideally there should be 'zero' Java code in your JSP file. Use [URL="http://java.sun.com/products/jsp/jstl/"]JSTL[/URL]'s instead which help in separating the business and presentation to a greater extent. A brief tutorial [URL="http://www.ibm.com/developerworks/opensource/library/j-jstl0211.html"]here.[/URL] | |
Re: Peter, I think the OP wanted to upload the image from the website to the server similar to sites like YouTube where you can upload your videos. PiusKutty, look into the [URL="http://commons.apache.org/fileupload/"]Apache Commons' Fileupload module.[/URL] | |
![]() | Re: [quote=iamthwee;277443]Is it just me or is dat syntax highlighting really bad. That bright blue is annoying. Yucky.[/quote] Ditto here, it makes my eyes hurt. Dont know how this color got approved. |
Re: VLC Player, JET audio, MPStar are some options you can consider. | |
Re: Something like this? [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>sample page</title> <script type="text/javascript"> //<![CDATA[ function myLength() { var element = document.getElementById('fname'); element.value = element.value.toUpperCase(); document.getElementById('len').innerHTML = element.value.length; } //]]> </script> </head> <body> <form id="frm"> <label>Enter password:</label><input type="text" id="fname" onkeyup="myLength();"> <br /> <div>length of the … | |
Re: > I have to do a validation on date in my form. Look into the SimpleDateFormat and GregorianCalendar classes to achieve your task. | |
Re: You need to provide us with a 'running and short' example of your code so that we can easily test it out. Just pasting out random snippets won't do you much good. Also take a look at the generated code for your 'in between' pages and see whether it is … | |
Re: AFAIK, [INLINECODE]alert()[/INLINECODE] being a blocking function will bring all the processing to a grinding halt. So, to keep the timer running when the [INLINECODE]alert()[/INLINECODE] is pending for an user action seems to be a pretty difficult task. One way you can get around this is to display an error message … | |
Re: > I like it a lot and does everything that you are complaining about in the quote above. Of course it supports all of it AD, every commercial game out there has been supporting those _long_, time back. | |
Re: Glad you got rid of that book. The content it had was kind of giving us fits... ;-) | |
Re: Damn it, my spellchecker has got disabled again. I don't know why but any changes made to anything related to Javascript messes up with the spellchecker big time. I guess the three options being merged into one is the cause of this. | |
Re: I am almost sure that you are doing all this for display purposes. If so, then why not just use the formatting provided by the printf method. [code] int i = 1; System.out.printf("%010d%n", i); i += 10; System.out.printf("%010d%n", i); [/code] | |
Re: Your requirements are not very clear. What exactly are you trying to achieve here? Is it that if none of the values on the right list box is selected you need to select them all and if a value is selected, there should be no change? | |
Re: The above code runs fine in IE and Opera, so it has got something to do with Firefox. I guess the only thing you can do is to let those people know of this issue and see what turns up. Also if you want to protect your email address, you … | |
Re: > Just out of curiosity ... what is YOUR singlemost favorite DaniWeb feature? A girl admin who does't hide her identity... :P |
The End.