Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 19 2020 20:09
    @krisb1220 banned @Gastony
  • May 14 2020 22:39
    @bjorno43 banned @minitechtips_twitter
  • May 14 2020 22:38
    @bjorno43 banned @real-action
  • Feb 01 2020 00:27
    @bjorno43 banned @Ndoua
  • Jan 07 2020 03:10
    @bjorno43 banned @doctor-sam
  • Aug 17 2019 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 2019 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 2019 17:13
    @mstellaluna banned @cmal
  • Jan 08 2019 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
Bogdan Cublesan
@cuble27
none worked
EgeKaya
@EgeKaya
@NitinNair89 Sure. I'm Kinda new here, how do I PM you?
Nitin Chandran Nair
@NitinNair89
@cuble27 what's the error you get?
@elqomri You got the key yet?
Bogdan Cublesan
@cuble27
Well, i got all of them I think.. As I said I tryied different methods with JSON and JSONP, both with $.getJSON and with $.ajax, Got the Access-Control-Allow-Origin has value null most often @NitinNair89
Nitin Chandran Nair
@NitinNair89
with your link, i can see the quote without any error @cuble27
Bogdan Cublesan
@cuble27
I can too, but try puttin it in a script and run the html
and look in the console
Nitin Chandran Nair
@NitinNair89
you have a codepen?
Bogdan Cublesan
@cuble27
no, I work in Atom
but I'll past it in codepen
wait 2 min
this was the simplest method I tried using
Nitin Chandran Nair
@NitinNair89
@cuble27 try using quote[0].content in your code
Bogdan Cublesan
@cuble27
I do have a method with AJAX that doesn't give me any error, but just doesn't run. It gets to .fail
I tried, doesn't work with quote[0]
Nitin Chandran Nair
@NitinNair89
it works, i tried
quote[0] and then use DOT notation to access the key
Bogdan Cublesan
@cuble27
did you try on codepen?
Nitin Chandran Nair
@NitinNair89
yes
i did
Bogdan Cublesan
@cuble27
$.getJSON('http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1', function(quote) {
document.write(quote[0].content);
});
If I try this in codepen it doesn't give me anything
Stephen James
@sjames1958gm
@cuble27 I tried your codepen link above and it worked for me as well ??
Bogdan Cublesan
@cuble27
ok, works for me now..I don't know what happened
but ONLY in codepen
if I try this in a actual html file
XMLHttpRequest cannot load http://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1. The 'Access-Control-Allow-Origin' header has a value 'http://null' that is not equal to the supplied origin. Origin 'null' is therefore not allowed access.
this pops up in console
Nitin Chandran Nair
@NitinNair89
hmm
did you search for it online?
Bogdan Cublesan
@cuble27
Yes, been doing that for 5h, I feel like I'm the only one having this problem
Every method i found to solve it
I don't understand it
or is not explained well
Bogdan Cublesan
@cuble27
I found some methods with php, but I don't use php for this
Didn't understand the answer
some things are strange to me from there
Nitin Chandran Nair
@NitinNair89
me too
Bogdan Cublesan
@cuble27
help
!help
how can you write code in here?
Nitin Chandran Nair
@NitinNair89
check the markdown.. or just paste it here
Bogdan Cublesan
@cuble27
albertmillert
@albertmillert
Hello. I had a ton of problems with my weather app lately. Firstly i used wrong API, secondly I struggled with $.getJSON function and finally now something seems not to be working with switching temps after clicking onto a button. Can someone please take a look?
https://codepen.io/albertmillert/pen/BLxVgO?editors=0011
Bogdan Cublesan
@cuble27
this is the only way that worked for me, but doesn;t launch (check the console)
Nitin Chandran Nair
@NitinNair89
something wrong with you navigation?
*your