3,892 Posted Topics
Re: Hielo, please use code tags when posting code so that your code would be easily legible i.e. wrap your entire code in: [noparse][code] /*your code here */ [/code][/noparse] [B]OR[/B] [noparse][code=javascript] /*your code here */ [/code][/noparse] | |
Re: You misread the requirements. The task is to change the [I]background color of the selected text[/I] in a textarea and not the background color of the textarea. | |
Re: What do you mean by 'not working'? We have no idea what you are trying to exactly achieve here? Are you testing this application in Firefox? If no, then you should start using it. If yes, then look at the error console. From what I can see, you are accessing … | |
Re: > How is that insanity? > I don't get it either. You guys post in the 'Insanity' thread and expect it to make sense, that's just plain "insane". :-) | |
Re: Here is a crude example assuming that you are using the Logging API of Java and not some third party logging library. [code=java] public class Main { private static Logger _log = Logger.getLogger(Main.class.toString()); public static void main(String[] args) throws Exception { FileHandler handler = new FileHandler("c:/abcd", 512, 512); handler.setFormatter(new SimpleFormatter()); … | |
Re: > I typed a simple html program but the JavaScript is not running. I guess that by 'not running' you mean a security alert which pops up at the top of the page saying it has blocked a script. If yes, then this is a common problem faced by users … | |
Hello, The 'Mark this forum read' link present in the 'Forum Tools' drop down menu on each page doesn't work for me i.e. is non-clickable. On viewing the source code I came across this: [code=html] <tr><td class="thead">Forum Tools<a name="goto_forumtools"></a></td></tr> <tr><td style="cursor: default;" class="vbmenu_option vbmenu_option_alink"><a href="newthread.php?do=newthread&f=29">Post a New Thread</a></td></tr> <tr><td style="cursor: … | |
Re: Read [URL="http://developer.mozilla.org/en/docs/DOM:window.open"]this [/URL]and [URL="http://www.daniweb.com/forums/thread98874.html"]this[/URL]. | |
Re: > so can anybody help m,e how i can include so many files together in classpath Use a build tool like Ant or Maven to ease this task. Using a build tool has become a d-facto standard for compiling / building / deploying your application and you should definitely go … | |
Re: > This is my first Java course this is really frustrating It would be better if you did a bit of research / reading before jumping right into coding. Just trying out various things at random wouldn't push you any close to attaining enlightenment. Read your textbook, try to understand … | |
Re: Post the proper code along with the directory structure. [icode]element.style.backgroundImage = "url(my_image.jpg)";[/icode] should work assuming that the image is present in the same directory as the html file. | |
![]() | |
Re: > I honestly (for the teacher) hope it's not supposed to be in English... It's not. It's Hindi. I pity the teacher. | |
Re: Nice work. Keep up the good work guys. If this event goes successful, maybe you should come up with more such creative ideas in which Daniweb members can participate. At least this would liven things up a bit around here, since Narue is under the impression that she is the … | |
Re: Read [URL="http://www.jibbering.com/faq/faq_notes/form_access.html"]this[/URL]. As far as your problem is concerned, [ICODE]document.data_entry.topic.options(document.data_entry.topic.selectedIndex).text;[/ICODE] should be [ICODE]document.data_entry.topic.options[document.data_entry.topic.selectedIndex].value[/ICODE]; The above way of referencing form elements is pretty inefficient and partly incorrect which is what the tutorial I posted aims at explaining. | |
Re: > I've read that XMLHttpRequest cannot query external domains So try [URL="http://ajaxian.com/archives/how-to-make-xmlhttprequest-calls-to-another-server-in-your-domain"]this [/URL]and [URL="http://ajaxian.com/archives/cross-domain-xhr-with-dojo"]this[/URL]. | |
Re: It would be nice if you could share your knowledge with others out there by posting the code in consideration in the [URL="http://www.daniweb.com/code/java.html"]code snippets[/URL] section. | |
Re: > Maybe we should take this to the next level and start optimizing this in assembly? It has got nothing to do with assembly. What he proposed / pointed out was a valid point. | |
Re: If you want this to be done at client side, then yes, it can be done. Read [URL="http://www.w3schools.com/jsref/jsref_obj_date.asp"]this[/URL] and [URL="http://www.quirksmode.org/js/introdate.html"]this[/URL], try out something and post the code if you get stuck along with code tags. Read the forum announcements and site rules so that you can get maximum help here. | |
Re: Read [URL="http://www.daniweb.com/forums/thread98710.html"]this [/URL]thread. | |
Re: Something simple like this would have done the job: [code=java] public class Test { public static void main(String[] args) { int tries = 0; boolean isNormalTermination = true; final int LIMIT = 3; final float SENTINEL = -1.0f, TOLERANCE = 1e-6f; float val = TOLERANCE, total = 0f; Scanner in … | |
Re: Post the question in the ASP forums with the relevant code snippets so there would be a better chance of getting help. | |
Re: > How to coding title bar in an alert dialog box? You can't customize the alert box if that's what you are trying to do. | |
Re: >When pressing the enter button, the javascript function would work on IE but not in Firefox. This is because, in Firefox, the event is passed as a parameter to the event handler. [ICODE]event[/ICODE] property of the [ICODE]window[/ICODE] object is IE only. [code=javascript] function enterHere(e) { e = e || window.event; … | |
![]() | Re: Or just: bool isEven(int x) { return(x % 2 == 0); } ;-) ![]() |
Re: » You can't use the [ICODE]<body>[/ICODE] tags when using [ICODE]<frameset>[/ICODE] tags. Remove those from your [ICODE]main.html[/ICODE] » You are referring to the frames in a wrong manner. Use the [ICODE]'top'[/ICODE] property of the[ICODE] window[/ICODE] object to refer to the parent window. You can then access the frames using [ICODE]top.frames['frameName'].[/ICODE] » … | |
Re: r5ing: A few things: » Don't use scanf or it's non-standard variants for accepting user input. There are better ways of achieving it. Read [URL="http://www.daniweb.com/tutorials/tutorial45806.html"]this[/URL]. » The way you expose the interface doesn't seem to be right. Make encode() return a char array instead of nothing. » Also since Morse … | |
Re: > Can there be any other ways so that i won't have to manually append each value to the > same variable before posting the data? Not that I know of. You can of course write your own function 'serializeForm()' which would work in all cases by returning a string … | |
Re: [quote=proliant_fan;274173]i mastered vb for concepts then c++ console apps, then i leart basic win32/mfc then i got a book on directx game making which came with tutorials, modelling software and an IDE[/quote] I agree with you completely. Not many people fully understand what is meant by "Rome was not built … | |
Re: I don't claim to possess a solution, but lets analyze it this way. There has to be a reason for each and every post made, a motivation for an expert to post on the forums. Let's come up with a few of them. [B]Money[/B] Yes, money. Money makes the world … | |
Re: As long an HTML input element exists, it's value can never be null. It can be a blank string (string of length zero), but not null. And if that element doesn't exist, it gives you an 'undefined' instead but never null. [code] <html> <body id="bdy"> <form action="#" name="frm"> <input id="txt" … | |
Re: A lot of problems to begin with. » You are accessing form elements the wrong way. Read[URL="http://www.jibbering.com/faq/faq_notes/form_access.html"] this.[/URL] » prompt() returns a string and you are treating it as a number which in itself is introducing a lot of problems. » setTimeout() takes it's second parameter as milliseconds and not … | |
Re: > Can we use static nested classes practically? Look at the source code of the 'Entry' inner class of 'HashMap'. The source can be found in the JDK directory in src.zip. | |
Re: Ajax is asynchronous. The time taken by the request to be completed and the response to reach the client depends on the time take at the server for processing each of the requests which may vary. A better way would be to call the 'loadSubjectList()' function inside the 'onreadychange' event … | |
Re: I was able to hear till E (21.1kHz) and I am quite old. Maybe I really am a mosquito. ;-) | |
Re: Maybe [URL="http://www.daniweb.com/forums/showthread.php?t=83862"]this [/URL]would help if you want to load a local XML file. | |
Re: Is the event which initiates the sending of information from one page to another user initiated? Do you want this to be done server side or client side? If you want to do it server side, just set those values in hidden fields, extract those using the server side language … | |
Re: > Why does the JVM initialise the data fields with default values AFAIK, design decision by the language implementors. Also makes sense since I wouldn't want the members of my newly created instance to have a value of 'undefined'. > What is the need for such a procedure of calling … | |
Re: > [icode]<!*************SHIPPING INFO*********************>[/icode] Your commenting is off. It should be: [icode]<!--*************SHIPPING INFO*********************-->[/icode] > [icode]if (cardChoice = false)[/icode] You are assigning a value of false to cardChoice and then testing it, hence this condition would never be true irrespective of the value of cardChoice before. Maybe [icode]if(!cardChoice)[/icode] is what you wanted … | |
Re: > So, by now it seems like C++ will be the futures programming language. I was expecting something along the lines of Java or C if you are going by popularity though it would be nice to know the source of your conclusion. > Write down every thing about programming … | |
Re: What is 'photoslider.filters'? Where is it defined? You just can't paste any random code here and expect someone to figure out what is going on. | |
Re: Maybe something like this: [code=java] public class DirTest { public static final String PATH = "c:/DELETE_THIS"; public static final String NAME = "inventory.dat"; public static void main(String[] args) { try { File base = new File(PATH); if (!(base.exists() && base.isDirectory())) if (!base.mkdir()) throw new IOException("Directory creation failed"); File file = … | |
Re: Just convert the given boolean array to an integer array by looping through the contents and pass it to your existing function. | |
Re: Maybe [URL="http://www.daniweb.com/forums/thread93671.html"]this[/URL] can help. | |
Re: Can't be done in Javascript, at least not if you are not using Ajax. You must be using some kind of server side technology, yes? Use that to ship back data to the server so that the changes made by the client are persisted and shown to him next time … | |
Re: 'Head Rush Ajax' is certainly a good book to start off with. You can read the book review [URL="http://blogs.relevancellc.com/2006/04/12/relevance-review-4-head-rush-ajax"]here.[/URL] Explore that site and read the reviews of some other Ajax books to get the feel of things. | |
Re: Use the 'id' of the element to do the same. [code=javascript] var s = document.getElementById('results').style; var b = document.getElementById('buttonId'); if(!s || !b) return; b.onclick = function() { s.display = 'none'; };[/code] | |
Re: Maybe [URL="http://web.tampabay.rr.com/bmerkey/examples/landscape-test.html"]this [/URL]would be of some help to you. |
The End.