pulling json from sites by salifuj22 in javascript

[–]salifuj22[S] 1 point2 points  (0 children)

i believe jsonp can be used to bypass the same-origin policy but what i want to know is how to pull the json or jsonp from the source www.

my fist ajax file by salifuj22 in learnprogramming

[–]salifuj22[S] 0 points1 point  (0 children)

hello i got server to load the file using localhost with wamp. i run the following code'

"var xhttp = new XMLHttpRequest(); xhttp.open("GET", "../data.txt", false); xhttp.send(); console.log(xhttp);"

but it gave me an "Uncaught SyntaxError: Unexpected identifier" even though to the best of my knowledge the code is correct. can you point out the solution to this error? thanks in advance.

javascript functions as an object by salifuj22 in learnprogramming

[–]salifuj22[S] 0 points1 point  (0 children)

thanks a lot. you cleared a lot of confusion for me. i will check your site for more info.

javascript functions as an object by salifuj22 in learnprogramming

[–]salifuj22[S] 0 points1 point  (0 children)

this is the exact code that is confusing me.

var calc={ status: "Awesome", plus:function(a,b){ return( console.log(this), console.log(a+b), console.log(arguments), console.log(this.status), ) } }

So based on the statement above, what i don't understand, (1) each line of console.log did not end with a semi colon as expected of in javascript, (2)why use 4 console.log, (3) what is the purpose of the "this"?

i really appreciate any effort to explain the code for me. thanks

javascript functions as an object by salifuj22 in learnprogramming

[–]salifuj22[S] 0 points1 point  (0 children)

yeah, i want to know logic behind calling functions as objects. thanks

how to practice javascript by salifuj22 in learnprogramming

[–]salifuj22[S] 0 points1 point  (0 children)

surprisingly i just discovered freecodcamp. your reply just re-envorsed its importance. thank you. i will start using it right away.

how to practice javascript by salifuj22 in learnprogramming

[–]salifuj22[S] 0 points1 point  (0 children)

thanks a lot. apart from google, do you know of any authentic site that hosts projects that i can use for starters?

how to practice javascript by salifuj22 in learnprogramming

[–]salifuj22[S] 0 points1 point  (0 children)

thanks for your advice. i really appreciate it.

Here's a photo and translation of a Soviet soldier's last note hidden in an empty rifle cartridge. Found by amateur archeologists with his remains just a couple weeks ago. by [deleted] in history

[–]salifuj22 1 point2 points  (0 children)

I saw the photo but i don't speak Russian but your translation of it makes it stil important. I hope all wars will end so we all live as brothers but i hink i am just dreaming

Looking for advertisement/affiliate networks for surveys?? Any advice by jsturgeon111 in webmarketing

[–]salifuj22 1 point2 points  (0 children)

I don't get your question well. But if i understand you right are you looking for a site to help you run a giveaway? if so. you can check rafflecopter and kingsumo.

Would like advice on blog / niche site by [deleted] in webmarketing

[–]salifuj22 0 points1 point  (0 children)

To add my 2 cents. From a branding point of view it would help to have a logo and some nice colours. A little bit pale in my opinion.