Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. There's the URLLoader class and related classes. They need to work together to send data. It might appear complicated but you're going to have to learn it. ActionScript can save some data on the client side using Shared Objects. They're like cookies.
  2. input elements, like every other element, have an innerHTML property, but the innerHTML isn't what sets the text that's displayed in it. The innerHTML property just sets or returns the code that's between the two tags of the element. If, after setting the innerHTML property of an <input> element, you look at the generated DOM you should find it between <input> and </input> tags at least in theory. It's possible that browsers ignore any attempts to modify the innerHTML of an input.
  3. You need to set the value property, not the innerHTML property.
  4. I believe "i" stands for "iterator"
  5. No, mod-rewrite is just to make URLs look pretty.
  6. Not a background image anyways. You can always use an <img> element with 100% width and, if necessary, 100% height as well. Fixed position, negative z-index.
  7. AJAX would work. I suggest having a "pop out" feature which moves the chat to a separate window.
  8. I read this and knew that the code would be pretty bad:
  9. Onsubmit is the only way to ensure that the form sending is cancelled. Usually it's not an attribute, but set on the form using Javascript.
  10. Instead of isset() use empty(). $code is always set.
  11. No, there's no name attribute on the <form> element. That's a bad practise that originated in the 90s. It has nothing to do with PHP, it was used in Javascript.
  12. Just document.getElementById(). You don't need the forms[0] part, and the ID should be the ID of the specific input you want focused. document.getElementById("title").focus();
  13. Ingolme

    Format Number

    What's wrong with number_format()?
  14. That means that your server isn't executing the PHP and is sending it to the client as text.Does the file have a .php extension?
  15. Internet Explorer 8 and under need HTML 5 elements to be created with Javascript before they can be used. You need a script at the beginning of the page creating an instance of all the elements you're going to use on the page: document.createElement("header");document.createElement("article");document.createElement("footer"); There are some scripts available online that have all the HTML 5 elements already declared for you.
  16. You can use getTimeZoneOffset() to figure out which time zone the user's computer is currently in, then add or subtract from the timestamp to show the time for a particular time zone.
  17. You can use CSS position: fixed to always have the button in the same position of the window no matter if you scroll.
  18. If you give an id attribute to the body, a simple link can bring you to the top of the page. <body id="top"> <a href="#top">Back to top</a>
  19. Have you tried a search engine? If I was going to answer you that's exactly what I would do.
  20. Possibly the onchange event, but if this is autocomplete I'm not sure if there's a standard for it.Normally, for text inputs, the onchange event only fires the moment the field loses focus. The only way I know to test events is to actually put multiple event handlers on the element and check which ones are fired.
  21. It can hardly get simpler than what's on W3Schools. If you can't learn with that I guess your only option is to find a Javascript course so that a teacher can explain things to you.
  22. One page is being interpretted as ISO-8859-1. Try sending a header with PHP Content-type: text/html; charset=UTF-8Browsers sometimes ignore <meta> tags.
  23. It depends on the quality of your web host and the internet connection on the client side.
  24. That selector will apply the style to any element called <list-nav>. Maybe you wanted a class selector or an ID selector.
  25. The second parameter of strtotime() has to be a date in UNIX timestamp format. You can't pass a string and expect it to understand it.
×
×
  • Create New...