Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. There's a note on the W3Schools progress bar page: http://www.w3schools.com/tags/tag_progress.asp It's just something to take into account. It's up to you to determine whether the <progress> or <meter> element better represents your data.
  2. When testing this in Firefox it works for me: progress::-moz-progress-bar { width:100%; color:#F00; background-color:#EFD259; height:30px; border-radius:10px; border:2px solid #FFF;}
  3. It does not matter whether you use entities or the actual character, the browser will interpret it the same.
  4. Ingolme

    Notice Error

    Notice means the program will continue running with no errors, however, it may not be doing what you expected it to. In this case, it's printing the literal string "var2". I recommend treating notices like any error, it's a good idea to not have PHP giving notices in your code because it means you're using the language incorrectly.
  5. Ingolme

    Notice Error

    You forgot the "$" next to var2 on this line: echo var2; In PHP, a variable always has a $ next to it. A constant does not have a $ and it's defined like this: define('var2', 5);echo var2; Here's the PHP manual page explaining what constants are: http://php.net/constants
  6. Ingolme

    php

    Variables don't change their value when you operate them. Take this example: $a = 1;$b = 2;$c = $a + $b;echo $a; // Shows "1"echo $b; // Shows "2"echo $c; // Shows "3"
  7. This works: DELETE FROM MyGuests WHERE id IN (7, 11, 15, 17, 21) In PHP // Sanitize inputs!!!foreach($_GET['id'] as &$id) { $id = (int) $id;}$sql = 'DELETE FROM MyGuests WHERE id IN (' . implode(',', $_GET['id']) . ')';
  8. Looking through the reference, it does not look like this feature exists.
  9. Ingolme

    Bootstrap

    Potential employers might prefer if you knew it.
  10. I think "lighblue" is the bigger offense on that page. You can get the attention of the W3Schools staff faster by clicking on the "REPORT ERROR" link at the bottom of the page that has the problem.
  11. Ingolme

    Bootstrap

    jQuery is software somebody wrote using Javascript. AJAX and JSON are features built into Javascript. Bootstrap is a framework created in CSS. Bootstrap has some of its components programming in Javascript using the jQuery library. Personally, I dislike Bootstrap as it puts presentation back into the mark-up when the idea of CSS was to keep it separated.
  12. jQuery was specifically built to be compatible with all browsers, even old versions of Internet Explorer if you're using 1.x.
  13. In what way is it being highlighted? Depending on what it is, you can use background-color, border or outline to override the default style.
  14. What the book meant was not to use the <h1> - <h6> tags just to make the text bigger. But you should use it to properly indicate the headings of each section on the page.
  15. A negative z-index means that the element is behind its parent. If you want it to still be visible, you would need to remove any backgrounds from the parent element. Alternatively, you could keep the z-index at the default (zero) and give a higher z-index to other elements.
  16. If the element it's inside has a background color or image, then it will be behind that background.
  17. That's not a web development language. Most likely the Swift 2 website has a set of its own tutorials.
  18. What does your code look like?
  19. If the table has a specified width set the margin to "0 auto"
  20. Since the body element is one of the elements that the * selector targets, you don't need to put it on the body.
  21. Ingolme

    Php Include File

    That's not a programming thing. In any filesystem, "." refers to the current directory and ".." refers to the parent directory.
  22. Ingolme

    Advice about XML

    PHP can read XML documents using the DOMDocument class, Javascript natively supports loading XML documents and accessing elements with DOM methods.
  23. Where's the site that gave you that code? They must have provided some instructions on how to use it.
  24. From an engineering point of view, it's pointless to reinvent the wheel in every project. If you don't go with Wordpress, there are many other content management systems to choose from, but building one from scratch is a waste of development time, which costs money to the company. In the hands of a novice, any tool can be misused. It is a good idea to help them learn, but a really bad idea to discourage the use of third party sub-systems. If you're going to discourage the use of Wordpress, provide them with an alternative.
  25. The onclick event can be put on anything. It can be a button or any other element. What matters is how you modify the CSS, which is shown clearly in that tutorial page. What part of it do you have trouble understanding?
×
×
  • Create New...