www.webdeveloper.com

Search:

Type: Posts; User: clueful

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    3,807

    Any messages in the console?

    Any messages in the console?
  2. Use the RegExp...

    Use the RegExp constructor.
  3. Replies
    5
    Views
    3,807

    For me it works the same in Chrome (Win XP) as in...

    For me it works the same in Chrome (Win XP) as in Firefox.
  4. Replies
    9
    Views
    4,629

    Why apply a separate function to each element...

    Why apply a separate function to each element when one will do?

    What if there are dynamically-generated links?
  5. Replies
    9
    Views
    4,629

    ...

    <script type='text/javascript'>

    document.onclick = ( function( myFunc )
    {
    return function( evt )
    {
    var e = evt || window.event,
    srcElem = e.srcElement || e.target;

    ...
  6. Replies
    9
    Views
    4,629

    For security reasons, the ability to do that has...

    For security reasons, the ability to do that has been blocked.
  7. Replies
    4
    Views
    3,043

    Something like this perhaps: function count(...

    Something like this perhaps:

    function count( str, re )
    {
    var m = str.match( re );

    return m ? m.length : 0;
    }

    alert( count( myString, /(^|\r*\n)\//g ) );
  8. Thread: webkit problem

    by clueful
    Replies
    13
    Views
    3,070

    AJAX Time to post a live demo.

    Time to post a live demo.
  9. It's probably a cacheing problem. I would have...

    It's probably a cacheing problem. I would have expected the jquery module to address this problem or maybe there's a built-in way of so doing. Otherwise you could try changing the URL to:
    ...
  10. var boolean = (true or false), s = boolean ? 40 :...

    var boolean = (true or false), s = boolean ? 40 : 80;
  11. Thread: webkit problem

    by clueful
    Replies
    13
    Views
    3,070

    AJAX A 404 suggests it simply can't find the file. ...

    A 404 suggests it simply can't find the file.
    Are you sure the file is named "httpRequest.txt" and not something different like "httprequest.txt"?
  12. View Post

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>TEST</title>
    <style>
    #bottom_ad
    {
    position: absolute;
    right: 0;
    bottom: 0;
  13. Replies
    4
    Views
    4,834

    Or just call the function in a script block...

    Or just call the function in a script block anywhere below the div.
  14. Replies
    4
    Views
    4,834

    At the point that the div is referenced, it does...

    At the point that the div is referenced, it does not exist. I'm sure you see why.
  15. It seems fine currently at 15 seconds.

    It seems fine currently at 15 seconds.
  16. Replies
    5
    Views
    2,846

    This will increment the first integer found in a...

    This will increment the first integer found in a string:

    <script type="text/javascript">

    function bumpStringInt( str )
    {
    var data = str.match(/(\D*)(\d+)(\D*)/), newStr = "";

    if( data...
  17. That operator doesn't do what I think you think...

    That operator doesn't do what I think you think it does.
    Use:
    if (result)
  18. Replies
    2
    Views
    3,272

    Event handlers are all lowercase, so the syntax...

    Event handlers are all lowercase, so the syntax should be:


    buttonarray[count].onclick = runonclick;

    The .value property would be better assigned on load, so I would call
    runonclick on load...
  19. Replies
    2
    Views
    3,097

    View Post

    <a class="thumb" href="img/a.jpg" title="Day 1" onclick="showImg(this); this.className='visitedLink'; return false;">
    Where 'visitedLink' is a copy of 'thumb' except with different default...
  20. Replies
    1
    Views
    1,079

    Have you tried alerting the values that Chrome is...

    Have you tried alerting the values that Chrome is applying?
    Does your framed document have a doctype?
  21. Thread: pop ?

    by clueful
    Replies
    3
    Views
    1,943

    pop is unsuitable because it can only remove the...

    pop is unsuitable because it can only remove the last element.


    var all = [ l1, l2, l3, l4 ];

    function loadAll()
    {
    if( all.length )
    {
    all[ randomnumber = Math.floor(...
  22. There is a potential weakness there: var re...

    There is a potential weakness there:


    var re = new RegExp( '(^|\\s)' + nme+'[^;]+', 'i' );
  23. Replies
    5
    Views
    1,125

    Focus is being set, but it's the old issue that...

    Focus is being set, but it's the old issue that the focus is taken by the click on the alert's OK button.
    You have to set a timeout to keep the focus in the field. Better yet just don't alert on...
  24. Replies
    2
    Views
    2,244

    jQuery This concept was covered in a very recent thread:...

    This concept was covered in a very recent thread:
    http://www.webdeveloper.com/forum/showthread.php?t=247899
  25. Replies
    13
    Views
    2,717

    Do you get more speed using i&1 instead of i%2 ?

    Do you get more speed using i&1 instead of i%2 ?
Results 1 to 25 of 208
Page 1 of 9 1 2 3 4
HTML5 Development Center



Recent Articles