3,892 Posted Topics

Member Avatar for todd2006

> [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.

Member Avatar for todd2006
0
136
Member Avatar for tinamary

> 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]

Member Avatar for ~s.o.s~
0
142
Member Avatar for Renzokouken_22

[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() + "', …

Member Avatar for ~s.o.s~
0
78
Member Avatar for kedarkhedkar

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 …

Member Avatar for ~s.o.s~
0
147
Member Avatar for Balapriya
Re: Ogre

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]

Member Avatar for PirateTUX
0
95
Member Avatar for Duki
Member Avatar for Chaky
4
181
Member Avatar for Infarction

Sitting in the dark corners of my house doing nothing requries a lot of craft...

Member Avatar for ndeniche
0
445
Member Avatar for militant880

> but shutting people down entirely is highly discouraging. Losers always crib, those interested ask sensible questions and winners pave their own way.

Member Avatar for no1zson
0
166
Member Avatar for BABSYOMMY
Member Avatar for ~s.o.s~
0
112
Member Avatar for onsir

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 …

Member Avatar for ~s.o.s~
0
200
Member Avatar for mairaj

> 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 …

Member Avatar for ~s.o.s~
0
211
Member Avatar for purifier

[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 …

Member Avatar for Ancient Dragon
0
164
Member Avatar for madhan
Member Avatar for challa.kamal
Member Avatar for Dani
Member Avatar for KimJack

> 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 …

Member Avatar for ~s.o.s~
0
122
Member Avatar for edmicman

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> …

Member Avatar for ~s.o.s~
0
88
Member Avatar for BalagurunathanS

Look at the error console of Firefox or get a debugging tool like Firebug to ease your Firefox development.

Member Avatar for ~s.o.s~
0
72
Member Avatar for bg370

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.

Member Avatar for ~s.o.s~
0
50
Member Avatar for Designer_101

> 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.

Member Avatar for MidiMagic
0
77
Member Avatar for zaman1111

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.

Member Avatar for zaman1111
0
148
Member Avatar for Duki
Member Avatar for katharnakh

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 …

Member Avatar for ~s.o.s~
0
95
Member Avatar for Fungus1487

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 …

Member Avatar for Fungus1487
0
2K
Member Avatar for BalagurunathanS

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 …

Member Avatar for sandeep.mk
0
171
Member Avatar for kaushik259106

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 …

Member Avatar for kaushik259106
0
106
Member Avatar for pedramphp

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.

Member Avatar for pedramphp
0
80
Member Avatar for scudzilla

> my greatest weakness is my lack of creativity. No one lacks creativity, it's just misplaced...

Member Avatar for ~s.o.s~
0
66
Member Avatar for Serunson
Member Avatar for rinoa04

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 …

Member Avatar for MidiMagic
0
370
Member Avatar for srinivaskota

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 …

Member Avatar for MattEvans
0
2K
Member Avatar for The Dude
Member Avatar for sasikala123

> 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. …

Member Avatar for ~s.o.s~
0
124
Member Avatar for muskan

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.

Member Avatar for peter_budo
0
177
Member Avatar for ceyesuma

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]

Member Avatar for ceyesuma
0
123
Member Avatar for Piuskutty

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]

Member Avatar for Piuskutty
0
117
Member Avatar for iamthwee

[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.

Member Avatar for Hamrick
0
383
Member Avatar for stan316i
Member Avatar for stan316i
0
84
Member Avatar for kaushik259106

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 …

Member Avatar for kaushik259106
0
119
Member Avatar for Megha_Patni

> I have to do a validation on date in my form. Look into the SimpleDateFormat and GregorianCalendar classes to achieve your task.

Member Avatar for ~s.o.s~
0
72
Member Avatar for mahir78

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 …

Member Avatar for mahir78
0
106
Member Avatar for BalagurunathanS

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 …

Member Avatar for ~s.o.s~
0
115
Member Avatar for >shadow<
Member Avatar for MidiMagic

> 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.

Member Avatar for Dave Sinkula
0
179
Member Avatar for StrongOak
Member Avatar for MattEvans
0
288
Member Avatar for Salem

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.

Member Avatar for WaltP
0
311
Member Avatar for onsir

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]

Member Avatar for masijade
0
155
Member Avatar for tiredntroubled

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?

Member Avatar for ~s.o.s~
0
79
Member Avatar for abhammer

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 …

Member Avatar for ~s.o.s~
0
175
Member Avatar for Dani

> Just out of curiosity ... what is YOUR singlemost favorite DaniWeb feature? A girl admin who does't hide her identity... :P

Member Avatar for MidiMagic
0
321

The End.