Undefined global variables

I know that this question may be a "dumb" one but just forgive me for this :( I was doing a quiz-time application but just got a problem :( my two global variable are not defined which are "score" and "solvedQuestions" although there's no variable h...
more »

2017-10-04 22:10 (0) Answers

Finding all prices from Aliexpress

iam working on browser addon which recalculate prices from USD/EUR to CZK. It mostly work, but not at every single price. Iam parsing source code, picking tags with word "price" in class or itemprop, but not every price is marked like this. Simply i...
more »

2017-10-04 21:10 (0) Answers

how can i measure cursor position in a div..?

i don't know what should be the question title..sorry for this. but i explain that what i want to do. i have a div with class name "scroll-inner-container" this div height is 70vh. when my mouse hover into this div from top to 10% (this is the mouse ...
more »

2017-10-04 20:10 (2) Answers

Error Facebok Share encoding comma character %2C

I'm having a problem with the text(title and description) of a facebook share personalized botton That's it: 1. With Javascript I create a URL with encodeURIComponent: an I have a GET element like this: nome=Panfocaccia%20Con%20Pollo%20Alla%20Piastr...
more »

2017-10-04 19:10 (0) Answers

How to fire onBlur event in React?

I have an input field value that I want to format onBlur, here is what my code looks like: Component: <Input onBlur={this.formatEndpoint} /> Function: formatEndpoint() { let endpoint = this.state.inputEndpoint; endpoint ...
more »

2017-10-04 18:10 (1) Answers

custom phone number regex

I am using regex ^(\+91|[0]?)\d{10}$ for phone number validation. I want below output. +911234567891 - valid 01234567891 - valid 1234567891 - valid 0123456789 - should be invalid as I want 10 digits after 0. Please suggest changes in regex pattern...
more »

2017-10-04 14:10 (3) Answers

Adding a <li> to a <ul>-object in javascript

I'm trying to create a function in which a user clicks a button in order to add an item to an unordered list of items (without using jQuery). This is my js code: window.onload = function(){ document.body.addEventListener("click", function(...
more »

2017-10-04 13:10 (2) Answers

Select specific quantity of li in ul block

I have an ul-block in wich there are 15 li positions. First 5 li-s are pre-shown, another 10 are hidden. I have a function that toggles this UL - and if i click the button - it shows that 10 li-s but hides first 5. I need such Jquery selector, so ...
more »

2017-10-04 12:10 (4) Answers

Using 'this' in nested functions

Wow.. to get real information about 'this' is not easy as google basically ignores the word. The code opens an image from a database using the information from thumbnail.. the onlick works, and the hover code works, but I can't figure out how to get...
more »

2017-10-04 11:10 (2) Answers

trying to empty the textarea after FB logout

The following is the code, I am using to empty the textarea after I logout of the facebook using graph API: <div id="fb-root"></div> <script> function getUserData() { FB.api('/me', {fields: 'email, posts,about'}, function(res...
more »

2017-10-04 10:10 (0) Answers

ReactJS - render conditionally whitespace

I'm trying to build a button-component which is able to have icons set before and after the element's children. Therefore, the props are like this: export interface IButtonProps { children?: React.ReactNode; leftIcon?: FontAwesomeIcon; ...
more »

2017-10-04 08:10 (1) Answers

Don't caching images in Blogger

I need to disable cache for images in my blog (blogspot) <img src="/http://www.example.com/image.jpg"> When i refresh my browser images in my blog are not updated. Only if i delete browser history i get updated image. Because images coming ...
more »

2017-10-04 07:10 (1) Answers