« first day (2576 days earlier)      last day (1541 days later) » 

 
1 hour later…
 
5 hours later…
 
3 hours later…
13:02
$.ajax({
type: "POST"
data: {
imageBase64: dataURL
}, function(data) {
console.log(data);
});
1 message moved from JavaScript
1 message moved from JavaScript
 
2 hours later…
DRP
DRP
15:15
Hi Team! Quick one over here, looks like my 'wording' is not getting google to return the answer I want. Is there a way I can have javascript to say: if this hotlink does not work then use local repo, or the other way around.

`
<head>
<meta charset="UTF-8">
<script src="https://cdn.jsdelivr.net/npm/foo.min.js"></script>
// <script src="./foo.min.js"></script> failover here
<title>Foo</title>
</head>
`
1 message moved from JavaScript
 
4 hours later…
 
2 hours later…
20:53
$.getJSON( 'wp-json/wp/v2/posts?categories=3&page='+page+'&per_page=10&_embed', function(data){
//console.log(data);
if( data.length > 0 ){
self.posts.concat(data);
console.log(self.posts.concat(data));
page++;
}
}).done(function(){
canBeLoaded = true;
});
1 message moved from JavaScript
@sisaln Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved from JavaScript
$.getJSON( 'wp-json/wp/v2/posts?categories=3&page='+page+'&per_page=10&_embed', function(data){
        //console.log(data);
       if( data.length > 0 ){
            self.posts.concat(data);
            console.log(self.posts.concat(data));
            page++;
         }
     }).done(function(){
       canBeLoaded = true;
    });
$.getJSON( 'wp-json/wp/v2/posts?categories=3&page='+page+'&per_page=10&_embed', function(data){
//console.log(data);
if( data.length > 0 ){
self.posts.concat(data);
console.log(self.posts.concat(data));
page++;
}
}).done(function(){
canBeLoaded = true;
});

I have this code for vuejs. I'm learning it and I want to make an infinite scroll
@sisaln Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
1 message moved from JavaScript
5 messages moved from JavaScript

« first day (2576 days earlier)      last day (1541 days later) »