dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: NicTlt

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    22
    Views
    2,619

    So the extra typing is just to avoid engaging...

    So the extra typing is just to avoid engaging with another human being - I suppose that's reason enough.
  2. Replies
    7
    Views
    975

    Oops should come right at the end...

    Oops

    </body> should come right at the end after the script block.
  3. Thread: for - the win

    by NicTlt
    Replies
    7
    Views
    1,050

    Nice :) though I was trying to stick to for in...

    Nice :) though I was trying to stick to for in case the order is important :p .

    I just think it's interesting how much freedom you have to express yourself with the language, not making...
  4. Replies
    22
    Views
    2,619

    Not here but there is at least one high-rank page...

    Not here but there is at least one high-rank page when you Google "javascript array" that does insist you need new Array() for the "reasons" quoted above.

    Please try to understand this is purely...
  5. Replies
    22
    Views
    2,619

    Perhaps I am confused but how does a javascript...

    Perhaps I am confused but how does a javascript interpreter parse "new Array()" and "[]" using exactly the same branching through the exactly the same code in exactly the same time with exactly the...
  6. Thread: for - the win

    by NicTlt
    Replies
    7
    Views
    1,050

    Well spotted - I left that as an exercise for the...

    Well spotted - I left that as an exercise for the reader :o
  7. Replies
    22
    Views
    2,619

    new Array() !== []

    Rather than hijack another thread to start nitpicking :D I thought I'd state my case separately. Take it or leave it.;)

    A lot of "high-Google-rank" sites say that new Array() and [] are equivalent...
  8. Thread: for - the win

    by NicTlt
    Replies
    7
    Views
    1,050

    for - the win

    Technical discussion, not a question.

    You see a lot of this sort of pattern in javascript:


    var allParas = document.getElementsByTagName("P");
    for (var i = 0; i < allParas.length; i++) {
    ...
  9. Replies
    7
    Views
    975

    If you are looking to capture the same event for...

    If you are looking to capture the same event for multiple elements, it is better to hook the event handler to a higher level container and take specific actions for particular nodes.

    e.g. taking...
  10. Replies
    7
    Views
    975

    Lines 2 3 4 and 5, close your quotes!

    Lines 2 3 4 and 5, close your quotes!
  11. Replies
    0
    Views
    802

    Loading external scripts

    I'm posting this link for several reasons:

    It shows current best practice for loading external scripts :)
    It explains why bad practices are bad :mad:
    If you can understand it, you've reached...
  12. I'm assuming the ASP ListBox renders as a SELECT...

    I'm assuming the ASP ListBox renders as a SELECT with OPTIONS?



    function listbox_selectall() {
    var listbox = document.getElementById("lstFileHidden");
    for (var i = 0, opt; opt =...
  13. Replies
    12
    Views
    8,826

    You are flying in the face of good practice here...

    You are flying in the face of good practice here - what happens if some component stalls the page load?

    Your users won't sit staring at a blank screen for more than a few seconds before assuming...
  14. Oh dear, there's not a line there that doesn't...

    Oh dear, there's not a line there that doesn't have an error in it :o

    Can you show us the relevant HTML so we can be sure?
  15. Replies
    13
    Views
    4,545

    AJAX YQL would "help" in the sense that it does what...

    YQL would "help" in the sense that it does what you want - I don't know what other definition of "help" could be confusing you here.

    Anyway, for example:


    <html lang="en">
    <head>
    <meta...
  16. Replies
    7
    Views
    1,120

    But the point is, it's not a one-off cost - as...

    But the point is, it's not a one-off cost - as soon as you need to change the appearance of the table, you trigger a repaint and table repaints are notoriously slow....
  17. Replies
    6
    Views
    1,316

    You can also get the last-modified date from the...

    You can also get the last-modified date from the response header:

    http://www.jibbering.com/2002/4/httprequest.html

    Note this may not work in VS2008 as Cassini does not return full headers with...
  18. Replies
    7
    Views
    1,120

    Avoid tables, string concatenation, inline...

    Avoid tables, string concatenation, inline styles, innerHTML and continual repaint and reflow.

    Learn the DOM methods for creating live content, but design your workflow so you avoid live changes...
  19. Replies
    10
    Views
    1,613

    As a variation on my stock reply, have you...

    As a variation on my stock reply, have you investigated Yahoo Query Language?
  20. Replies
    4
    Views
    1,432

    Thankfully there is no write method for DOM...

    Thankfully there is no write method for DOM elements.

    You could give the span an ID and just set the onclick attribute for that in listsort() but it's not entirely clear from your posted code what...
  21. Replies
    3
    Views
    678

    onclick

    onclick
  22. Replies
    4
    Views
    2,022

    YQL would be yahoo's own solution to this.

    YQL would be yahoo's own solution to this.
  23. Replies
    5
    Views
    987

    If the feed's not on your own domain, then it...

    If the feed's not on your own domain, then it won't get fetched.

    Have a search on this forum for "YQL" and it should resolve this and your caching problem.
  24. Replies
    5
    Views
    987

    Do you have a stateChange function?

    Do you have a stateChange function?
  25. Open to argument (apparently;)) but var foo...

    Open to argument (apparently;)) but


    var foo = new Array();

    should be:

    var foo = [];
    This sort of construction:
Results 1 to 25 of 117
Page 1 of 5 1 2 3 4
HTML5 Development Center



Recent Articles