Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sheyna Watkins
    @sheyna
    *your code has
    Adam Caldwell
    @adamrcaldwell
    @sheyna thanks so much for this, it makes sense the way you've put it. I will renew my efforts and post here if I come up with anything.
    Sheyna Watkins
    @sheyna
    Let me know if you find an answer. I'm working on mine as well. And if I come up with anything I'll let you know.
    Sheyna Watkins
    @sheyna
    HA HA! I got it to slow down! Only now after it finishes sorting it crashes the browser. I'm using setInterval(). How to I get SetInterval to stop?
    Sheyna Watkins
    @sheyna
    I'm having trouble getting clearInterval() to work. Where should I place it? I have the sorting process divided into two functions. And a button calls the first function which calls the second. I've tried to put the clear inside the button and inside both the functions. Only I'm having no luck. What am I doing wrong?
    Adam Caldwell
    @adamrcaldwell
    I wish I knew, I haven't even gotten setInterval to work yet. Among the many examples I looked at was one where clearInterval was called with a second button after the algorithm finished, so that's what I'll try if I get that far. :)
    Sheyna Watkins
    @sheyna

    clearInterval() is not working in any of these:

    VERSION 1:
    alt

    VERSION 2:
    alt

    VERSION 3:
    alt

    Any ideas?

    @adamrcaldwell Yes, most of what i'm seeing online has setInterval clear with entirely separate button. But I'm trying to figure out how this works:

    http://stackoverflow.com/questions/10485385/how-do-i-correctly-use-setinterval-and-clearinterval-to-switch-between-two-diffe

    Sheyna Watkins
    @sheyna
    I know the project is due tonight. But when is the deadline to get feedback? I still can't get clearInterval() to work. Should I turn it in and get partial credit? Will I be penalized if I don't get it in today?
    Adam Caldwell
    @adamrcaldwell
    I know that we have hitherto been able to turn things in late with no penalty, but I'm not sure how long the TAs will be around to grade since we've had our last class. Brook said "for a week" on Monday. I'm turning in mine now with the comment that I will push a new version if/when I get it to work right.
    Sheyna Watkins
    @sheyna
    That's probably what I will end up doing. I just hate to mess up my 99.7% any more.
    Sheyna Watkins
    @sheyna
    Of course, NOW at 12:30 I figure it out. I was using my variables with setInterval() incorrectly! Now it works! I'm updating my submission.
    Dale Corns
    @dcorns
    Don't give up. They will get graded
    Matthew Conquergood
    @kristjin
    i've been working with the setInterval used in Brook's code and do not understand why his call of setInterval with 3 parameters works. On the deck.html code. Very lost on that front.
    Sheyna Watkins
    @sheyna
    I could never get setInterval to take parameters. When I tired it completely ignored the time delay I was trying to impose. So I put the parameters inside another function which then launched the function I was trying to launch to begin with.
    Sheyna Watkins
    @sheyna
    What I mean is: Button launched setInterval(), which launched a middleman function which gave parameters and launched the sorting function.
    Samantha Camus
    @xdothackerx
    The TAs will be grading until the 15th, if I understand our contract correctly. ;)
    Brook Riggio
    @brookr
    @kristjin Yeah, the setTimeout fonction is a bit of an odd one. The intention is to say, "I want function foo executed after a delay of 3000 microseconds". So you trigger it with `setTimeout(foo, 3000);' or similar.
    Really, though, I read the docs on it just about every time I use it: https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers.setTimeout
    Here is a collection of a few other examples of how to use it: http://www.sitepoint.com/settimeout-example/
    Hope that helps!
    @sheyna No penalty in points for late work, but TAs will be wrapping up grading shortly, so getting something in now is a good idea.
    Matthew Conquergood
    @kristjin
    @brookr what throws me is your use of a 3rd parameter, as opposed to just the two. What am I missing there?
    @brookr but after following those LINKS, I see... I see. ;) Thanks yo.
    Brook Riggio
    @brookr
    Great, you got it! Yes, the additional params go after the delay parameter, which is kinda bizarro world.
    But that's what the docs are for! Good work in sorting it out.
    Duncan Marsh
    @slugbyte
    $ testing markdown
    rohitkumar25
    @rohitkumar25
    Hi friends