3,892 Posted Topics

Member Avatar for baltazar

You need to specify the delimiter keeping in mind that its a regular expression pattern. If your input from the file is nothing but numbers separated by ',' without any space in between them, the code posted by you must work. I am assuming that your code won't work since …

Member Avatar for ~s.o.s~
0
600
Member Avatar for Arch_Bytes

Attach an event handler to the form element which would be fired as soon as the element gets focus and which would update the form name variable. Something like: [code] <html> <head> <script type="text/javascript"> function doSome(e) { alert("Name: " + e.form.name + " ===== ID: " + e.form.id); } </script> …

Member Avatar for ~s.o.s~
0
79
Member Avatar for shouvik.d
Member Avatar for jbennet
0
166
Member Avatar for Masud

[URL="http://logging.apache.org/log4j/docs/index.html"]Here[/URL] is the library which you should use if you want logging to be enabled.

Member Avatar for jwenting
0
89
Member Avatar for shaist
Member Avatar for ~s.o.s~
0
109
Member Avatar for jeepj27

A simple script like this should do the job: [code] <html> <head> <script> var INIT_SZ, MAX, MIN; var init = function() { INIT_SZ = 14; MAX = 24; MIN = 10; var elem = document.getElementsByTagName('body'); elem[0].style.fontSize = 14; alert(elem[0].style.fontSize); } var enlarge = function() { var elem = document.getElementsByTagName('body'); var …

Member Avatar for ~s.o.s~
0
127
Member Avatar for vinoth_nat
Member Avatar for Salem

I guess this suggestion was put up before, but the problem being we can't add a 5 point infraction for not using code tags and it also doesn't make any sense. A warning or two or a two point infraction at the max. Plus the ones who come here asking …

Member Avatar for MidiMagic
0
338
Member Avatar for sk8ndestroy14
Member Avatar for ndeniche

I had edited one of your posts a few days back which was 256 characters full of 'lol'. Overusing punctuation marks making the post difficult to be read should be avoided. It seems as though you don't want to improve. Do expect an infraction in the future if this continues.

Member Avatar for ndeniche
0
272
Member Avatar for vijizzle

> Would it increse my ability to get to a job? Yes, definitely. Certifications, though not popular among core developers who think of it as just scrap paper, are certainly the way to go when going for a job interview. The more the merrier. That being said, it is also …

Member Avatar for PCHelpGuy
0
149
Member Avatar for akash_msrit

> i want to compare dates in the date column with current system date. Check the 'before()', 'after()' and 'equals()' methods of the Date or the Calendar class. > now the problem is i have to compare these two fields Without knowing the scenario, it would be difficult to suggest …

Member Avatar for jwenting
0
1K
Member Avatar for chandan_mishra

Have you made the entry for your custom tag classes in the taglib.tld file? If yes, paste the JSP file along with the taglib.tld file.

Member Avatar for chandan_mishra
0
101
Member Avatar for khalidxa

You can either pass the array considering as a sparse array i.e. by doing [inlinecode]void someFunc(int** myArray)[/inlinecode] or you can pass it as a normal array by leaving off at the max the first dimension i.e. [inlinecode]void someFunc(int myArray[][COLS])[/inlinecode]. Also read [URL="http://c-faq.com/aryptr/ary2dfunc2.html"]this. [/URL] Consider constructing your 2D array using vectors …

Member Avatar for Lerner
0
116
Member Avatar for George2

Those are called annotations and are supported from Java 1.5 and up. Hence the error.

Member Avatar for TheGathering
0
103
Member Avatar for eddie-jdp
Member Avatar for eddie-jdp
0
65
Member Avatar for tformed

Implementation of instance methods should occur only once -- either in the header file or the cpp file. The error message say it all : you are providing a definition of your instance methods in both the header file as well as the cpp file. The structure of a normal …

Member Avatar for ~s.o.s~
0
225
Member Avatar for DeOiD

> if there is any other way to control the window parameters, like while its loading, feel free to post Set the focus to the parent window, so that the newly opened window can load in the background and the user can browse the original page. If you still don't …

Member Avatar for MidiMagic
0
239
Member Avatar for ShawnCplus
Member Avatar for praveen_kr541

According to the standards, <td> doesn't have a 'name' attribute and neither does <tr> or <table> as a matter of fact. IE supports it, Opera doesn't, Firefox doesn't. IE is infamous of supporting non standard things. The only thing you can do is to replace each occurrence of 'name' with …

Member Avatar for Voynex
0
106
Member Avatar for DeOiD

No, as far as I know, you can't do that. But you can surely get hold of all the elements which use that class and change their property which is what you must be aiming for, methinks. [code] <html> <head> <style> .one { background-color: blue; } .two { background-color: green; …

Member Avatar for Voynex
0
114
Member Avatar for Firestone

> Java would be nice if Sun actually helped organize and certify the > stuff that’s scattered all over the net. I wonder whatever you mean by this...

Member Avatar for Rashakil Fol
0
374
Member Avatar for xfrostedkissx

[quote=iamthwee;407866] [B]Looping through each char in a string[/B] [code][COLOR=green] public class Test { public static void main ( String[] args ) { String crap = "Hello"; //loop through each char for ( int i = 0; i < crap.length(); i++ ) { System.out.println ( crap.substring ( i, i + 1 …

Member Avatar for ~s.o.s~
0
405
Member Avatar for satish.paluvai

In the case of OP's code, the overloaded method took arguments of type Object and String which is a subclass of Object i.e. a specialized object. Hence the String version of the code is called. In case of Kashyap's code, the overloaded method took arguments of type String and Test, …

Member Avatar for ~s.o.s~
-1
112
Member Avatar for abar_sow

Have you installed Tomcat? If yes, then the IDE which you must be using would have an option for setting the class path for you.

Member Avatar for ~s.o.s~
0
131
Member Avatar for gvsmani

> [inlinecode]<a id="home" href="mymain.htm">Home</a><br>[/inlinecode] I guess the browser is looking for 'mymain.htm' but you have a file named 'mymain.html'. Even though both 'htm' and 'html' are acceptable formats, you can't use them interchangeably. Do something like: [inlinecode]<a id="home" href="mymain.html">Home</a><br>[/inlinecode]

Member Avatar for MidiMagic
0
86
Member Avatar for dcc

> Yea, thats a bunch of [I]bs[/I] > But no.. not paris.. damn spoiled [I]whore [/I]*Ahem*

Member Avatar for joshSCH
0
715
Member Avatar for tformed

Bench has given a good suggestion. But if you are not allowed to use maps, try using two parallel string arrays in which the location of the name of the animal and its description resides in the same location in their respective arrays. [code] const int SIZE = 3; string …

Member Avatar for Killer_Typo
0
4K
Member Avatar for mauro21pl
Member Avatar for ~s.o.s~
0
158
Member Avatar for RohitSahni
Member Avatar for ~s.o.s~
0
32K
Member Avatar for alembic21

1. Define a structure. 2. Create an array of structures. 3. Read a line from the file and fill the array accordingly. 4. Accept input from the user. 5. Search the array given the input and pull out the required data. 6. Display the data 7. Repeat steps 4 - …

Member Avatar for ~s.o.s~
0
86
Member Avatar for TheGathering

If you feel that the syntax of VB is weird, try looking into [URL="http://en.wikipedia.org/wiki/Haskell_%28programming_language%29"]Haskell [/URL]and [URL="http://en.wikipedia.org/wiki/Erlang_programming_language"]Erlang[/URL]. You would really love it. ;-)

Member Avatar for jbennet
0
133
Member Avatar for sk8ndestroy14

Get a good video player like VLC or MPStar. If the files still don't work, they must be corrupted.

Member Avatar for sk8ndestroy14
0
121
Member Avatar for The Dude

My Best: 33.96, you can even see my name there, I am one among the top ten :D

Member Avatar for lasher511
1
91
Member Avatar for The Dude

> ? Rashakil is saying there are other bookmarking sites out there which exist for the same purpose of submitting links and articles. :-)

Member Avatar for The Dude
1
73
Member Avatar for Alexandro

Your XML file is not proper, there can be only one root element. Also since you have not posted the entire code, I would give you a small example on how to go about things: [code] // Javascript file <html> <head> <title>XML DOM</title> <script type="text/javascript"> var xmlDoc; function parse() { …

Member Avatar for Alexandro
0
322
Member Avatar for madhu.garimilla

> can anyone suggest me on how to remove the duplicate sequences from being displayed/generated By using a better algorithm like 'Heap Permute'. See [URL="http://www.daniweb.com/forums/post404399-60.html"]this[/URL]. Though the solution is in C++, with almost no effort, you can port it to Java.

Member Avatar for iamthwee
0
1K
Member Avatar for venomlash
Member Avatar for hinduengg

Dump the loops, what you need is a recursive algorithm which would work for arbitrary lengths of arrays. One of the way is using 'Heap Permute'. Here is a sample program which you can easily adapt to use with C style strings: [code=cplusplus] // Untested const int SIZE = 4; …

Member Avatar for hinduengg
0
1K
Member Avatar for thirunavukaras

You can access the parent window or the window which opened the new window using the global reference 'opener'. Keep one hidden field each for the data which you want to pass from the new page to the original page and using the reference of the original page (opener), manipulate …

Member Avatar for ~s.o.s~
0
113
Member Avatar for dreamerboy

I would request all of you to enclose your code in code tags so that it looks like code and not some vedic mantra. Please read [URL="http://www.daniweb.com/forums/announcement8-3.html"]this.[/URL]

Member Avatar for QVeen72
0
115
Member Avatar for repole

Look into the documentation of the File class and try something on your own. Post your code if you still aren't able to figure out things.

Member Avatar for ksaxena
0
112
Member Avatar for jaepi

Right shifting 1 by 8, 16 or 24 times isn't going to get you anywhere. After a single right shift, the number will become 0 and 'AND'ing it with any number would make no difference. Oh and BTW, 0XF is the same as 0XFF or 0XFFFFFFFF. Try something like: [code=cplusplus] …

Member Avatar for jaepi
0
99
Member Avatar for christina>you

Too bad, but I guess nothing can be done which would predict or stop such things.

Member Avatar for maravich12
0
500
Member Avatar for ndeniche

I like '[I]tap fingers on the keyboard[/I]' and '[I]sleep for minimum 10 hours[/I]' the most. They are so very constructive games, don't know why, but they have a great appeal to me.. ;-)

Member Avatar for maravich12
0
171
Member Avatar for Fungus1487

The way you are trying to acquire the parent element is wrong. Do something like this: [code=html] <html> <head> <script> function remove() { var parent = document.getElementsByTagName('form')[0]; var elem = document.getElementById('id'); var old = (elem.parentNode).removeChild(elem); } </script> </head> <body> <form name="frm"> <iframe id="id" name="name" src="d.html"></iframe> <br /> <input type="button" value="RemoveFrame" …

Member Avatar for MidiMagic
0
316
Member Avatar for ndeniche

If you don't know anything about Javascript, first start off with it before jumping in the AJAX bandwagon. 1. [URL="http://www.w3schools.com/js/"]W3Schools[/URL] 2. [URL="http://www.javascriptkit.com/javatutors/"]Javascript Kit[/URL] 3. [URL="http://www.htmlgoodies.com/beyond/javascript/"]HTML Goodies[/URL] 4. [URL="http://home.cogeco.ca/%7Eve3ll/jstutor0.htm"]Javascript Tutor[/URL] The above ones should get you started. Of course, if you have any specific queries, you can always ask them here. …

Member Avatar for ndeniche
0
88
Member Avatar for Lbruce

If you are selecting it from a Calendar widget, won't it be automatically validated? Of course you can't pick out '123/123/123' from it, can you?

Member Avatar for ~s.o.s~
0
101
Member Avatar for Narue

[B]Narue[/B], before starting a new thing you must finish off pending business. We are still waiting for the results of the previous competition...

Member Avatar for Bench
0
498
Member Avatar for kky2k

Though I personally haven't used it, [URL="http://expat.sourceforge.net/"]this[/URL] seems promising.

Member Avatar for kky2k
0
101

The End.