2,040 Posted Topics

Member Avatar for wonder_laptop

You need to come up with a design of display first. Then you can aim to create a graphic for it. You could simply use 2D graphic to display which is not difficult to do. The main issue for you is how you want it to be presented. What constraint …

Member Avatar for Taywin
0
131
Member Avatar for Shizuo

In your program, the location of output file is the same location where your Java file is. You are trying to append to the file "Item.txt." Does the file exist? Also, what is the read/write/execution permission of the file? If the file exist but does not have write permission, you …

Member Avatar for Taywin
0
135
Member Avatar for cjay175

Please read this [URL="http://www.devcurry.com/2010/06/remove-links-and-display-text-using.html"]example[/URL]. It should be exactly what you are looking for. That's from a google search by the way...

Member Avatar for cjay175
0
93
Member Avatar for Amr87

1)Are you sure that your 'e' variable is defined? I mean, the ID 'Rectanglee' must exists in your page. 2)Do you specify style attribute of width & height to 'Rectanglee' element? If you don't, the parseInt(null) will return NaN.

Member Avatar for Taywin
0
145
Member Avatar for sun-tzu

Hmm... It is possible but inefficient to draw a circle using JavaScript. What you actually draw is a set of 'div' elements inside another div which has absolute position. You also need to add mouse listener to the absolute position div element in order to follow the mouse position. Not …

Member Avatar for Taywin
0
186
Member Avatar for >>> isaac = []

It is fine to have multiple hidden values inside a form. The problem is that you have multiple hidden values with exactly the same name but different values. I am not sure how you retrieve your data on your server side. You could use different name for different hidden value.

Member Avatar for >>> isaac = []
0
84
Member Avatar for tcollins412

Are you sure that the check for chrome is correct? Have you tried to use the Chrome's JavaScript debugger and try 'window.chrome' in the console? I am not sure that it is correct.

Member Avatar for Taywin
0
89
Member Avatar for retareed

I think the same. Variables in PHP starts with "$", and ".=" is a way to concatenate string in PHP. I'm not going to give more example because there are tons of example on the Internet. [URL="http://www.plus2net.com/javascript_tutorial/dropdown-list-demo.php"]Here[/URL] is one example. The javascript code for the page is [URL="http://www.plus2net.com/javascript_tutorial/dd-list.js"]here[/URL].

Member Avatar for Taywin
0
112
Member Avatar for sun-tzu

Hmm... Not sure what you mean here??? What do you mean by 'click through'? What do you mean by 'putting the cursor below a div element'? Could you show a sample snippet (a simple one) or HTML you already have?

Member Avatar for Taywin
0
1K
Member Avatar for Pinchanzee

Before going further, what browser are you using? What targeted browser are you working for? If I remember correctly "xmlhttp=new XMLHttpRequest()" does not work on IE because it requires different object.

Member Avatar for Pinchanzee
0
180
Member Avatar for coolvision

When you talk about Ajax, it means it involves a server; otherwise, you are dealing with pure JavaScript. In order to deal with passing parameter to other pages without a server, you may use Cookies to store your parameter variable on the client side. You should be able to find …

Member Avatar for Taywin
0
76
Member Avatar for apollokid

From what I read from [URL="http://api.jquery.com/remove/"]JQuery API[/URL], I think your format is wrong. Also, I am not sure whether it can be done exactly the way you want. In other words, from API I believe you can remove tags using a specific content it contains, but your way is the …

Member Avatar for Taywin
0
79
Member Avatar for tcollins412

If you want to toggle a display, do not use JavaScript to change the attribute. You should use CSS instead and use JavaScript to change the 'className' attribute. [CODE] // for example... // add CSS <style type='text/css'> .show { display: block; overflow: visible; } .hide { display: none; } </style> …

Member Avatar for Taywin
0
186
Member Avatar for bhanu1607

"onblue" event is sometimes tricky because it may not result what you want. If you want to use it, be more careful. Anyway, if you want it to be local, you could do it as followed... [CODE] <script> // pass in the whole element for easier validation function validateDate(elem) { …

Member Avatar for Taywin
0
116
Member Avatar for VAISHALI THAKER

You need to ask MatLab. Anyway, you need to read the video file in frame by frame. Make sure that your video file type is supported by MatLab. I think .avi is the best because it does not have much compression but file size is huge. Then, each frame, you …

Member Avatar for abdulumar
-1
104
Member Avatar for six_sic6

JavaScript is not able to create an image or doc file. You may need to do it from the server side (convert the data to whatever type you want and stream the data back to the client)...

Member Avatar for six_sic6
0
91
Member Avatar for buggyboy

From screening through, I found one type of syntax error which is at the line below. [CODE] body.match(/<span style="color:#0066FF">(.*)<\/span><\/a>/g) // and myarray = body.match(/<span style="color\:[^a-fA-F0-9][a-fA-F0-9][^"]+">([^<]+)<\/span><\/a>/g);[/CODE] This should be... [CODE] body.match(/<span style=\"color:#0066FF\">(.*)<\/span><\/a>/g) // and myarray = body.match(/<span style=\"color\:[^a-fA-F0-9][a-fA-F0-9][^\"]+\">([^<]+)<\/span><\/a>/g);[/CODE] but the second one could be a bit more intuitive as... [CODE] myarray …

Member Avatar for Taywin
0
312
Member Avatar for programmer12

As Agarsia said, the script requires jquery library. One thing which is very obscure is the setHeight() function. If you have the function declared somewhere, it may be OK; otherwise, your web page will stop right where the script error occurs. Unless you are writing out the page content using …

Member Avatar for Taywin
0
109
Member Avatar for toasty525

Are you trying to do this on PHP? This does not look like JavaScript when you try to use '<?' and '?>' symbol.

Member Avatar for Taywin
0
120
Member Avatar for curbster

If I understand correctly, your input is a type String. Then you want to go through each character in the string to count number of each characters (not include any number character)? Your algorithm is odd. You tend to treat upper and lower case the same. If you are counting …

Member Avatar for curbster
0
1K
Member Avatar for SeanC

How about you can use BufferOutputStream? You could build a byte array at whatever size you want. Then, use BufferOutputStream to write out each time. For example, your byte array size is 4kb, you would write out 4kb each time instead of 1 character at a time.

Member Avatar for SeanC
0
462
Member Avatar for lawrenceh

Hmm... You mean you want an auto refresh? Maybe something as follow could give you an idea... [CODE] var timerId function callAutoRefresh() { timerId = setTimeout("testFunction()", 250) } function testFunction() { // do the ajax call here // at the end of the part inside onreadystatechange and status==200 // call …

Member Avatar for lawrenceh
0
127
Member Avatar for simonquasar

What version is your jquery? If it is not 1.4, it may still contain the bug when you try to insert inline html code in the area tag.

Member Avatar for simonquasar
0
237
Member Avatar for KoolAide2010

Your idea is quite good, but there are so many ways to deal with this. Below is one way that I created in attempt to match what you want. 1.This page uses CSS background image to deal with image changing. 2.The page expects all images are in the same folder …

Member Avatar for KoolAide2010
0
147
Member Avatar for krip_101

Look at your line 136 [code] plf = plf* table[f[encoded[m]]][f[encoded[m+1]]]; [/code] The 'plf' becomes 0 when the value of 'table[f[encoded[m]]][f[encoded[m+1]]]' is equal to 0. The error comes from this line because you do not check what values inside the 'table' array is before you multiply with 'plf'. As a result, …

Member Avatar for krip_101
0
252
Member Avatar for vjcagay

Are you trying to get an answer for your homework/assignment? It would be better to search on the Internet rather than ask on a forum.

Member Avatar for ~s.o.s~
0
102
Member Avatar for zildjianfan

Read this [URL="http://www.howtocreate.co.uk/fixedPosition.html"]page[/URL] to see how you create the 'fixed' position on both IE and other browsers.

Member Avatar for Taywin
0
76
Member Avatar for johnray31

I doubt there is such a natural atomic operation in C++. If you use a library to force anything to be atomic, then it should. I would say no in this case.

Member Avatar for abdelhakeem
0
83
Member Avatar for LogicWeb

The problem is that it is very difficult to pinpoint the problem with what you are showing. There are so many JS files involved. There could be other side effect that may not be in the file you are mentioning... That's why I usually create JS files my own, not …

Member Avatar for LogicWeb
0
172
Member Avatar for softswing

It is a static method. You just need to implement a test method for JUnit using the method. What you want is to check whether it throws exception properly if something goes wrong. Also, you need to check if it can return what you want. That's all. Do you know …

Member Avatar for softswing
0
2K
Member Avatar for crazycat503

Hmm... I think it is not that... It should be that... [CODE]newlink="Action(" + locid + ",'add')";[/CODE] Here, you are passing 'locid' as a string to the function, but instead you are passing it as a variable. You need to do it as followed: [code]newlink="Action('" + locid + "','add')";[/code] You are …

Member Avatar for Taywin
0
145
Member Avatar for pauld581

OK, I don't completely get the picture you are explaining, but I will give it a try. You could hide all custom choices in different div inside one page. Also, if the div is hidden, make sure that all elements inside that you may want to pass their value to …

Member Avatar for Taywin
0
162
Member Avatar for kairoland

This part [code]document.onselectstart = new Function("return false");[/code] will prevent you from highlighting text. Your SwitchMenu() function is so out dated. You can now use 'document.getElementById()' on any browser without checking for the existence of the function nowadays. Also, accessing 'style.display' directly that way may not be working correctly. You already …

Member Avatar for Taywin
0
160
Member Avatar for pgmarco
Member Avatar for SerialSpiller

Do you want the add() method to be mutator or not? If so, you can keep what you do but change the way you create your method in your main. Assuming that all your current codes are working. Add method... [CODE] //Addition method //I use 'this' to be more explicit …

Member Avatar for jane010794
0
1K
Member Avatar for agons

Hmm... Here is my guess... [CODE] // an example of output 1 3 5 5 2 4 6 6 6 3 3 3 3 4 5 5 1 2 1 2 // then what you need to display is.. 1 3 5 5 2 4 6 6 6 [ 3 …

Member Avatar for polk230
0
2K
Member Avatar for ironmancpp

1)What do you mean by don't get it? You mean no print at all or value is not correct? [CODE] for(int q=0; q<strlen(read[k].a); ++q) { // each char in read[k] check1=0; // <-- should be outside the loop and set to 1 for(int p=0; p<strlen(jum); ++p) { if( read[k].a[q] == …

Member Avatar for mtbs1826
0
240
Member Avatar for omaiaa0p

I believe that the session value is stored in the server side (possible HTTPSession or whatever it is called). What you are looking for is to send a new value to the server, not manipulating session value from the client side. If you are going to use hidden field, just …

Member Avatar for omaiaa0p
0
106
Member Avatar for miha2

First, if you don't know how to construct code to solve a problem, how do you know that blindly modifying would make the code work the way it should be? Second, if someone post a working code, it is a working code! So why do you need to modify it …

Member Avatar for miha2
0
745
Member Avatar for Sunshineserene

I guess you are using ArrayList a wrong way... 1)ArrayList is not supposed to hold collection type (array) 2)ArrayList is not suitable to use with multi-dimensional array 3)ArrayList method to get its length is size(). The 'length' is only for primitive array By the way, I don't know why you …

Member Avatar for BestJewSinceJC
0
6K
Member Avatar for ronny22

You added scene twice in your main() but you attempt to iterate through scene more than 2 times. The index is 2, but your scene array has only 2 elements (0 & 1 index). You need to check for the scene size as well while you are iterating in your …

Member Avatar for ronny22
0
169
Member Avatar for kchadek

One more thing, you should check for the length of your incoming argument. If the number of argument is not equal to what you want, it could cause your program to crash at the commandline.

Member Avatar for apines
0
162
Member Avatar for ppohlmann

You can associate uniqueness of element ID with the number of form you are creating (1, 2, ...). If you are using database data, you can use the ID of your data to cooperate (not plainly use but concatenate to a string) with the element as an ID as well …

Member Avatar for ppohlmann
0
118
Member Avatar for mybluehair

Not sure what C++ library are you using. It looks like you are trying to concatenate a string with char while the library does not include + operator overload... You need to use string concatenation, but I do not know your library syntax. Someone else should know this.

Member Avatar for Ancient Dragon
0
126
Member Avatar for cutekate

Doesn't look like you understand programming... Also, I don't really completely understand what you mean... You mean, you want to split the string and then put it in a table? An example below is to write out the page content with splitting string. However, it does not work with already …

Member Avatar for Taywin
0
1K
Member Avatar for apanimesh061

What file name did you save as? You must save the file name as exactly the same as your class name 'example.java'. Line 2, it is 'String', not 'string'. Line 4, try Sysytem.out.println("This is a simple Java program...."); instead. You are calling a wrong 'printIn' which should be 'println'. Also, …

Member Avatar for packetpirate
0
209
Member Avatar for titan5

ArrayList may or may not be able to hold an array size larger than max int. Remember that everything is holding in memory, and Java has its maximum memory for the use. Therefore, it is limited by your computer memory. If you want to hold an array size larger than …

Member Avatar for afas87
0
4K
Member Avatar for rayden150

Put what you are attempt to System.out as a string in an object like JTextArea. Then add the JTextArea to the panel...

Member Avatar for kramerd
0
229
Member Avatar for Sunshineserene

Because you are using iterator but you never increase value of x and y you are using in the loop. Insert y=0; before line 92 Insert y++; after line 96 Insert x++; before line 98

Member Avatar for apines
0
242
Member Avatar for realproskater

This post looks exactly the same as [URL="http://www.daniweb.com/forums/thread322674.html"]this[/URL] post... Smell fishy about this now...

Member Avatar for mtbs1826
0
688

The End.