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
Santiago Fernandez
@sf-jd
does the wiki api return an object? i thoguht it returned an array of objects
Moisés Man
@moigithub
then first u need to access that nested object
John
@tertiaryidentifier
yes, wiki api returns an object, and yes I am accessing that nested object
Santiago Fernandez
@sf-jd
i thought it returned an array, wtf lol
John
@tertiaryidentifier
let me show you my call holdon
Santiago Fernandez
@sf-jd
im opening your pen
Santiago Fernandez
@sf-jd
btw you also need a preventDefault there
John
@tertiaryidentifier
yeah I realized I did the button wrong, going to remove the button and preventDefault on just enter key, want to figure out results first
Santiago Fernandez
@sf-jd
line 8, pass an e to your function and drop the e.preventDefault() else youre redirecting to a blank page
you might want to start googling for the fix on index.html:1 Failed to load https://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrnamespace=0&gsrlimit=10&prop=pageimages|extracts&pilimit=max&exintro&explaintext&exsentences=1&exlimit=max&gsrsearch=test&callback=JSON_CALLBACK: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://s.codepen.io' is therefore not allowed access.
John
@tertiaryidentifier
where did you see that error?
Santiago Fernandez
@sf-jd
console
dev tools, not the codepen console.
just hit f12 if youre on chrome
John
@tertiaryidentifier
cool thanks
Santiago Fernandez
@sf-jd
tst.png
John
@tertiaryidentifier
do you think adding jsonp as an argument would solve that problem?
Moisés Man
@moigithub
wiki api have a origin parameter u can use to allow CORS request
add &origin=*
CamperBot
@camperbot

freeCodeCamp Wiki:

:point_right: The freeCodeCamp wiki can be found on our forum.
Please follow the link and search there.
John
@tertiaryidentifier
adding jsonp solved the problem
Santiago Fernandez
@sf-jd
yup
John
@tertiaryidentifier
i'm going to take a break ... be back later lol. thanks for the help
Santiago Fernandez
@sf-jd
brain.js looks really nice
Moisés Man
@moigithub
jquery "transform" data when u pass a data type, soo no need to parse urself
u can check by using typeof data <-- its already an object
Santiago Fernandez
@sf-jd
pragya1248
@pragya1248
hey!
Ghost
@ghost~5a4a80acd73408ce4f859755
@pragya1248 Hello :wave:
pragya1248
@pragya1248
any suggestion to make my homepage more attractive? https://codepen.io/pragyapriya/pen/pLrZxm?editors=1100
Ghost
@ghost~5a4a80acd73408ce4f859755
@pragya1248 A lot. Find a template and try to copy it :)
pragya1248
@pragya1248
what's wrong in this?
Ghost
@ghost~5a4a80acd73408ce4f859755
image.png
Is this really what it's supposed to look like? @pragya1248
pragya1248
@pragya1248
i don't know..i m very new to this
Ghost
@ghost~5a4a80acd73408ce4f859755
@pragya1248 Are you following the FCC curriculum?
pragya1248
@pragya1248
no
Ghost
@ghost~5a4a80acd73408ce4f859755
@pragya1248 How are you learning?
pragya1248
@pragya1248
codeacademy
Ghost
@ghost~5a4a80acd73408ce4f859755
@pragya1248 With a pro account?
pragya1248
@pragya1248
no
normally
why what's wrong?
Ghost
@ghost~5a4a80acd73408ce4f859755
@pragya1248 Maybe ur not learning in depth enough
pragya1248
@pragya1248
ok can you suggest me some good site?@MuhammedKarim
Ghost
@ghost~5a4a80acd73408ce4f859755
@pragya1248 https://teamtreehouse.com/home I use this one, seems like the best so far
pragya1248
@pragya1248
ok thanks @MuhammedKarim
CamperBot
@camperbot
pragya1248 sends brownie points to @muhammedkarim :sparkles: :thumbsup: :sparkles:
:cookie: 230 | @muhammedkarim |http://www.freecodecamp.org/muhammedkarim
Ghost
@ghost~5a4a80acd73408ce4f859755
@pragya1248 It is a paid website, but i believe it is a very worthy investment
pragya1248
@pragya1248
ok