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
catalin560
@catalin560
@sainiabhi tried it that way also :) it doesn't work :(
Abhishek Saini
@sainiabhi
what you are trying to do? @catalin560
catalin560
@catalin560
@sainiabhi
$('.start').click(green);
I'm trying to test it
Abhishek Saini
@sainiabhi
$( ".start" ).click(function() {
  green();
});
try this
I think syntax is incorrect
Ramesh
@rnallu
Guys, i'm newbie. Can you please tell me how to get the data from this api. Link: http://api.forismatic.com/api/1.0/
sorry, refer this link http://forismatic.com/en/api/
Abhishek Saini
@sainiabhi
@rnallu bro if you are working with jquery then
$.ajax({
    headers:{
      'X-Mashape-Key':'LJgziTt4comshsPvkQ53wDltTjJRp1BtUA1jsnFeZf6GUpcBq9',
      Accept: 'application/json',
      'Content-Type' : 'application/x-www-form-urlencoded'  
    }, 
    url: 'put api url',
    success: function(data){
      data //It's the api data
    }
  });
$.ajax({
    url: 'https://andruxnet-random-famous-quotes.p.mashape.com/?cat=movies',
    success: function(data){
      data //your api result
    }
  });
Ramesh
@rnallu
@sainiabhi Thanks bro, but pls help with reference to the above link. so that i can understand how to call JSON with jquery.
CamperBot
@camperbot
rnallu sends brownie points to @sainiabhi :sparkles: :thumbsup: :sparkles:
:cookie: 311 | @sainiabhi |http://www.freecodecamp.com/sainiabhi
Abhishek Saini
@sainiabhi
$.ajax({
    url: 'http://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en',
    success: function(data){
      console.log(data);
    }
  });
@rnallu Run this code and open your console to see the result
Ramesh
@rnallu
@sainiabhi not worked
David Pickup
@davidpickup
Completing the challenge "No repeats please”, and it says that all but the first test have failed. When I manually test each of the tests individually, I get the correct output. I therefore don’t know why the automated tests fail!
kirbyedy
@kirbyedy
ok and ?
David Pickup
@davidpickup
So is this a bug on the page? The “what to do if you find a bug” instructions say to ask for help here before reporting an issue.
kirbyedy
@kirbyedy
are you sure your code is correct ?
David Pickup
@davidpickup
When I manually call my function with each of the test calls, the correct result is returned.
kirbyedy
@kirbyedy
what you can do is copy that code somewhere, and try to reset the code and clear the cache of your browser
then paste in the code again and try
assuming your code is correct, the issue should be solved
David Pickup
@davidpickup
OK, done that and the issue is still there. Would it be possible to post the code here and you/someone to test it on that challenge page?
kirbyedy
@kirbyedy
sure
actually you might post it in the javascript room
David Pickup
@davidpickup
ok, will do
Pedro Gomes
@pedrouid
hey guys
kirbyedy
@kirbyedy
more people there at the moment
Pedro Gomes
@pedrouid
is it ok to post some jQuery here
need to trigger Bootstrap carousel controls
with left and right arrow keys
```
$(document).keydown( function(e) {
    if( e.which==37) {
        e.preventDefault();
      $('.prev').trigger( "click" );
      console.log('left');
    } else if(e.which==39) {
        e.preventDefault();
      $('.next').trigger( "click" );
      console.log('right');
    }
    });
```
lol just ignore this non-sense
I got it
Gaston Kirsman
@gastikirs
Guys, how can i reduce the width of the search box and make it still in the center?
Because i dont know why if i set the width to X px, it goes to the left.
kirbyedy
@kirbyedy
@gastikirs did you try with: width: 80%; for example
Gaston Kirsman
@gastikirs
@kirbyedy Yes. it also goes to the left
Ghost
@ghost~57b1df1e40f3a6eec05f92a8
@gastikirs Try it with this:
  float: none;
  margin: 0 auto;
Gaston Kirsman
@gastikirs
@Otto-AA Genious!! that worked.
@Otto-AA Can you explain me why?
Ghost
@ghost~57b1df1e40f3a6eec05f92a8
@gastikirs and display:block if you want it in an own row
Gaston Kirsman
@gastikirs
@Otto-AA Ty, got it :)
CamperBot
@camperbot
gastikirs sends brownie points to @otto-aa :sparkles: :thumbsup: :sparkles: