3,892 Posted Topics

Member Avatar for johnson7767

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]

Member Avatar for ~s.o.s~
0
174
Member Avatar for chauhansanjiv

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.

Member Avatar for MidiMagic
0
107
Member Avatar for kings

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 …

Member Avatar for hielo
0
103
Member Avatar for dvduval

> 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". :-)

Member Avatar for lasher511
0
134
Member Avatar for lookof2day

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

Member Avatar for ~s.o.s~
0
158
Member Avatar for manvendra

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

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

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&amp;f=29">Post a New Thread</a></td></tr> <tr><td style="cursor: …

Member Avatar for Dani
0
284
Member Avatar for jencinas69

Read [URL="http://developer.mozilla.org/en/docs/DOM:window.open"]this [/URL]and [URL="http://www.daniweb.com/forums/thread98874.html"]this[/URL].

Member Avatar for ~s.o.s~
0
63
Member Avatar for staneja

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

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

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

Member Avatar for ~s.o.s~
0
192
Member Avatar for fredjahed

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.

Member Avatar for ~s.o.s~
0
120
Member Avatar for piers
Member Avatar for sania kohli

> I honestly (for the teacher) hope it's not supposed to be in English... It's not. It's Hindi. I pity the teacher.

Member Avatar for darkagn
0
433
Member Avatar for sk8ndestroy14

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 …

Member Avatar for palegray.net
0
2K
Member Avatar for klefevre

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.

Member Avatar for klefevre
0
136
Member Avatar for johnywhy

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

Member Avatar for johnywhy
0
113
Member Avatar for himanjim

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.

Member Avatar for johnywhy
0
142
Member Avatar for newbieGirl

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

Member Avatar for Black Box
0
661
Member Avatar for jencinas69

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.

Member Avatar for ~s.o.s~
0
68
Member Avatar for sivakumarl
Member Avatar for degamer106

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 …

Member Avatar for degamer106
0
198
Member Avatar for stiff

Post the question in the ASP forums with the relevant code snippets so there would be a better chance of getting help.

Member Avatar for ~s.o.s~
0
39
Member Avatar for The Dude
Member Avatar for SofMy

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

Member Avatar for ~s.o.s~
0
29
Member Avatar for Dennis_Phils

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

Member Avatar for ~s.o.s~
0
326
Member Avatar for johny112
Member Avatar for kahaj

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

Member Avatar for kahaj
0
249
Member Avatar for r5ingh

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 …

Member Avatar for r5ingh
0
468
Member Avatar for adrive

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

Member Avatar for somedude3488
0
97
Member Avatar for Tauren

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

Member Avatar for addy999
0
744
Member Avatar for Sturm

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 …

Member Avatar for MidiMagic
0
496
Member Avatar for adrive

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

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

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 …

Member Avatar for ~s.o.s~
0
130
Member Avatar for Jishnu

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

Member Avatar for lookof2day
0
332
Member Avatar for adrive

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 …

Member Avatar for adrive
0
100
Member Avatar for The Dude

I was able to hear till E (21.1kHz) and I am quite old. Maybe I really am a mosquito. ;-)

Member Avatar for bumsfeld
0
483
Member Avatar for kobi

Maybe [URL="http://www.daniweb.com/forums/showthread.php?t=83862"]this [/URL]would help if you want to load a local XML file.

Member Avatar for kobi
0
98
Member Avatar for justapimp

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 …

Member Avatar for justapimp
0
194
Member Avatar for Jishnu

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

Member Avatar for Jishnu
0
319
Member Avatar for kahaj

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

Member Avatar for ~s.o.s~
0
136
Member Avatar for Loyen

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

Member Avatar for Narue
0
214
Member Avatar for stevex
Member Avatar for zandiago
0
137
Member Avatar for Inny

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.

Member Avatar for MidiMagic
0
183
Member Avatar for ITAutobot25

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

Member Avatar for masijade
0
197
Member Avatar for rpk5000

Just convert the given boolean array to an integer array by looping through the contents and pass it to your existing function.

Member Avatar for rpk5000
0
225
Member Avatar for k8f1

Maybe [URL="http://www.daniweb.com/forums/thread93671.html"]this[/URL] can help.

Member Avatar for ~s.o.s~
0
78
Member Avatar for van2006

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 …

Member Avatar for ~s.o.s~
0
144
Member Avatar for Tom Tolleson

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

Member Avatar for salehCoder
0
85
Member Avatar for verbob

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]

Member Avatar for verbob
0
199
Member Avatar for vsr

Maybe [URL="http://web.tampabay.rr.com/bmerkey/examples/landscape-test.html"]this [/URL]would be of some help to you.

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

The End.