Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
grantknaver
@grantknaver
I dont know how to do this
any help would be appreciated
looking on how to accomplish two different AJAX requests
grantknaver
@grantknaver
any help
Kevin
@KevinBruland
sure, are you working on a specific project @grantknaver
grantknaver
@grantknaver
ya @KevinBruland hopefully you can help me
I am working the Twitch problem. Do you think you can help
?
Kevin
@KevinBruland
sure
want to link what you have?
grantknaver
@grantknaver
awesome3
Ill post the link right now
Kevin
@KevinBruland
I have some guesses as to what your problem is, I remember running into issues on that
awesome
Ok here are the problems I am running into
I am trying to post a ajax request for the chanels that are online and the channels that are offline
Kevin
@KevinBruland
side note real quick, .bind is depreciated
grantknaver
@grantknaver
the online is not a problem - or at least it does not seem to be
Kevin
@KevinBruland
so use .on() instead
grantknaver
@grantknaver
gotcha
thanks
Kevin
@KevinBruland
let me take a look
what I actually did for this one
was not preform a second API call,
grantknaver
@grantknaver
I cant figure out what to check for regarding the offline channels. It seems to require a different AJAX request
Kevin
@KevinBruland
well
grantknaver
@grantknaver
what did you check for than
Kevin
@KevinBruland
you see how you have if(response.stream != null) on line 44?
grantknaver
@grantknaver
yep
Kevin
@KevinBruland
thats checking to see if they are online, because that will only fire if they are online, right?
grantknaver
@grantknaver
yep
Kevin
@KevinBruland
you can just do an else statement after that if
grantknaver
@grantknaver
if I put an else
I need to get the logo from somewhere and the AJAX request
for something that is null comes back with no logo or url info
which made me think I needed to do a request within a request but that has only caused problems
Kevin
@KevinBruland
let me look at a call, I used the actual twitch API... so mines a bit different
grantknaver
@grantknaver
ya now they are saying that is having problems so they recommend changing the url
thanks man I am at my wits end
Kevin
@KevinBruland
ah, I see now
so in this API, stream is an object that contains the logo
grantknaver
@grantknaver
yep
but if it comes back null it does not contain the logo
so I used the channel object, but there does not seem to be anthing I can build an if statement around using channel so... hence I am stuck
I have no idea
Kevin
@KevinBruland
well
the .fail you have on line 102,
grantknaver
@grantknaver
ya
Kevin
@KevinBruland
is it failing?