www.webdeveloper.com

Search:

Type: Posts; User: xelawho

Page 1 of 20 1 2 3 4

Search: Search took 0.03 seconds.

  1. use setinterval instead of the while loop, and...

    use setinterval instead of the while loop, and fire a function every one second (say) that checks the conditions and clicks the button when the time is right.
  2. Thread: array function

    by xelawho
    Replies
    10
    Views
    915

    it's trying to...

    it's trying to...
  3. You can certainly load info window content via...

    You can certainly load info window content via Ajax, although the repeated Ajax calls may make the performance sluggish, depending on connection, etc. what have you tried that makes you think you...
  4. Ah, you want to move the tip. I don't think I've...

    Ah, you want to move the tip. I don't think I've seen google maps do that. Which makes me guess that the g maps infowindow shape is a default rendering. If you wanted to move the tip around you would...
  5. yes, pixelOffset is a property of the infowindow...

    yes, pixelOffset is a property of the infowindow that accepts a google.maps.Size as a value. So for example:



    var infowindow = new google.maps.InfoWindow({
    content: "hello world",
    ...
  6. Have you looked at the documentation? I believe...

    Have you looked at the documentation? I believe this is covered there.
  7. Replies
    10
    Views
    711

    anyway, all that CPUboxNumber does is return a...

    anyway, all that CPUboxNumber does is return a number. Wouldn't you be better calling:

    setTimeout(CPUmove, 1000);
    at the end of the player move

    but I don't see how this code works - when is...
  8. Replies
    8
    Views
    1,040

    SoWide is an object. Even, odd, from, to are the...

    SoWide is an object. Even, odd, from, to are the keys. False, 1 and 0 are the values. They're all independent. Objects are very useful in javascript (in fact, pretty much everything in javascript is...
  9. Replies
    10
    Views
    711

    have you looked at setTimeout?

    have you looked at setTimeout?
  10. Replies
    6
    Views
    651

    I guess unless you were working as a team on a...

    I guess unless you were working as a team on a huge project with lots of external scripts you would do something like this:



    <head>

    <style>
    #ms{
    height:200px;
    width:200px;
  11. Replies
    6
    Views
    651

    those inline event handlers are pretty retro, but...

    those inline event handlers are pretty retro, but if you want to go that way you could do


    onmouseout="messageBox.style.display='none'"
  12. Replies
    6
    Views
    651

    please provide the code that you use to open the...

    please provide the code that you use to open the box
  13. really? typing 1970 into FF or opera gets me to...

    really? typing 1970 into FF or opera gets me to 1970 using this:


    <script>
    var selbox=document.getElementById("thesel");
    for (var i=0; i<2000; i++) {
    selbox.add(new Option(i,i));
    };
    </script>
  14. Haha. Probably the worst is for year of birth...

    Haha. Probably the worst is for year of birth where the first option is 1910 and you have to scroll all the way down.

    Or, increasingly sadly, when the first option is 2014 (do they really expect a...
  15. yes, it works in IE (and takes - what? 5 seconds...

    yes, it works in IE (and takes - what? 5 seconds to test?). What IE has been known to choke on is your appendChild method. If you want to do it without indexing (and really ...
  16. holy CRAP what a frighteningly misleading...

    holy CRAP

    what a frighteningly misleading answer!

    have you really never dynamically populated a <select> this way before?



    <body>
    <select id="thesel"></select>
  17. Replies
    9
    Views
    1,001

    add this to your script (relies on user's...

    add this to your script (relies on user's computer being set to the right date...)


    var d = new Date();...
  18. what does the error console say? is selbox...

    what does the error console say? is selbox defined?
  19. you should bear in mind that arrays are...

    you should bear in mind that arrays are zero-indexed (meaning that they start at 0, not 1). Also, the variable "array" is local to the "a" function.

    most likely what you are looking for is to...
  20. Replies
    18
    Views
    1,551

    http://htmlhelp.com/reference/html40/special/scrip...

    http://htmlhelp.com/reference/html40/special/script.html


    Probably not the best source to be quoting from, but to be fair it does look like it was written in 2006.

    That said, I agree - there...
  21. click on the DOM tab and scroll down a little -...

    click on the DOM tab and scroll down a little - you will see "frames" there, unless your version of firebug is different to mine...
  22. click on "frames", then "0" (if it's the first...

    click on "frames", then "0" (if it's the first frame you are interested in, "1" if it's the second, etc)
  23. AH, yeah - I think I remember something now about...

    AH, yeah - I think I remember something now about IE freaking out when you update content in nested tags dynamically.

    Or something like that.

    Still - it's no reason to give up. Whatever...
  24. my code from post#2 works fine in IE8, as does...

    my code from post#2 works fine in IE8, as does JMRKER's from post #3

    yours does weird things on the width of the select. I'd have a look why, but it's late, so...
  25. ah, it sounds like both of those modifications...

    ah, it sounds like both of those modifications would make it more like a flow chart than an org chart. But it looks like google's visualization API doesn't do flow charts yet. There is a feature...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4
HTML5 Development Center



Recent Articles