• Content count

  • Joined

  • Last visited

  • Days Won


Ingolme last won the day on March 20

Ingolme had the most liked content!

Community Reputation

760 Excellent

1 Follower

About Ingolme

  • Rank
    Foxy Mod

Previous Fields

  • Languages
    Javascript, PHP, MySQL

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Gender
  • Interests
    Web development, drawing, videogames, foxes.

Recent Profile Visitors

157,017 profile views
  1. Buttons are inline elements, so they need to be centered by setting text-align on the parent element.
  2. Setting a relative position is going to mess up your layout, as well as using align-items. Use text-align to center the text. <div class ="container"> <div class ="itilblock" style= "width: 150px; line-height: 50px;">something and something else</div> <div class ="itilblock" style= "width: 200px; line-height: 30px;">something and something else</div> </div> div.itilblock { background-color: rgb(3,173,181); border-style: outset; text-align: center; color: white; height: 75px; padding: 3px; display: inline-block; } Remember that inline blocks have a small space between them unless the tags in the source code are on the same line with no space in between them.
  3. Goodness, no. In this case jQuery does not have some magical pre-built solution to the problem. You need to have a mousemove event. Each time the event fires, subtract the element's position from the mouse's position. That will give you a direction vector which you can use to generate text-shadow coordinates. There are details you need to take into account: The pivot point of the element starts off at the top left corner. You probably want the pivot point to be in the middle of the element, the middle is at [x + width/2, y + width/2] The vertical coordinates for text-shadow might be inverted.
  4. AJAX is Javascript, so you have no choice but to use Javascript if you want to use AJAX. You can sort the nodes, but it's not trivial. Do you want to change the order in the DOM itself or just what is being displayed to the user? The sort() method of Javascript arrays can make your job easier: You will need to make a custom sorting function to deal with DOM nodes.
  5. You will need Javascript to do some math and calculate the shadow's direction, then generate a text-shadow value for it.
  6. If you actually want to keep track of all the seats that are sold so that other users can't buy them then you definitely need the data sent to the server-side. A client-side application would serve, at best, as a simulation of a seat reservation system, but if you're not keeping track of who bought which seats on the server then you can't actually sell real seats at a real theater.
  7. You'll need a server-side application built to read and update seats, then you would use AJAX to make the system work without reloading the page. Generally you would use a database instead of a text file to store the information about the clients and seats.
  8. My guess is that either TM_code is supposed to be a string or $access_code has an unexpected value.
  9. Make sure the figcaption element is a block and that there is no code floating the img element.
  10. Every time you create a new row you're adding another event handler to all the rows. The newest row will have just one event handler, but the older rows will have as many event handlers as times you've clicked the "new" button.
  11. That's very inefficient. eval() should never be used. Why exactly do you want a function that does a math operation when you can simply do the operation right where you would be calling the function. // Short and efficient var theResult = 50 + 20; // Long and inefficient var theResult = doMath(50, 20, "+");
  12. You need to use a server-side programming language to display the same template on all the pages.
  13. No, you can't. I would recommend making multiple functions, one for each operation, just to keep things organized, but if you absolutely need to do it all in the same function you can pass a string to indicate which operation to do. function operate(a, b, operator) { switch(operator) { case "+": return a + b; case "-": return a - b; case "*": return a * b; case "/": return a / b; default: return 0; } }
  14. The Javascript file doesn't exist:
  15. In PHP you can use the DOMDocument class to read XML using standard DOM methods. You can use cURL to get the XML string from the other server.