3,892 Posted Topics
Re: 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 … | |
Re: 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> … | |
| |
Re: [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. | |
Re: There is no 'onmouseclick' attribute, its 'onclick' you are looking for... | |
Re: 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 … | |
Re: You need to post the entire code for us to test it out. | |
Re: 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 … | |
Re: 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. | |
Re: > 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 … | |
Re: > 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 … | |
Re: 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. | |
Re: 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 … | |
Re: Those are called annotations and are supported from Java 1.5 and up. Hence the error. | |
Re: 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 … | |
Re: > 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 … | |
Re: 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 … | |
Re: 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; … | |
Re: > 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... | |
Re: [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 … | |
Re: 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, … | |
Re: 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. | |
Re: > [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] | |
Re: > Yea, thats a bunch of [I]bs[/I] > But no.. not paris.. damn spoiled [I]whore [/I]*Ahem* | |
Re: 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 … | |
Re: [B]Mauro, [/B]more than 30 posts and you still don't use code tags? | |
Re: > Why? [URL="http://www.daniweb.com/forums/post191618-8.html"]Answer.[/URL] | |
Re: 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 - … | |
Re: 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. ;-) | |
Re: Get a good video player like VLC or MPStar. If the files still don't work, they must be corrupted. | |
Re: My Best: 33.96, you can even see my name there, I am one among the top ten :D | |
Re: > ? Rashakil is saying there are other bookmarking sites out there which exist for the same purpose of submitting links and articles. :-) | |
Re: 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() { … | |
Re: > 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. ![]() | |
Re: 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; … | |
Re: 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 … | |
Re: 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] | |
Re: 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. | |
Re: 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] … | |
Re: Too bad, but I guess nothing can be done which would predict or stop such things. | |
Re: 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.. ;-) | |
Re: 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" … | |
Re: 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. … | |
Re: 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? | |
Re: [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... | |
Re: Though I personally haven't used it, [URL="http://expat.sourceforge.net/"]this[/URL] seems promising. |
The End.