- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
43 Posted Topics
Hi I'm stuck wanting to create a dropdown, only supported by CSS. This is my current code: [code=php] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> <style type="text/css"> html, body { margin: 0px; } body { background-image: url('img/bottombackground.png'); } div.topbackground { width: 100%; height: 300px; background-image: … | |
Re: There you go; [url]http://al-habib.tripod.com/hijricalendar/hijricalendartext.htm[/url] | |
Hi, I'm creating the layout for a dynamic webshop, all pictures are getting dynamic IDs to have their elements changed. I'm currently having errors with the code below and have no idea why. the argument id is not null, however document.getElementById(id) is. I don't understand how that can happen :S … | |
Hello everyone I'm currently following a course "Game Development" where we learn everything from design to 3d drawing to programming. The language we use is C++, however I'd like to learn Java as well and have there for decided to create a large project (together with a number of other … | |
Hey there everyone I'm a bit troubled with something I'm trying to construct, I'm trying to create an object that can reproduce itself, creating more objects that can be accessed also, to reproduce themselves. Each object would then be given a random name like: object1, object2 so they can be … | |
Hi So... I've been reading up a little bit about cookies and security. Only to find that you should encrypt the data in them and that they can be hacked by using javascript code. Is this really the only way to hack/steal cookies? In my quest to create a safe … | |
This site is not being rendered right in my current browser, Opera. The rounded corners appear a bit off. Just thought I'd mention this, I have the latest Opera version available, my OS is Ubuntu. See you :) | |
Re: mysql_num_rows: Retrieves the number of rows from a result set. This command is only valid for statements like SELECT or SHOW that return an actual result set. To retrieve the number of rows affected by a INSERT, UPDATE, REPLACE or DELETE query, use mysql_affected_rows(). My guess would be that you're … | |
Hi everyone, because I've recently decided to try making a webgame, I've begun scripting an editor for it. However, I'm quite stuck on the little project and would like some help. The script works as follows, a directory of tiles is being read via PHP (however not alphabetically). These tiles … | |
Hi, I wanted to post my login system I will use for an upcoming site for rating. I want to ensure a safe login, so please, if you know anything about this and see a security leak somewhere... Please post, any remarks are welcome. How it works: the script generates … | |
Re: What is your output then? Also there appears to be a mistake in your query. I presume ID is a number, then there is no need for single quotes. So... [code]where id = '".$row['cid']."'[/code] becomes [code]where id = ".$row['cid']."[/code] | |
I can handle errors just fine on MySQL, but what about warnings? If I use the following code I still get to see the warning, while that is not what I want: [code=php] if(mysql_connect($host, $user, $pass)) { $conn_server = true; } else { $msg = "Fout bij verbinden naar de … | |
Hi, I'm trying to create a chat with some code I downoaded of the web and altered a bit. The updating works as long as i'm not opening up another tab page in my browser or as long as i'm not ALT+Tabbing... Which seems kinda strange to me... Also, when … | |
Re: I can't open up your website, before I take a look into your site I can tell you that most likely you're website is not valid, or doesn't even have a doctype. Therefore it is being rendered in quirksmode and more things look different in other browsers. | |
Re: Here, this should fix it: EDIT: I don't know why you used an array by the way, and note the change I did with your switch case to see how it works with your buttons. [code=html] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>javascript1</title> <script type="text/javascript"> function Init() … | |
Hi, I'm trying to create an expandable content box for forum purpose, however the code I've come up doesn't work in IE, but it is valid HTML 4.01 Strict. Anyway, if I'm handling this problem the wrong way, please tell me how I should do it then. I have an … | |
Re: window.print() does not start the printing, but it shows the dialog for the user to print. So you cannot check wether the file has been printed, only if the button "Print" has been pressed. | |
Re: I'll need to see the code YOU are using to check it for errors... | |
Re: You can iterate trough forum controls with Javascript [code=javascript] var i; for(i=1;i<18;i++) { document.formPermissions.elements[i].checked = 1; } [/code] | |
Re: You can't have a function that has the same name of your class, how can you tell what's what? You have some code outside the main function or any other functions, that doesn't seem right. Hope this helps ^^ :) | |
Re: This shows you how to create a random number in Javascript: [url]http://www.javascriptkit.com/javatutors/randomnum.shtml[/url] That random number would allow you to go trough your array of quotes. That array can be filled by reading from a file: [url]http://www.javascripter.net/faq/reading2.htm#top[/url] Although I suggest just filling an array in another .js file and then including … | |
Re: <SCRIPT LANGUAGE="Javascript"> is depreciated, use type instead: <script type="text/javascript"> capital tags are not needed by the way, just so you know : - ) Your problem probably lies here: [code=html] <DIV ID="countrydiv"> <SELECT NAME="Area" onchange="getSelect('Area', this.value,'Region','regiondiv');"> <OPTION>Country1</OPTION> <OPTION>Country2</OPTION> </SELECT> </DIV> <DIV ID="regiondiv"> <SELECT NAME="Area" onChange="getSelect('Area', this.value,'County','countydiv');"> </SELECT> </DIV> [/code] When … | |
Re: I counted numerous quotation errors in your selectTimeSettings.php [code=php] <?php $q=$_GET["q"]; ob_start(); session_start(); error_reporting(0); include("config.php"); include("functions.php"); $cy = date("Y"); $connection = mysql_connect($hostname, $user, $pass) or die ("Unable to connect!"); $query = "select tz_pref from av.pilot_info where uid='".$SESSION_UID."'"; $result = mysql_db_query($database, $query, $connection) or die ("Error in query: ".$query." mysql_error()"); $tz_pref=mysql_result($result,$i,"tz_pref"); … | |
Re: Perhaps I do not fully understand what you want, if so just explain a bit further, but from what I've read I created this code: [code=html] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <style type="text/css"> #myDiv { width: 400px; height: 300px; background-color: #bbbbbb; overflow: scroll; } </style> <script … | |
Re: How about this: [code] <script type="text/javascript"> function checkit(formName, checkBox) { var xx = document.formName.elements.checkBox; xx.checked = 1; } </script> <form name="myform"> <input type="checkbox" name="mycheck" onMouseOver="checkit('myform','mycheck')" value="1"> Checking</input> </form> [/code] | |
Re: What about the image file name, have you copied the image and adjusted the adress to it? Otherwise I wouldn't really know since you just copied the code. | |
Re: 1. XMLHttpRequestObject.status returns HTTP status codes; if it returns a 200, which you check for here, that means that everything is OK. See [url]http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html[/url] for more info. I suggest you read this too: [url]http://www.modelworks.com/ajax.html[/url] 2. Have you changed any settings related to redirecting or port usage? I have changed my … | |
Re: What a coincidence, someone wrote a topic about that yesterday, you can find it here: [url]http://www.daniweb.com/forums/thread161189.html[/url] Oh and your link is wrong, it has a h too much in it. It should be: [url]http://img168.imageshack.us/img168/7080/task3vn7.png[/url] Might want to read up on that program he wrote, it can give you some ideas … | |
Re: I'm not sure how you are going to check for that application so I just corrected some of your code and made it redirect, mind you that now the user doesn't have the needed application by standard. If you want to change that, you'll have to call a function, which … | |
Re: To help you out a bit more; To use cout you need to have iostream included #include <iostream> Also, don't forget to use system("pause"); because otherwise your console window will close immediatly and you won't be able to see your code running : - ) | |
Re: When I try to access [url]http://www.airedale911.org/gen_validatorv31.js[/url] it says "The system cannot find the file specified." Maybe that is where your problem lies, otherwise I'll have to see that code in gen_validatorv31.js Hope this helps : - ) | |
I'm trying to create a website navigation with moving images. However, I seem to have a bit problems with it as it bugs out sometimes. This is my code: [code=javascript] <script type="text/javascript"></script> var goDownH = 300; var goUpH = 320; function goDown(id) { if(goDownH < 320) { goDownH = goDownH … | |
Re: Can you add that full page's code to a reply please... | |
Re: The square root of 1 is 1, this should lead to the square root of -1 being -1, however, this is imaginary. Taking the square root of a negative number doesn't work. i = -1 Hope this helps | |
Re: I'm afraid I'm not getting what you're trying to say. Maybe it's too late for this... :-) Are you trying to put the content of one array into the other or am I getting you wrong? Please elaborate | |
Re: 1 = 1 10 = 2 100 = 4 1000 = 8 You can solve this in more than one way, well I can think of multiple ways atleast ^^ Hope this helps | |
Re: Most of the errors you get are typing errors I presume. For instance, a lot of times you use max or min, where you're giving min or maxloc as argument to the function. Also some variables are just not declared in a function, remember that each function has it's own … | |
Re: If you want to use cout and cin you'll have to include <iostream> and use namespace std. A sample program is something like this: [code=cpp] #include <iostream> int main() { int x, y, z, min; // Don't forget you can declare multiple variables of the same type on the same … | |
Re: [QUOTE=Lokolo;739525]1. No I thought it would overwrite it (like if you try to open a file, if it doesn't exist, it creates one)... guess it doesn't. Will look up file delete later (I funnily enough have a C++ tutorial now)[/QUOTE] You're declaring an ofstream with the append flag (ios::app) which … | |
I have absolutely no clue why the following code works except for the following three characters: ç, à and è. It should rule out all non-digit characters from being written into an edit control. Because it let's those three pass trough I am forced to turn this: [code=cpp] if(!isdigit(editControl_Content[2])) [/code] … | |
Hi, I'm having some frustrating issues with char/strings. I have a function which returns an unsigned short integer, the unsigned short integer is ALWAYS 1 char long. So if I try this code: [code] number[2] = function(); [/code] So, number[2] should give me the number I want, however, it gives … | |
Hello, I'm experiencing a little problem with what I'm trying to do: I've created a large number of buttons with Photoshop, these however, already look like buttons, and are rounded. However, when I put them on a BUTTON control the button looks ugly because it has another button on it. … | |
I want to simply put an image as background of my parent window. Is it possible to put this into the class? [code]wc.hbrBackground = image[/code] I've been looking all over Google, maybe I'm using the wrong keywords but I'm not finding anything. Anyway, on top of that image, would it … |
The End.