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
Tom
@moT01
@joshfilippi
livonian-router
@livonian-router
@joshfilippi and round your temp result
Josh
@joshfilippi
@moT01 thanks. it's a little better. I'd love to know why bootstrap grid isnt working
CamperBot
@camperbot
joshfilippi sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:cookie: 442 | @mot01 |http://www.freecodecamp.com/mot01
Tom
@moT01
im not great with bootstrap, there might be a better way with one of their classes, ...i might consider just turning you <p> with the temp in it to something clickable, and use that to toggle instead of a separate button
DavidMinAZ
@DavidMinAZ
@someone Anyone up for tackling a jQuery question? I'm trying to grab some jSON data using .getJSON() but although the API is clearly returning data in a browser it doesn't appear to be hitting my script...
$.getJSON("http://api.forismatic.com/api/1.0/?method=getQuote&key=457653&format=json&lang=en", function(data) { console.log("OPoop"); });
Rex Smith Jr.
@rsmith731
does anyone know if it is possible to embed tumblr as the entire page on a website - a client asked me
Josh
@joshfilippi
@livonian-router does the temperature in my pen appear with lots of numbers after the decimal place? I see a whole number.. ?
DavidMinAZ
@DavidMinAZ
Incidentally, the console.log() should be console.log(data);
livonian-router
@livonian-router
@joshfilippi Yeah, it appears with too many numbers here
Josh
@joshfilippi
ok thanks @livonian-router
CamperBot
@camperbot
joshfilippi sends brownie points to @livonian-router :sparkles: :thumbsup: :sparkles:
:cookie: 286 | @livonian-router |http://www.freecodecamp.com/livonian-router
James Payne
@jamespayne
Hey everybody, I just finished Build a Random Route Machine. If anybody has any feedback, that would be great. Here is the pen: http://codepen.io/jlpayne/pen/yVZrLW
  • Quote. Not route!
Josh
@joshfilippi
@jamespayne It's looks really good. I didn't know about text-shadow css command. Nicely done
James Payne
@jamespayne
@joshfilippi Thanks a lot! Yeah its pretty handy but I guess you would have to be careful when it comes to browser compatibility. I added an extra user story where you can click on the authors name and it takes you to the wikipedia page for that author. Did you find that feature?
CamperBot
@camperbot
jamespayne sends brownie points to @joshfilippi :sparkles: :thumbsup: :sparkles:
:cookie: 265 | @joshfilippi |http://www.freecodecamp.com/joshfilippi
RakeshNerkar
@Rakesh18754
"data": {
    "locationName": "test tag",
    "address": "Bangladesh,Boalkhali",
    "assetTags": [
        {
            "tagType": "du",
            "tagValue": "aadadasd"
        }
    ]
}

var option_cate = '<li class="item"><span>' + malwareLabel +' : ' + dummyJson.data[key] + ' </span></li>';
$(option_cate).appendTo('#malware-menu');

but it gets printed as
locationName : test tag,
address : Bangladesh,Boalkhali,
Asset Tags : [object Object]

The data for assetTags gets printed as object as it is an array of object
How to print the values of the inner array also

James Payne
@jamespayne
@Rakesh18754 maybe try data.assetTags[0].whateverdatayouneed?
Might be wrong. I've just spent the whole day learning heaps about JSON.
RakeshNerkar
@Rakesh18754
@jamespayne actully it can contain n number of objects
James Payne
@jamespayne
maybe a nested loop would help you solve that problem?
DavidMinAZ
@DavidMinAZ
@jamespayne Looks great... and you used the same API that I have been trying to use without success
James Payne
@jamespayne
@DavidMinAZ Thanks. Yeah I really struggled to find a solution that worked. It took a fair amount of research to figure it out. Learnt a lot during that process.
CamperBot
@camperbot
jamespayne sends brownie points to @davidminaz :sparkles: :thumbsup: :sparkles:
:cookie: 265 | @davidminaz |http://www.freecodecamp.com/davidminaz
James Payne
@jamespayne
@DavidMinAZ Do you have a link to your pen?
DavidMinAZ
@DavidMinAZ
@jamespayne Yes, though it's far from complete... I'm stuck on trying to figure out how to use the .getJSON() with that API
My pen: http://codepen.io/dmattiuz/pen/zogGeB?editors=0011
@jamespayne I see you used the jsonp option in your call... which I avoided because I didn't know what sort of slippery slope there would be with trying to do something "unvanilla"
Lean Junio
@leanjunio
@leanjunio
Hey everybody,
Are front-end developers also responsible for making the websites dynamic?
In that sense, introducing a CMS to the site or something along those lines, are those under the web developer's job?
trieucrew
@trieucrew
Trying to switch between military time and regular time with click and ran into this wall where it keeps switching back and forth when I press the time. Any suggestions?
James Payne
@jamespayne
@DavidMinAZ Yeah you're probably right. I think the main problem is having to deal with the limitations of codepen and apis together.
DavidMinAZ
@DavidMinAZ
@jamespayne Does it have something to do with the code being hosted in CodePen as to why I'd need the multi-server-skirting goodness of jsonp?
Saif Ali Khan
@saifat29
Need help here with the Wikipedia Viewer Project - After searching on the Wikipedia Viewer for the second time, the previous search results doesn't go away. I tried replaceWith(); ,replace(); , show(); , hide(); , but I can't get it right.
DavidMinAZ
@DavidMinAZ
@jamespayne I just swapped your jsonp url for mine and now mine is returning the query to the console with my test code... WOW
Saif Ali Khan
@saifat29
Here is my JS code -
$(document).ready(function() {
  $resultsList = $('#resultsList');

  $('#submit').click(function() {
    var query = $("#query").val();

    var url = "https://cors.now.sh/https://en.wikipedia.org/w/api.php?action=opensearch&format=json&search=" + query + "&namespace=0&limit=10";
    $.getJSON(url, function(data) {
      //console.log(data);

      for (var i = 0; i < data[1].length; i++) {
        $resultsList.append('<li><div class="card"><div class="card-content"><span class="card-title">'+ data[1][i] +'</span><p>'+ data[2][i] +'</p></div><div class="card-action"><a href="'+ data[3][i] +'" target="_blank">read full article</a></div></div></li>');
      }

    });
  });
});
currently I am using append(); to show the data on the page
James Payne
@jamespayne
@DavidMinAZ I don't really know the intricacies of it to be honest. That was the only way I found to get around the problem. I'm learning a lot myself and need to do more reading on it because it seems that its a serious security issue. I'll be doing some reading into it. Here is where I started. http://stackoverflow.com/questions/24349907/what-is-difference-between-json-and-jsonp
DavidMinAZ
@DavidMinAZ
@jamespayne Thanks! Really appreciate that insight and the resource link! Now that I have data coming in I can go back to being frustrated remembering how to get it to show up at my target :laughing:
CamperBot
@camperbot
davidminaz sends brownie points to @jamespayne :sparkles: :thumbsup: :sparkles:
:cookie: 257 | @jamespayne |http://www.freecodecamp.com/jamespayne
trieucrew
@trieucrew
can someone help me with the asynchronous problem that I'm having
still confused on how they work
Darth Skywalker
@adityaparab
@trieucrew shoot