428 Posted Topics

Member Avatar for Violet_82

Chaps, something that occurred to me today. If I have a div with `display:hidden;` and I want it to unhide it and animate it at the same time with `animate()`, how do I achieve that? I had a look at the jquery API and it says that `animate()` unlinke `slideDown()` …

Member Avatar for iamthwee
0
208
Member Avatar for scaiferw

Agree with ggamble, but some time ago I had a similar problem (personally I wouldn't use a table on a mobile site unless the client specifically requires you to do so, otherwise I would find a different way to display information), but you can have a look at responsive tables. …

Member Avatar for Violet_82
0
265
Member Avatar for Violet_82

Hi all, I was wondering if anybody can enlighten me on when it is best to separate javascript code in different script. Let me give you a practical example. I have a script that I would like to run everytime the page is resized, so I am thinking to use …

Member Avatar for Violet_82
0
300
Member Avatar for Violet_82

Chaps, I wonder if you can help me with this problem please. In a nutshell I am trying to remove/add round corners around a container on the fly. The reason is that I have a div with some content that slides down and when the content is visible I want …

Member Avatar for Violet_82
0
269
Member Avatar for Violet_82

Chaps, today I was reading about exception handling and although the book explains them in sufficient details there is something that I really struggle to understand. Ok, here's the example they analyze: // Fig. 11.2: DivideByZeroWithExceptionHandling.java // Handling ArithmeticExceptions and InputMismatchExceptions. import java.util.InputMismatchException; import java.util.Scanner; public class DivideByZeroWithExceptionHandling { // …

Member Avatar for Violet_82
0
398
Member Avatar for Violet_82

Chaps, I have a question about nesting elements. I am using bootstrap for a project I am working on, and for whoever didn't know that - I am one of those - in bootstrap buttons are `display:inline-block;` Now, I have this situation at the moment: `<p><button>My button</button> This button means …

Member Avatar for Violet_82
0
2K
Member Avatar for crunkie

Hi, the gap is there because both the `td` and the image have a height: <td width="600" height="11" border="0" style="padding:0px;" colspan="2"> <img width="600" height="11" style="vertical-align:top;" src="xxxxx"> </td> Now, this `tr` <tr> <td width="600" height="11" border="0" style="padding:0px;" colspan="2"> <img width="600" height="11" style="vertical-align:top;" src="xxxxx"> </td> </tr> to me doesn't look like is …

Member Avatar for JorgeM
0
497
Member Avatar for dwlamb
Member Avatar for Violet_82

Chaps, I have just read about java interfaces and there is a nice exercise in my book that I would like to attempt, so I was wondering if you could help me to identify the best way to go about it. Here's the exercise: "Create 3 small classes unrelated by …

Member Avatar for Violet_82
0
6K
Member Avatar for Violet_82

Hi guys, I was wondering whether it is alwasy true that a button needs to be inside a form tag? Is that necessary all the time? > The W3C say that The FORM element acts as a container for controls so kind of yes really, but I 'd like to …

Member Avatar for Meir David
0
220
Member Avatar for Md.Akaash

I have started to use Bootstrap quite recently, personally I think it's just a waste of time, but anyway, I think the reason why it is breaking is because you are using the table inside the grid - if I understand correctly what you're saying. My suggestion is to get …

Member Avatar for BMXDad
0
637
Member Avatar for Violet_82

Chps still having big problems uploading java files onto the forum, I keep getting the below error ![a7770cd5e7699bf618ad96734e519ad8](/attachments/small/2/a7770cd5e7699bf618ad96734e519ad8.png "align-left")

Member Avatar for Violet_82
0
271
Member Avatar for dwlamb

To start with, I'd say that rather than relying on the width of the label to position the input, you should remove that `width:8em` and give the input a margin-left. The input is a block element so you can safely have a margin applied to it. I am using linux …

Member Avatar for iamthwee
0
402
Member Avatar for Violet_82

Hi guys, I need to buy a new battery for my Samsung galaxy GT-I9000, because the one I currently have doesn't hold charge for that long. I wonder, do you think it is safe to get one off ebay/amazon, or is it better to get a samsung's? thanks

Member Avatar for Violet_82
0
233
Member Avatar for Violet_82

Hi chaps, I am looking for a not too difficult exercise which involves superclasses and subclasses (the java book I am reading doesn't really have any good one). So I was thinking about something like this: Create a superclass 2DimensionalShapes and 2 subclasses Rectangles and Triangles. I will then need …

Member Avatar for Violet_82
1
250
Member Avatar for vanessia_1999

It seems just a bit of ordinary javascript, the best way to find out how a function is called or implemented is to have a look at the code, have you done that? You cna download the html and even the script and figure it out from there. However, I …

Member Avatar for vanessia_1999
0
122
Member Avatar for Violet_82

Chaps I have an interesting and odd problem. Today I had the brilliant(??) idea of using google chart https://google-developers.appspot.com/chart/interactive/docs/gallery/linechart#Loading for a site I am building. It is all nice and dandy till I placed the graph inside a hidden container, planning to add some jquery and slide the graph down …

Member Avatar for Violet_82
1
621
Member Avatar for yaragalla_mural

To be honest with you @yaragalla_mural I don't like the way you have positioned the elements in your code, there is no need to position elements relatively if you can achieve pretty much the same effect with padding for the sake of argument. Check this code out and adjust the …

Member Avatar for TonyG_cyprus
0
165
Member Avatar for solomon_13000

If it helps, I try not to use hr anymore, anytime I need to achieve the same effect I will just use the css border property, it is much more reliable and works pretty much all the time in every browser. So say you have a `<div class="myDiv">...</div>` then just …

Member Avatar for Violet_82
0
244
Member Avatar for Violet_82

Hi all, I am reading a bit about inheritance, super classes and subclasses. Now when I build a java program I usually have a java file for the class and another one to test the class. I was wondering if I use a superclass and a subclass, should they be …

Member Avatar for Violet_82
0
362
Member Avatar for Violet_82

Chaps, just bought a Hard drive docking station for my 3.5" Hard Drive. This can be used for all sort of things, 3.5, 2.5, SD, USB etc etc, you can see it in the first picture ![6d7dc6ccb7cbf1014d447a842a474237](/attachments/large/2/6d7dc6ccb7cbf1014d447a842a474237.jpg "6d7dc6ccb7cbf1014d447a842a474237") At the bottom there is a button that has allegedly something to …

Member Avatar for Violet_82
0
192
Member Avatar for Violet_82

Hi I would be really interested to understand how exactly the toString() method works. I have read quite a bit about it, that it returns the string representation of an object, that the default one can be overridden with @Override etc etc. Let's have a look at some examples: @Override …

Member Avatar for Violet_82
1
227
Member Avatar for Violet_82

Hi, I am afraid somebody somehow broke the usb connector of my Lacie 1TB hard drive (Starck), so I can't connect it ot the laptop anymore. I have removed it from the case and noticed that the plug is actually gone completely and the filaments that used to connect it …

Member Avatar for caperjack
0
1K
Member Avatar for Violet_82

Chaps, I have tried to upload some java files on the forum (it's an exercise I was working on and after having done I tohught I would make the code available for everybody to use, in case anybody wants it), but there doesn't seem to be anyway to upload them, …

Member Avatar for Violet_82
0
504
Member Avatar for Violet_82

Hi all, I am having serious troubles connecting my laptop to the tv. I can do that with windows ok, but not in the linux. Somebody suggested to install bumblebee http://eternalvoid.net/tutorials/linux-optimus-gt650m/, which I seem to have successfully done. I think the reason was because my laptop had the nvidia drives …

Member Avatar for Violet_82
0
410
Member Avatar for Violet_82

HI all, I am trying to validate the input in my tic-tac-toe program. I had a good look around on the net and tried a few combinations, but I couldn't get anywhere. Some people seem to be using methods like hasNextInt(), some other a try and catch statement. I tried …

Member Avatar for Violet_82
0
326
Member Avatar for Violet_82

Hi all, I have just finished with my tict-tac-toe program, and I thought I'd post it here if anybody fancy giving me any feedback. Also, I have a problem with printing the board, probably due to my lack of knowledge in using `printf` as opposed to `println`. Anyway this is …

Member Avatar for Violet_82
0
237
Member Avatar for Violet_82

Hi all, I hope somebody can help me with this really annoying issue. Basically I have a some radio buttons and some text inside a label. This is in a small container and when the line of text breaks and goes to the other line, I want it to be …

Member Avatar for JorgeM
0
5K
Member Avatar for Violet_82

Hi guys, I am not sure this is right or not. If I have one variable whose value is true or false and I want to use it in an if statement I could easily do if(variable1){ //do this and that } but I want to check 2 variables I …

Member Avatar for Violet_82
0
194
Member Avatar for Violet_82

Hi chaps, quick question. Is a html form tag always required when you add a form to the html? In other words if you have a form and leave out the form tag will the code still validate? I have heard some saying that a form tag is only necessary …

Member Avatar for paulkd
0
113
Member Avatar for Violet_82

Hi, when I started to look into programming, one of the things I remember many programmers are quite keen on are setters and getters. I totally understand the importance of them but there is one thing that isn't really clear to me. If I have a class with some private …

Member Avatar for Violet_82
0
173
Member Avatar for Violet_82

Chaps, I am having some problems with a return statement in a function. I have this situation: public boolean isFine(){ for( int i = 0; i < myarray.length; i++ ){ for(int j = 0; j < myarray[i].length; j++ ){ if( myarray[i][j] == myEnumeration.FRIDAY ){ return false; } else{ return true; …

Member Avatar for Violet_82
0
172
Member Avatar for Violet_82

Chaps, sorry I have a silly question. I am not quite sure if this is right, but what is the differenct between the two below: public class myclass{ public static void main( String args[] ){ boolean variable1 = false; boolean variable2 = false; ... System.out.print(variable1 + " and " + …

Member Avatar for Violet_82
0
181
Member Avatar for Violet_82

Hi all, I wonder if you can help me at all. I need to display one ul list into separate (3-4) columns one next to the other one, only if the number of items is bigger than 6. Let's look at the following code. Html is: <div class="wrapper"> <h2 id="first">First</h2> …

Member Avatar for LastMitch
0
215
Member Avatar for Violet_82

Hi all, I have a few questions about compatibility mode. I am using IE9 at the moment. First and foremost, I have noticed that the compatibility icon tends to appear quite often when browsing the internet: it appears when I look at the bbc site http://www.bbc.co.uk/ and w3c schools just …

Member Avatar for Violet_82
0
87
Member Avatar for Violet_82

Hi all it's that time again, java exercise! Mindful of what happened last time http://www.daniweb.com/software-development/java/threads/449525/building-a-simple-airline-reservation-system-exercise/ , this time I have decided that I want to have all the pseudocode done before I even start thinking about how to code the whole thing. This is what the exercise requires: > Create …

Member Avatar for Violet_82
1
4K
Member Avatar for Violet_82

Chaps, I have come across something really really odd. I won't bother you with too many details, what happened on the website I am working on, but I have managed to recreate the issue in a very simple page. Basically, it seems to me that chrome doesn't handle list-style-position very …

Member Avatar for Violet_82
0
411
Member Avatar for Violet_82

Hi there, on one of my pages I am working on [url]http://www.antobbo.webspace.virginmedia.com/photography/category_1.htm[/url] I have a script which works in firefox, opera but it doesn't in chrome and IE. Now, let me explain first what the script is supposed to do. On the above page if you click on the second …

Member Avatar for 1@3RaJa
0
2K
Member Avatar for Violet_82

Hi chaps, I wonder whether this is possible or not. Basically, I have an absolutely positioned div with a width and height and a background image (it's a little arrow) that I want to overflow its container so that it sticks out and point at something. Is it possible with …

Member Avatar for Violet_82
0
185
Member Avatar for Violet_82

Hi all, I was reading a few things on the net about how to calculate a leap year in java (and not only for that matter). So something like `...if( year % 400 == 0 || ( year % 4 == 0 && year % 100 != 0 ) )...` …

Member Avatar for Violet_82
0
283
Member Avatar for Violet_82

Hi I wonder if somebody can help me to understand a few things in the following example: // Fig. 8.17: PackageDataTest.java // Package-access members of a class are accessible by other classes // in the same package. public class PackageDataTest { public static void main( String[] args ) { PackageData …

Member Avatar for Violet_82
0
159
Member Avatar for Violet_82

Hi chaps, what do we define as a client of a class please? I keep reading about "clients of a class" but I don't understand what that means. Maybe it is better to have some examples: take the following 2 files: //Employee.java public class Employee{ public static void main(String[] args){ …

Member Avatar for Violet_82
0
168
Member Avatar for Violet_82

Hi there, I am not entirely sure how to target checkboxes with jquery. I had a look around but the methods indicated don't seem to work for me for whatever reason. Given the following html fragment: ... <form> <input type="checkbox" value="red" name="the_color" checked="checked" id="red"><label for="red">This is red</label><br> <input type="checkbox" value="blue" …

Member Avatar for LastMitch
0
146
Member Avatar for olowokere

ahahahaahahha!!! sorry, too funny caperjack, couldn't help to say sth! @olowokere if you want to download linux (and not linus) have a look at ubuntu here http://www.ubuntu.com/download/desktop

Member Avatar for aVar++
1
272
Member Avatar for Violet_82

Hi chaps, I am having a little problem. Given the following snippet: html <div id="carousel"> </div> css #carousel{ border:1px solid magenta; width:600px; height:258px; background: url('sprite.png') no-repeat 0 0; position:absolute; left:0; top:28%; } jquery $(document).ready(function(){ function scroll(){ $("#carousel").animate({ backgroundPosition:'-600px'}, 500); } setInterval(function(){scroll()},2000); }); I am trying to run scroll() forever to …

Member Avatar for GliderPilot
0
335
Member Avatar for phfilly

I have an old galaxy gti-9000. It came shipped with Android 2.1. Unfortunately samsung support goes up to Android 2.2 and I had to get a custom ROM (Cyanogen 9 equivalent of Android 4.1.0) and isntall it myself, but the phone works fine. So my suggestion is, if you don't …

Member Avatar for aVar++
0
335
Member Avatar for Violet_82

Hi all, does anybody know a good guide (step by step perhaps) that could help me to take apart my dell xps17? COuldn't find that much on google. I have to get to the back and have a look at the power connector thanks

Member Avatar for Reverend Jim
0
188
Member Avatar for Violet_82

Hi all, I'd like to clarify something here please, the inconsistent behaviour of browsers with regards to the pseudo class :visited. I had done quite a lot of research into it ont he web and it seems to me that every browser does something different. I appreciate this has a …

Member Avatar for Violet_82
0
175
Member Avatar for meeraslam

uhm, sounds a bit suspicious...I can only assume (sorry oalee and CimmerianX) that you don't have a genuine copy of windows. You should buy a genuine copy of windows and the serial number will come with it. If you're trying to install the same genuine copy of windows onto another …

Member Avatar for Violet_82
0
463
Member Avatar for Violet_82

Hi chaps, I have a problem with my dell xps 17 lappy, the connector for the main is really dodgy inside the laptop itself therefore charging it is a nightmare. I was wondering if there is such a thing as a USB main charger that can be plugged in to …

Member Avatar for Violet_82
0
87

The End.