3,892 Posted Topics
Re: Take a look at [URL="http://www.daniweb.com/forums/post502357-3.html"]this post[/URL]. It loops through all the options of a select box and checks for those which are selected. You can then construct a query string based on that. For eg. if you have a select box name "selBox" from which you have selected two options … | |
Re: > Firefox requires the semicolons after the statements. IE lets you cheat. Bosh. Ecmascript doesn't require you to have semicolons at the end of statements. Automatic semicolon insertion takes place during the parsing phase. There are no browser exceptions to this rule. > And you have not &-coded your < … | |
Re: > no , receiver write arbic and reach to me arbic You need to provide us more information. Which language is your chat application written in? Is it a web application or a desktop application? Have you coded it or is it a third party application? | |
Re: You have been given your answer. A URI can't contain any spaces and some other special characters, and if they do, they need to be encoded. With the way you are currently doing things, when the country name with spaces is encountered, the URI becomes [icode]report.jsp?address=some address[/icode] when it should … | |
Re: And if you still want to know a bit more about this thing, [URL="http://peter.michaux.ca/article/3019"]this blog post[/URL] is does a good job of doing that. | |
Re: Inline javascript code is really not recommended. Firstly it is difficult to maintain since it clutters the already cluttered markup. Secondly, it absolutely lacks the separation of logic and presentation, something which you should definitely try to achieve always. Thirdly changing the logic may require changing the code at multiple … | |
Re: Read the part about document.cookie on [URL="http://www.quirksmode.org/js/cookies.html"]this [/URL]page. You are missing some important bits and pieces in your cookie creation code. Also it would be interesting to note that the cookie property of the document is not of type string though it normally is treated like one. Taking care of … | |
Re: Initially the ResultSet cursor is positioned before the first record. You compulsorily need to do a next() before any call to getXXX() so that the cursor is properly positioned. It's actually a good idea to read the documentation of the function you are using in case of any exception / … | |
Re: > An alternative approach to using a return statement is to set the "event.returnValue" to false: ...which would only work in IE. In IE the event generated becomes a event property of the window object whereas in Gecko based browsers it is passed as a first argument to the event … | |
Re: You should be able to achieve what you want by making small changes in your existing code. Paste your code as digital-ether mentioned so we can give some suggestions. Here is how I would personally do it: [code] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Test</title> <script type="text/javascript"> function init() … | |
Re: Wish all the people on this forum a Merry Christmas and a Happy New Year on behalf of me and my country. :-) | |
Re: What do you mean by *lauch* an IFRAME? Surely you must be meaning to say you *load* a HTML page in the existing IFRAME? If so, the code which does this might help us in knowing why your web page is not loaded in the IFRAME in IE. | |
Re: > switch-case statements can check only integer or character values. To be more precise, switch statements can handle all Integral types except long. Character values and Integral values are not separate entities as explained below. A primitive type is predefined by the Java programming language and named by its reserved … | |
Re: Try something like: [code=javascript] /** * Alerts out the selected item values of a select box * * @author sos * @param {HTMLFormElement} frm The reference to the form element * @param {String} name The name of the select box */ function show(frm, name) { var selOpts = frm.elements[name].options; for(var … | |
Re: > Is it possible to make a c++ game? Commercial games are almost always made in C++ with the game scripting done using scripting languages like Lua and Python. This isn't a surprise considering performance is of prime importance. Also read [URL="http://www.daniweb.com/forums/thread63827.html"]this.[/URL] | |
Re: > Yes, Praise God. That's incredible. Yes, praise the wheelchair. | |
Re: > why not make a section on Wikipedia itself and have a link to it? Sounds like a good idea. But allowing everyone to contribute would be like making a big mess out of it, not to mention it would stain the name of Daniweb in general, and choosing you … | |
Re: More motivation for l33t speak. Sigh, what has the world come to. :-) | |
Re: > [icode]Class.forName("oracle:jdbc:driver:OracleDriver");[/icode] There is no class which goes by the name of [ICODE]oracle:jdbc:driver:OracleDriver[/ICODE]. Replace those : with . and you should be fine provided you have included the [ICODE]classes12.jar[/ICODE] or some other thin oracle driver in your classpath. | |
Re: > I prefer MS-DOS over any of the current systems. Right.... And you are currently making this post sitting on an MS-DOS system. Great! | |
Re: Huh? How can anyone other than Dani solve the problem? The best you can do is to wait till Dani finds the cause and fixes this problem. | |
Re: One way would be to try to create an IFRAME element using Javascript. If that fails, you can be sure that the browser doesn't support IFRAMES. But this requires your user to have javascript enabled. [code] var e = document.createElement("iframe"); if(!e) alert("Your browser doesn't support IFRAMES"); [/code] Another way to … | |
Re: We have no way of knowing how your interface looks / how your table structure looks like. Next time try posting a more detailed explanation of how your application looks like. There are some visible problems with your code: [LIST] [*]Consider using PreparedStatement instead of normal Statement to get around … | |
Re: On the top left corer of your IDE, just below the toolbar icons, there would be a 'Services' tab. Focus on that tab, go to 'Servers' and expand that category. If you see Tomcat listed there, just right click on it and you will get an option to set the … | |
Re: This is because Javascript searches for 'flow()' in the global scope but it so happens that your declaration of flow being present in the function imageFlow is not visible / is not a property of the global object. This can also be attributed to the fact that setTimeout and setInterval … | |
Re: > [ICODE]window.location=randomlinks[counter];[/ICODE] This is incorrect since location is an object or a property of the window object and you are assigning a string to it. The correct way of doing it is [ICODE]location.href = randomlinks[counter]; [/ICODE]([ICODE]window[/ICODE] object is implied) >[ICODE] counter = (++counter)%randomlinks.length;[/ICODE] Don't see this would serve any purpose … | |
Re: Creating a secure form has got nothing to do with Javascript. The javascript used under normal scenarios for enhancing the user experience and is client side only. In order to create a form whose data would be sent over a secure connection, you need to look into a protocol named … | |
Re: > AJAX something a novice can use? That depends on what you mean by novice. If by noivce you mean someone new to programming then it would be a tough call. But if have any exposure to web development it should be a breeze. > Can you recommend any books/website … | |
Re: > you dont actually see the page interacting with the javascript so it would technically be a html > page Every page served to the client technically has a content type of 'text/html'. The dynamic nature is due to the merit of the form element being able to post its … | |
Re: > double word; > print(word); //print unsorted array > Arrays.sort(word); //sort the array > print(word); //print sorted array What are these things doing outside a method? Why is 'word' of type double and why is it declared as member variable of the servlet class which in itself lends to poor … | |
Re: First of all you should report the post in consideration so that the entire mod team have a look at it and decide whether it violates the site rules or not. With a lot of these things going around lately, I am sure there would be something definite coming out … | |
Re: > Building on what you already have > [ICODE]onkeydown="handleEvent()[/ICODE] Too many problems with the snippet you posted. First of all, Firefox expects you to pass the event object when invoking the event listener. It should be [ICODE]onkeydown="handleEvent(event)[/ICODE] > [ICODE]var FirstTextbox = e.srcElement || e.which;[/ICODE] This doesn't make any sense. [ICODE]e.which[/ICODE] … | |
Re: Please post your code using code tags, you have been already asked to do this in another thread. | |
Re: â—„ why vector is called synchronised? Because it's methods are synchronized. â—„ why vector is synchronised? A decision made by the language implementors. Take a look at the source code of the Vector class and things will become a bit more clear for you. Just don't be attracted by the … | |
Re: > what is dynamic web page A web application normally consists of two types of web pages -- static web pages and dynamic web pages. In the case of static pages, the content served by the web server in the event of that page being requested is the same across … | |
Re: This is because you are forgetting that whitespaces form a part of the DOM. The whitespace between your <a> and <p> elements (a newline in your case) forms a Text Node. To get hold of an element you would have to do something like this: [code=html] <!-- First.html --> <!DOCTYPE … | |
Re: Netbeans and Eclipse are the two dominant free ones out there which I normally use. | |
Re: > please.............i'd be very very grateful to anyone who cud help me out, before 25th > December! No, we won't help you fool / deceive your trainer. Sorry we won't be able to send the code but 'Merry Christmas' in advance. Have a nice day. | |
Re: > Just to be clear, the "Java" = J2SE right? No, to be precise. Java is a general purpose programming language. J2SE platform is a particular environment in which the Java programs run. All platforms have a VM(virtual machine) on which the programs run and a specialized API for that … | |
Re: > You either love them or you hate them Bang on target. I have seen people either worship those Head First books or avoid them like plague. The funny sketches found in all Head First books can be a good motivator or a complete turn off depending on your reading … | |
Re: Can you link us to a sample page so we can find out what *exactly* are you trying to do? | |
Re: main doesn't return void and avoid using non-standard functions like clrscr(). Also your program can be made more compact, efficient and simple if you make proper use of loops. How about something simple like: [code=c] #include <stdio.h> #include <stdlib.h> #define ROWSIZE 3 #define COLSIZE 3 void add(int a[][COLSIZE], int b[][COLSIZE], … | |
Re: A form is by default submitted when you press the return key. You need to show us how your form is structured so that we can offer more suggestions. Paste your code here with code tags. | |
Re: No, it's not possible. Javascript just offers a client side scripting solution, nothing more. Employ a full blown server side programming language for this task. | |
Re: If you are using IE7, this [URL="http://www.daniweb.com/forums/post485496-3.html"]post [/URL]might help you in some way. | |
Re: > but i could have sworn ints were immutable (and so a 2D array of them also should be, > right?). The concept of immutability doesn't apply to primitives. Sure, the objects of all the wrapper classes for primitives are immutable, but the primitives themselves aren't and neither are arrays … | |
Re: It has already been [URL="http://www.daniweb.com/forums/post483151-6.html"]solved[/URL]. |
The End.