www.webdeveloper.com

Search:

Type: Posts; User: Sephr

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    999

    What browser doesn't do eval oneventname...

    What browser doesn't do eval oneventname attribute values that don't end with return true?
  2. Replies
    9
    Views
    999

    I meant they are redundant as in they are already...

    I meant they are redundant as in they are already the default and don't need to be put at the end.
    Example:

    <a href="page.html" onclick="alert(1);return true;"></a>
    will alert(1) and then load...
  3. Replies
    9
    Views
    999

    You should remove the return true parts though....

    You should remove the return true parts though. They are redundant in mouseover and mouseout events
  4. Replies
    2
    Views
    1,219

    If you can use a GET request, try this (will open...

    If you can use a GET request, try this (will open in new tab/window):

    var submitWin = window.open('');
    submitWin.opener = null;...
  5. You could have the best of both worlds by making...

    You could have the best of both worlds by making a script that will make an XHR request for the next page of comments and have the link gracefully degrade by linking to the next page of comments too...
  6. Replies
    5
    Views
    1,385

    the prompt() function would be very helpful as...

    the prompt() function would be very helpful as long as you're not using IE
  7. Replies
    8
    Views
    1,571

    Use ? to make the last character or multiple...

    Use ? to make the last character or multiple characters in a () optional. Use | to as an "OR" operator. ie. (a|b) matches a OR b.
    Also, don't remove the underscored in the $variable_names like that.
  8. Replies
    8
    Views
    1,571

    The PHP way is the easiest way as it requires...

    The PHP way is the easiest way as it requires less code, works on browsers that don't support JavaScript, and doesn't even let the user load the original page.
    I'm assuming that there is a php file...
  9. Replies
    8
    Views
    1,571

    First of all, this is something you would want to...

    First of all, this is something you would want to do server-side (ie. "Location: $redirect") as the title of a page will show before a script can read it. Second of all, are you checking the title or...
  10. Replies
    3
    Views
    1,772

    Use \x (with 2 hex chars next) or \u (with 4 hex...

    Use \x (with 2 hex chars next) or \u (with 4 hex chars next).
    Example: '\uFFFF'
  11. Thread: Ajax Chat

    by Sephr
    Replies
    2
    Views
    947

    Yes, it's called Comet...

    Yes, it's called Comet.
  12. Replies
    3
    Views
    629

    Change the month variable line to this: var...

    Change the month variable line to this:
    var month = currentDate.getMonth() + 1;
    There are 12 months but the first one starts out at the number 0 in getMonth().
  13. I have no idia what you mean by "initiate" the...

    I have no idia what you mean by "initiate" the hash, but I think this is the corrected 2nd line of code:
    var myHash = {}; myHash[myID] = 10;
  14. Replies
    2
    Views
    709

    If you want it to be part of the actual image,...

    If you want it to be part of the actual image, you should try PHP+GD to generate dynamic images with text in them. If you don't want to use anything server-side you could use <canvas> and draw text...
  15. if you want to do that, you have the code right...

    if you want to do that, you have the code right there, just add () to the "Array" part.

    Are you trying to push x into y or x.id? Ex: this pushes x into y

    var x = {};
    x.id = 10; // or you can...
  16. What's supposed to be in the empty {} object? And...

    What's supposed to be in the empty {} object? And what exactly do you want pushed into the arr Array? ie. the whole object, one of it's values, ect?
  17. Replies
    6
    Views
    1,383

    data-* attributes are valid if you took the time...

    data-* attributes are valid if you took the time to read the previous post
  18. Replies
    6
    Views
    1,383

    Yes, it's called with nothing...

    Yes, it's called <!DOCTYPE HTML> with nothing else on (X)HTML5 supporting browsers where you can use data-namehere attributes. Example:


    <li class="user" data-name="John Resig" data-city="Boston"...
  19. Replies
    4
    Views
    13,326

    It seems you won't be using it for numbers due to...

    It seems you won't be using it for numbers due to you saying it would be something like a name of a day so use this code (which quotes the string):

    echo "document.getElementById('edpid').value= '"...
  20. Getting "Unsafe JavaScript attempt to access frame" error

    WebKit nightlies (but not Firefox 3+) give me an "Unsafe JavaScript attempt to access frame" error (not impacting any of the function of the code though) when I try to send messages to iframes on...
  21. Replies
    8
    Views
    2,316

    What the heck are you talking about?...

    What the heck are you talking about? window.onresize is fired from IE8. What makes you think it would use document.documentElement?
  22. Replies
    8
    Views
    2,316

    for most browsers including ie6: window.onresize...

    for most browsers including ie6:
    window.onresize = function

    for standards compliant browsers:
    window.addEventListener('resize',function,false)
Results 1 to 22 of 22
HTML5 Development Center



Recent Articles