Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. Perhaps you would understand an aggregate function if you saw one in action. An aggregate function operates on a whole lot of rows but only returns one value. For example, AVG() returns the average of a value from all the selected rows, MAX() returns the highest value of all the selected rows and SUM() adds up all the rows and returns the result Aggregate function are often used with the GROUP BY and HAVING clauses
  2. You want a link that encompasses the entire page?
  3. The background image of which element?
  4. Just wrap the tag around the image <a href="#" target="_blank"><img src="images/image.png" width="200" height="54" style="margin: 20px 0 45px 20px;" alt="logo"></a> It doesn't look like you really need a table there at all. You should only use tables to display information that must be described by rows and columns.
  5. What area of the page do you want to be clickable?
  6. parentNode returns an object of type HTMLElement. If you want to know the tag name, you can use the nodeName property. The nodeName might be in uppercase, so we need to change it to lower case before testing its value. if (document.body.getElementsByTagName("a")[ook].parentNode.nodeName.toLowerCase() == "p") {
  7. I assume that you substituted the values "servername", "username", "password", and "dbname" with your database server information.
  8. This does not look like Javascript.
  9. I don't agree with this. A good designer knows which fonts look best in which contexts. The same way the designer chooses the page layout and colors, fonts are also an important aspect of the design. If the user chooses to override that with a custom stylesheet it's up to them.
  10. Is this file safe? Could you elaborate further on your question?
  11. You can set the width of each of the paragraphs to 50%. If you want space between them, set the width to something smaller and add margins.For example, 48% width 1% left margin and 1% right margin.
  12. The code looks OK to me. Have you checked the browser's developer tools to see that the file has loaded?
  13. You can include font files onto your website using the @font-face rule. Watch out for browser compatibility with different font formats.
  14. Depending on the browser, it needs to actually be in .ico format. (Renaming a gif or png "ico" doesn't actually convert it to .ico format) IE9 and above and other modern browsers support PNG favicons.
  15. Strip your code down to the basics. Inside the onreadystatechange event handler, write globalVariable = xmlhttp.responseText; The contents of that variable will only be available after the request has finished, your other functions may be running too early. Copy the relevant parts of your code into the post so we don't have to download the file.
  16. There's no secure way to execute code provided by users. Show me your solution and I'll show you the way around it. Security issues aside, executing a user's code is as simple as passing a user-provided string to the eval() function. Edit: If you have access to the server, you can set up an account for each user and give them permissions only in a particular directory. In the SQL server you would have to set up an account for each user and only give access to certain databases. I'm not a system administrator, just a developer, so I don't know all the details about it.
  17. That's Javascript. Javascript does't have a raw_input() function.
  18. Your question has already been answered in this thread: http://w3schools.invisionzone.com/index.php?showtopic=53226
  19. Inside the readystatechange handler, that's where you assign the responseText to a global variable. Remember that it won't be available until after the request has been completed.
  20. Ingolme

    XML - Help

    XML isn't a programming language, it's a data storage/interchange format. What exactly are the specifications of your program? You probably don't need XML for it.
  21. It sounds like there's a MySQL error. You should check what it is by doing error checking: $stmt = $conn->prepare("INSERT INTO Users (username, firstname, lastname, email, password, confirmpassword) VALUES(?, ?, ?, ?, ?, ?)");if(!$stmt) { // Something wrong happened echo 'MySQL error: ' . $conn->error;}
  22. Ingolme

    C++

    You can ask other questions, but the people who visit this forum may not know enough to provide answers. You will be sure to get better answers on another forum that specializes in what you're asking about.
  23. I copied that code to the validator and it validates perfectly well.
  24. Please only make one topic for your question. Your question was answered here: http://w3schools.invisionzone.com/index.php?showtopic=53226
  25. Almost all elements have an offsetWidth property you can use to determine their width.
×
×
  • Create New...