No. No. No. This won't do. You're doing inheritance in JavaScript all wrong. Your code gives me migraines.
Creating a Pseudo-Classical Inheritance Pattern in JavaScript
If you want something similar to classes in JavaScript then there are a lot of libraries out there which provide it to you. Fo...
@Plux Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
hello, guys i have a problem i have an input using jquery autoload ,and i need to get the current data in the input. if a user press enter it is ok, since i can catch the event using, keyup or keydown, but what if a user clicks on the list of autoloaded values? how would i catch that?
Im about to start with unit-testing in an application, does anyone here have any experience with the JsTestDriver framework? Or are there any other frameworks you could recommend?
Hi,i'm trying to get the selected text by user on page any help
$(document).on(function (){
$('p').mouseup(function (e){
alert(getSelectionText());
});
});
//get selection
function getSelectionText() {
var text = "";
if (window.getSelection) {
text = window.getSelection().toString();
} else if (document.selection && document.selection.type != "Control") {
text = document.selection.createRange().text;
}
return text;
}
remember when SomeGuy was the sweet and ever-so-nice Indian kid and the worst thing he would do to you was taking your flawed english sentence and shove it up butt?
those where the days
now he's doing nothing but insulting innocent people
> They will invite you for a full day in Copenhagen ( paid of course and recently voted the world's most livable city by Monocle lifestyle magazine ) to let you see what it's like with the team which has been assembled from some great guys from all over the world so obviously the main spoken language is English, and full relocation payments, visa handling is all taken care of by <CompanyName>
@AbhishekHingnikar funny you say that, I've just returned from a meeting with the customer and we've decided to dump bootstrap and I personally decided not to touch bootstrap ever again.
@CodeApprentice Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@Ameer Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@adara Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
I have an uber-edge case here.
I am writing a wrapper directive around a jQuery plugin that transforms a simple html element into a formal Feedback oriented view.
<div my-directive>DirectiveContent</div>
Since the plugin doesn't know what to do with it. My directive transforms it into somethi...
@Kevin Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@joshuahornby10 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@MattGrubb Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.