« first day (1051 days earlier)      last day (3895 days later) » 

@Doorknob I was tempted to make an edit to only display the first paragraph.
 
@Jan Dvorak, yes you are right.
But seems legit to me also to create one module for example "Shape1" with method A and module "Shape2" with method B and C. In that case module "Shapes" can only use module "Shape1". Dont know why but i like that solution.
 
@synth3tk the rest of the question is useless anyway :P
 
@copy Yikes. Came pretty close, but, ehh...
 
@Srle use your heart, not some phariseic set of rules
 
10:03 PM
How would I return a backspace keypress from String.fromCharCode(event.keyCode)?
 
@LogicalAngel don't use fromCharCode
 
@Retsam Close to the first platform?
 
What would I use?
 
@copy No, I got all the way to the 'last' platform on the first stage.
 
@Jan Dvorak, absolutely thanks for advice. Only problem is that i need to write few bullshit sentences about this principle in JS for my thesis :D
 
10:04 PM
@Retsam Not bad
 
@copy I'm not sure if I'm supposed to try to freefall towards the apple or figure out why that thing moves when I bump it. (Before plummeting to my death)
 
@Srle say that javascript doesn't really have interfaces, but the principle still applies when deciding how to separate code into independently compileable and includeable modules.
 
@Retsam If you didn't play iwbtg before, you're better than most other players
 
what I'm saying is that piggybacking isn't always bad
 
@copy I played a little iwbtg.
 
10:06 PM
@Jan Dvorak, so to write something like examples of "Shape1" and "Shape2"
 
@copy My tactic is to keep pressing space and right arrow and hope for the best
oh and mash t hoping that something will happen
 
@Srle I'd only do that if inclusion of B and C was relatively expensive
 
@copy I'm pretty sure I've played iwbtg twice... the first time I didn't even figure out the first "trick".
 
@Jan Dvorak, you saved my day
 
Yeah great, as usual. You have just done the opposite towards the aim of this resource. If you had some level of kindness you would be able to understand and I would edit the question to fit it for SO standard if I would find help from you. But you as always choose easy path. Thanks for nothing. — Aubergine 1 min ago
 
10:08 PM
@Doorknob The character didn't find a gun yet
 
Haha, got out of the first room!
 
@copy ah, well okay then. is this possible O_o I must keep trying!
@synth3tk lol I don't know how to reply to that
 
@Doorknob As long as you don't need 30 minutes to reach the first platform (like rlemon), you're pretty good
 
Answer: You don't.
 
@copy Thanks for posting your game, now I can't do anything until I pass it again.
 
10:11 PM
I think these sort of platformers are interesting cause they're more of a memory game than a skill game, I feel like.
 
@copy Oh btw I'm still getting a few console.logs because of "logic skip," you might want to remove those
 
@Doorknob Firefox?
 
Chrome 29.0.1547.57
 
It's kind of pre-alpha, so that doesn't matter too much
 
@copy You and your game, I hate you A LOT.
 
10:13 PM
@Retsam There's quite some skill, you will notice as soon as you finish iwbtg
@OctavianDamiean Good luck
 
@copy Yeah; I'm sure there is; but it just always feels more like a game of Simon.
 
You should turn on the music, by the way (press m)
 
@Jan Dvorak, can you give me example(anything) where inclusion of B and C would be relatively expensive
like method B for example creating a bunch of new object or i dont know :D
 
user1125394
require('ferrari')
 
@Kavan 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.
 
10:16 PM
@Srle calculator (+/-/*/%) vs. scientific calculator (derivations/integrals/sin/cos/tan/stat/...)
 
get the point :D
thanks
 
Bah, fucking man-flu. Who the fuck got me sick?!
 
@phenomnomnominal slowly raises hand
 
another example: DOM (cheap) / jQuery (expensive)
 
@synth3tk I knew I should've worn a condom.
 
10:21 PM
@phenomnomnominal Well that escalated quickly.
 
so did something else.
 
You're poignant today.
 
I have the night madness
which is worrying, since it's almost midday
 
@phenomnomnominal you made my day.
 
Any time!
 
10:30 PM
@phenomnomnominal But not without the purple pill, first.
 
function updateMechanism(elementObject) {
event.returnValue = false;
elementObject.value += String.fromCharCode(event.keyCode);
firebaseObject.child("HTML").set({code: document.getElementById("textInput").value});
}
What would I use to return a backspace character ti the textInpit textarea?
 
why not just replace the text value with the text value minus one character?
 
That seems like it would work, but how do I detct the backspace key?
 
@Zirak Not seriously, just did the tutorial and coded a small gig
Why? Are you considering it?
 
10:39 PM
why do you need to detect anything? If they pressed the backspace key it should delete it?
or is it not on an input?
 
@BenjaminGruenbaum yeah, making a crappy GUI to go with some logic, thought of doing the logic in F#.
 
I'm removing the key'd default function and placing it in manually via the script to get around issues with the script updating befire the character is inserted into the textfield.
 
@Pinocchio jQuery is the answer to everything. Your SO question, life, the universe. jQuery is all-knowing. jQuery is all-powerful. It can see into the past, the future, into the deepest depths of your soul.
 
@LogicalAngel why not use a key up event?
 
if( event.keyCode === 8 ) string.substring(string.length - 1, -1);
 
10:41 PM
I tried that too, same problem.
 
@LogicalAngel ?
oh
 
make a fiddle, you're doing something wrong.
 
@LogicalAngel (0)Check an ASCII key table for backspace's keycode; (1)ew, don't use IE's horrible global event variable; (2) don't try and make your own text-area, it's a world of pain (what about common shortcuts like Ctrl+Left, and what about deleting more than one character, either by cutting or selecting several and hitting delete, and really, why do you ignore the delete button?)
@BenjaminGruenbaum I might give WPF a shot.
 
onkeypress->php fwrite: The file saves an empty string once, then upon another keypress, once there is already data in the textarea, it writes the file with that data while discluding the character being entered.
I think its a valid assumption to assume that the script executes before the character is entered into the texareas value. I guess I could be wrong, though.
So, I nullified the keypressed default function, then entred the key manually via string.fromcharcode, then executed the function.
 
@Zirak Are you suicidal?
 
10:48 PM
Though, now, it seems that fromcharcode does not detect special keys like backspace.
 
@VinitSiriah 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.
 
Hey ...Please tell me about if I managed to get all the design web site of a publish site. So is there is any copyright after changing images and content ?? If yes .. How much and i have to change to overcome this ??
 
Guys how can i unbind the change event from select?

I use $('#smth').on('change', function() {.. on button press something happens...});

The problem is that select's content can change and when that happens i want to unbind change from select, so button would have to be activated again by changing the renewed select again.

I tried with $('#smth').off('change'); but its not working. I can press button, without changing my smth select again.
 
@BenjaminGruenbaum But...you...
 
It's not my own textarea out of a div or something, it's a normal textarea. I just need to figure out how to return the special characters properly.
 
10:51 PM
I use WPF because it's the only viable solution to a problem I'm having
If I could use JS+HTML (With Angular for example) I wouldn't blink twice)
 
@Zirak I think you caught one too many grenade today.
Also, isn't it something like 2 a.m. for you?
 
I disagree with what other people say. Writing web applications is more expensive than normal graphical user interfaces
 
Expensive in what way?
 
^^
 
Performance?
 
10:55 PM
Time
 
Development time?
 
Why is writing web applications expensive?
 
Yes
 
Isn't that obvious?
 
10:55 PM
Then you're wrong.
 
Either me or you
 
What do you class as a "normal graphical user interface"?
 
If you have to cover a lot of platforms with different development and code environments then the web is the cheapest in terms of time.
@copy Did you have to realize big projects for companies on different platforms?
 
I guess if you're hiring someone, it is.
 
I'm guessing Zirak just wants to fiddle around or write a tool that is useful for himself
 
10:58 PM
Well, I thought you meant in general.
 
Hard to say. If you have to support Linux and Windows (or even mobile), probably web
 
@Zirak What do you suppose I would use instead of the event object?
 
Especially mobile. :)
I was working on a project which had to be realized for Symbian S60, Windows Mobile (back in the days), iOS and Android.
They decided to go native on all platforms.
It was incredibly expensive in terms of time and even more expensive in terms of money.
 
That's horrible
 
In terms of money it was six-digit figures (in Euro).
 
11:03 PM
For some reason, that doesn't seem like a lot for a multi-platform project.
 
It's a ridiculous figure for what could have been a mobile website.
Granted maybe not for the Symbian S60.
 
I guess that's true. Haha, why didn't they do it that way instead?
 
Well, I don't know why.
I wasn't in management, I was the guy in charge of the Android application.
 
Ohh, project manager.
 
Yea, a one guy department. :D
 
11:08 PM
Oh? You would figure there would be more than one person. Must have been a small app?
 
Nope.
And yea, I was quite busy back then. :D
 
My wireless mouse interferes with my bluetooth keyboard... imagine that one.
I imagine so.
It strikes me as bewildering to think of being solely responsible for a commercial project.
Then, I don't know the languages thouroghly well, and I type slow, so maybe it's just me.
 
Best part about that is the moment you figure out that a certain feature isn't as simple to implement as you thought but the deadline is || this close.
 
Logic crunching time
BTW, I still don't have an idea of how to return a special character with the event ooobjeccttt...
 
How can I load functions from external JS files into my Gruntfile.js
?
 
11:16 PM
if (event.keycode == specialchar) {workaround} seems like a long way around something simple.
There's got to be an easier way.
Why would you? Just load both files.
 
0
Q: How can I apply a Javascript to the results of a jQuery .load

WestJI'm working on a new plugin that provides shortcodes specifically for ShoutIRC users in Wordpress. This is done by running PHP queries and pulling the results via jQuery.load I'm a long long way off yet, but I am having one issue. Here's an example of a page I am pulling: http://lotus.fillyradi...

 
Internal functions assigned to global variables that interface through the browser might be a way of doing it, instead of trying to load the functions into each other.
file one->(global) var blah = function(); file two-> do something with the glabal blah.
I'm not readily sure of any other way for two seperate external JS files to interface.
But, that's not really what you're trying to do, is it?
Is the file you're loading an XML file?
It would help if there was some example code to reference logic from.
 
I've figured it out. I just do var foo = require('./js/foo.js'); in the Gruntfile.
 
Ohh.. didn't think about it that way.
I guess it would work the same way.
 
11:43 PM
GHAH! How the hell do I return a backspace through the event object?
 
Need more gigawatts on the transfuser.
 
document.getElementById("textArea").value = String.fromCharCode(event.keyCode)
Does not work with backspace and the like.
I need to return the character itself through the event object or somehow otherwise insert the character into the textArea's value onkeypress.
 
Just don't prevent the default action?
 
I have to. It won't work otherwise.
 
Why?
 
11:49 PM
Because the script will execute before the character in inserted into the textArea's value. I'm sending the value to an external mechanism onkeypress.
 
And depending on the response you insert it or not?
 
No, I'm just trying to work around the fact that the character is inserted afterwards by inserting the character via script, then sending the value, so I know the character is there before the send mechanism executes.
 
So the send mechanism is slow?
 
No, it just doesn't send with the character inserted when you hit the key.
 
Oh
Why don't you delay the send for 4ms?
 
11:55 PM
Maybe I could remove a character and then send the value, but there has to be some mechanism of inserting a backspace with event.keyCode or something.
 
If you delay it, it will work
 
I tried that thinking it was just slow, myself. It still sent without the insterted character. My only assumption is that it executes the script before the character is actually appended to the value.
I used a 500ms setTimeout
Just to make sure
 
yo peepz
whats good
 
That doesn't sound right to me
 
What? my vernacular?
 
11:58 PM
I know, right. You wold figure an onkeypress event would wait for the character insertion.
 
Here's a better idea: You a function once every second, which checks if the value changed, and if so, send the new value
That way it's also throttled
 

« first day (1051 days earlier)      last day (3895 days later) »