www.webdeveloper.com

Search:

Type: Posts; User: GIDMEISTER

Search: Search took 0.01 seconds.

  1. The answer is this: var msg =...

    The answer is this:
    var msg = document.getElementById("msg").value.trim();

    if (msg && window.CustomEvent) {
    var event = new CustomEvent("newMessage", {
    detail: {
    message: msg,...
  2. How do I create an object with its own events

    Suppose I create an object such as YouTube's video player (but not the same, this is just for an example). I want to fire events when the player ends, and when it starts playing, etc.
    So in any...
  3. jQuery The text gets added to videos as subtitles. so...

    The text gets added to videos as subtitles. so its not being added to a simple DIV or textarea.
    You are right, this has nothing particular to do with jquery, though I wrote the original code using...
  4. jQuery having a variable set to text that has multiple lines - causes problems

    I use JavaScript to create text tracks, (for html5 video), and I obtain the text from a database.
    This works, except when the text has carriage returns.
    In that case, my javascript looks like:
    var...
  5. Thanks! I got the code off the internet, and the...

    Thanks! I got the code off the internet, and the internet is sometimes unreliable. That's the answer.
  6. Yes I did. To be absolutely sure, I now removed...

    Yes I did. To be absolutely sure, I now removed all jquery syntax and just tried to call the method after the object was created.
    It just doesn't work.
  7. I fail to create an object with a method

    I'd like to create an object in javascript, with methods that can be called. I read a webpage on how to do this, and then produced the following simple code:


    var textplayer;

    ...
Results 1 to 7 of 7
HTML5 Development Center



Recent Articles