I asked this question earlier, and after thinking about the topic some more, I began to wonder where the seemingly fuzzy boundary between the meanings of the terms “statement” and “expression” lies. Are all statements also expressions? Where do the return values in a REPL console come …
Tag: javascript
Insert Links into Google Charts api data?
I have been playing around with Google charts quite a bit over in the google charts play ground here: Link The code I have been playing with is this: and that gives me a nice chart that looks like this: I am trying to have this chart fit the needs of my website, and to do this, I need to
Direct vs delegation and bubbling vs capturing in jQuery
HTML jQuery I have used both above method in my code. I know second method is better due to it has only got single handler. My problems are: Is first method (direct) refers to the concept called event capturing? Is it an example for event capturing? Is second method (delegation) refers to the concept called e…
What is TypeScript and why would I use it in place of JavaScript? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago. Improve this question Can you please describe what the TypeScript language is? What can it do th…
Jquery -> vanilla javascript?
I am programmer who learning jQuery javascript but never really grasped vanilla javascript (i know I am a naughty programmer). My question is how would I go about replicating this functionality in vanilla JS? Answer This site might help ! But here’s a step by step conversion:
Using AppMobi and Events
I am new to the new AppMobi world, so can you please help me. I have created an image object and have drawn it to the stage. My problem is that I want to add an event to object. I have set the image using: And I have drawn it to stage: Now I want to add an event to
How to detect chrome and safari browser (webkit)
I am trying to detect the chrome and safari browser using jquery or javascript. I thought we are not supposed to use jQuery.browser. Are there any suggestions here? Thanks a lot! Answer If you dont want to use $.browser, take a look at case 1, otherwise maybe case 2 and 3 can help you just to get informed bec…
Performance with infinite scroll or a lot of dom elements?
I have a question on a big # of dom elmenets and performance. Let’s say I have 6000 dom elements on a page and the number of the elements can be increased as a user interact with the page (user scrolls to create a new dom element) like twitter. To improve the performance of the page, I can think of
Add/remove class with jquery based on vertical scroll?
So basically I’d like to remove the class from ‘header’ after the user scrolls down a little and add another class to change it’s look. Trying to figure out the simplest way of doing this but I can’t make it work. CSS HTML I’m sure I’m doing something very elementary …