3,892 Posted Topics

Member Avatar for mariecon

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 …

Member Avatar for mariecon
0
100
Member Avatar for anthmaina

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

Member Avatar for ~s.o.s~
0
168
Member Avatar for CsE2007

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

Member Avatar for ~s.o.s~
0
74
Member Avatar for shweta797

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 …

Member Avatar for ~s.o.s~
0
98
Member Avatar for ineuw

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.

Member Avatar for ~s.o.s~
0
112
Member Avatar for kahaj

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 …

Member Avatar for ~s.o.s~
0
225
Member Avatar for earachefl@comca

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 …

Member Avatar for ~s.o.s~
0
100
Member Avatar for danik

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

Member Avatar for ~s.o.s~
0
80
Member Avatar for OmniX

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

Member Avatar for OmniX
0
104
Member Avatar for saranya_arun

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

Member Avatar for ~s.o.s~
0
266
Member Avatar for peter_budo

Wish all the people on this forum a Merry Christmas and a Happy New Year on behalf of me and my country. :-)

Member Avatar for ZZucker
1
234
Member Avatar for ashkash

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.

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

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

Member Avatar for Jishnu
0
192
Member Avatar for palcham

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 …

Member Avatar for palcham
0
219
Member Avatar for jacques95

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

Member Avatar for sneekula
0
159
Member Avatar for The Dude
Member Avatar for goldeagle2005
0
180
Member Avatar for The Dude
Member Avatar for ndeniche

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

Member Avatar for Serunson
0
155
Member Avatar for Jishnu
Member Avatar for Jishnu
0
274
Member Avatar for peter_budo
Member Avatar for radhachowdary

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

Member Avatar for ~s.o.s~
0
149
Member Avatar for sneekula
Member Avatar for <1337>Me</1337>

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

Member Avatar for DimaYasny
0
157
Member Avatar for kv79

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.

Member Avatar for happygeek
0
162
Member Avatar for kaushik259106

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 …

Member Avatar for kaushik259106
0
442
Member Avatar for jellyfish888

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 …

Member Avatar for ~s.o.s~
0
152
Member Avatar for mrityunjay22

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 …

Member Avatar for ~s.o.s~
0
93
Member Avatar for adaykin

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 …

Member Avatar for ~s.o.s~
0
482
Member Avatar for tinwindow

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

Member Avatar for tinwindow
0
126
Member Avatar for kimbokasteniv

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 …

Member Avatar for kimbokasteniv
0
138
Member Avatar for drsmith

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

Member Avatar for Jugortha
0
105
Member Avatar for x3n1x

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

Member Avatar for x3n1x
0
151
Member Avatar for jellyfish888

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

Member Avatar for ~s.o.s~
0
493
Member Avatar for ithelp

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 …

Member Avatar for Narue
0
309
Member Avatar for mithesh

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

Member Avatar for ~s.o.s~
0
84
Member Avatar for gourav_jain

Please post your code using code tags, you have been already asked to do this in another thread.

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

â—„ 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 …

Member Avatar for Ezzaral
0
245
Member Avatar for suha899
Re: hi

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

Member Avatar for ~s.o.s~
0
82
Member Avatar for anital

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 …

Member Avatar for hielo
0
120
Member Avatar for majestic0110

Netbeans and Eclipse are the two dominant free ones out there which I normally use.

Member Avatar for majestic0110
0
151
Member Avatar for pizzazzman2000

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

Member Avatar for jwenting
0
138
Member Avatar for Nige Ridd

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

Member Avatar for jwenting
0
137
Member Avatar for Tom Tolleson

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

Member Avatar for ~s.o.s~
0
202
Member Avatar for Pro2000

Can you link us to a sample page so we can find out what *exactly* are you trying to do?

Member Avatar for ~s.o.s~
0
103
Member Avatar for rizrash

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

Member Avatar for Jishnu
0
186
Member Avatar for Pro2000

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.

Member Avatar for Pro2000
0
115
Member Avatar for hidash_in

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.

Member Avatar for ~s.o.s~
0
57
Member Avatar for Oxiegen

If you are using IE7, this [URL="http://www.daniweb.com/forums/post485496-3.html"]post [/URL]might help you in some way.

Member Avatar for hielo
0
201
Member Avatar for EMUGOD

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

Member Avatar for Ezzaral
0
118
Member Avatar for smilyswapna10

It has already been [URL="http://www.daniweb.com/forums/post483151-6.html"]solved[/URL].

Member Avatar for ~s.o.s~
0
221

The End.