« first day (1056 days earlier)      last day (3899 days later) » 

10:00 PM
That tells me there's syntax errors in your code. Finding it will be hard for us because we can't see the who code base.
could be missing comma or semicolon somewhere
 
19 mins ago, by Malik Usman
lol well this script is not giving me any error i tested is by posting but its not working means not posting data
Thanks for being honest!
 
well i am 90% sure problem is in my script the script i showed you guys
 
Is there a better way of doing this?
if(tools < 5) {
	tools = 5;
	page = 95;
}
if( page < 5 ){
	page = 5;
	tools = 95;
}
 
@MalikUsman what version of jquery are you using
also, text is not defined in your pastebin code starting line 17-22
 
@Mahesh i dont know where can i find that sorry i am not javascript developer so i dont know these things :'(
 
10:08 PM
what is text supposed to be?
 
@MalikUsman If you don't believe no help. Sorry.
You have to believe and accept John Resig as your lord and savior and unlock the jQuery within
 
@Mahesh it will be any random comment!
or feedback
 
@Pinocchio if(tools < 5) tools = 5; if(page < 5) tools = 95; page = 100 - tools;
Doesn't matter too much though
 
this line
var inputs1 = $('#input1').val(text);
 
@copy genius lmao
 
10:09 PM
connected with this <input id='input1' type='text' name='input1' value='Awesome picture'>
 
Wait, no
 
definitely understand what you're getting at
 
Depends on the values
 
var inputs1 = $('#input1').val()
try that
 
@copy that is the values
 
10:10 PM
ok wait
thanks
 
I mean, if tools = 45; page = 45; is a valid constellation, it fails
 
var inputs1 = $('#input1').val();
like this right
at end do i need to keep ; or shall i remove it
 
thats about as much i can help you with
 
Awesome thanks alot :D
its working
@Mahesh
thanks :D
 
no problem, learn jQuery!!
 
10:13 PM
has reading a tutorial even made you physically sick? stackoverflow.com/questions/18666843/…
 
@Mahesh actually yeah i am, in my next level i'll learn javascript and all this
 
@copy i don't get it page = 100 - 45; ==> 55; well it's working fine ATM anyway
 
I mean, I was assuming they add up to 100. That might not have been the case, but apparently it is
 
0
Q: Content divider using HTML/Javascript

user2680614How do I add content divider every time the next question pops up. It doesn't matter what kind of divider as long as it has a small show above it or below it. I'm open to javascript and HTML. Example: q1 q2 q3 q4 (when q1 is chosen, another form pops up along with a content divider) q5 q6 q7...

bad code, bad code everywhere...
 
@Mahesh one more question
in response i have added alert box but its not working
i dont know why
success: function (response) {
                $loader.hide();
                response = JSON && JSON.parse(response) || $.parseJSON(response);
                alert('Awesome! Job done if you need more likes please try after 5 hours');
 
10:17 PM
Isn't <input align... outdated?
 
@MalikUsman most likely jQuery has already parsed the response
 
@MalikUsman are you using Internet Explorer? If so, you might have to change alert to window.alert
 
well i am using chrome
 
Do window.window.alert, just to be safe
 
@copy you can never be too sure with IE
 
10:19 PM
@Alex 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 know, bro
 
@Mahesh wat?
 
aghhh the more I look at this code the more I realize how awful it is
 
well i am using chrome but its not working
 
Also if(firing = true){ that will always execute. Try if (firing == true) or just if (firing). All your == true and != falses are useless, and all your == falses can be replaced with a single character: !. And in your fire method, you create a new local bulletx. And that massive wall of g.drawImage can be replaced with a simple loop. You really need to read a book on the basics of Java, or find a beginner tutorial. — Doorknob 3 mins ago
rant rant rant
 
10:21 PM
@MalikUsman giving us the console errors would be helpful
 
@Doorknob EEEEK
 
well its not giving any error its just not showing alert box
Awesome i just remove this and its working now response = JSON && JSON.parse(response) || $.parseJSON(response);
 
@Doorknob You get an educational chore - name one scenario where if(firing = true) does not execute :)
Wait, that's Java
 
@BenjaminGruenbaum if firing isn't boolean, it's a compile-time error
 
@BenjaminGruenbaum how about String firing? Then it throws an error :D
 
10:24 PM
It's possible to make it not execute in Java but it's considerably harder to do
And not nearly as interesting
 
@BenjaminGruenbaum why? Just wrap in if(false){...}
 
@CS_STEM 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.
 
@JanDvorak That's not the issue at all. You have the following code: if(something=true{... you can't wrap it but you can set something in advance.
No compile time errors
 
user1596138
I just cleared a 17 year database in FileMakerPro.
 
if you're very careful, you might be able to make the autoboxing fail on out-of-memory error, but I doubt that due to interning.
 
10:27 PM
@Jhawins run.
 
user1596138
A 17 year database containing all of our distribution... For 17 fucking years.
 
user1596138
There's no undo...
 
oops
 
@Jhawins what kind of file manager doesn't have you confirm on delete and has no undo?!
and why not restore from backup?
 
and no regular backups?
 
user1596138
10:28 PM
@Doorknob It was a botched import. Was supposed to import one field but the default action for import -I shit you not- is to clear all old records and only use what's imported.
 
@Jhawins okay then, that's one terrible file manager
so... backups?
 
user1596138
So it's not even an import by default, it's more like populating a database for the first time.
 
user1596138
Looking...
 
user1596138
Oh shit! What am I saying?! It's all backed up.
 
user1596138
But I lost 3 hours of work I did today..
 
10:30 PM
that sounds like a bad program to even mess with unless you need to wipe a school/company computer
 
how big a company is it?
 
user1596138
That would be FileMakerPro. Which is a $120 program.
 
user1596138
Not big. At all. We're a paper
 
ah oh, because really stuff that like should never sit on just one computer
 
user1596138
10:32 PM
Ha!! I made the automatic backup by 2 minutes!
 
it be on a network server somewhere
*should
 
user1596138
It's on our company fileserver. I just completely spaced and didn't remember we have a backup system.
 
if the company has a server it should be on there.
 
user1596138
Fuck, I wrote the backup system and I didn't even remember it.
 
user1596138
I need to go home... It's 6:30 here now
 
10:33 PM
that's a big problem good luck
 
user1596138
No problem now.
 
hey can anyone tell me what the difference between (function() { })(); and (function() { }()); is?
 
@Jhawins Only 6:30? Amateur hour.
 
user1596138
Psh. I've been here since like 8.
 
user1596138
9:17. //close enough
 
10:35 PM
(function () {

}());
(function () {

})();
 
@Mahesh nothing
 
that's what i figured, so just a personal preference among developers?
 
yes
 
user1596138
@Mahesh The latter is almost 1million ops/sec faster.
 
user1596138
Which means, nothing. I'm just bored and leaving for home.
 
@Mahesh darn it you beat me! :P
wait a minute. yours shows infinity ops/sec for the first one. JS is optimizing it, I think.
 
weird now, its saying the second case is faster
 
so it doesn't really matter.
 
looks like it
weird thing was with both test cases, the first function is faster the first time, all following tests show that the second func is faster
 
10:49 PM
Weird is what's going on right now
 
user1596138
@Doorknob Did it forever before that... jsperf.com/function-anomaly
 
user1596138
It seems with the order reversed they're identical??
 
user1596138
Because JSPerf sucks.
 
Unlike your tests, which are perfectly fine and valid
 
m59
11:19 PM
Is there nothing to be done about people ripping off your answers?
 
Downvotes, with comment
 
m59
Yeah, then they just say retarded stuff.
Here's a REAL good ignorance fest for ya
From the poster and the other answerer.
-1
Q: add loading animation during content replacing

PurpleFoxyI've a jQuery script that scraps the page, fetch datas and replace the entire page with a dynamic-generated page where the fetched data are inserted. When the script runs the page becomes white for 1 second, I'd like to put a loading screen instead. My code is: var template = "my long HTML pag...

I'm flagging for removal. This is ridiculous.
 
@m59 you appear to have two answers...
 
@BadgerGirl Busy with work, plus a holiday :-)
 
apparently trying to place 100,000 markers on google maps api is a good way to freeze your browser for 30 minutes :)
 
m59
11:46 PM
@SomeKittens yeah, I put another one because of his comments, but both are applicable at this point. It's a mess.
 
@m59 Don't create a new answer, edit your old one.
 
m59
I'm this close to deleting both. He's helpless.
Well, I was going to create the new one and delete the old one
but then commented and the old one became relevant again.
The only correct answer now is: Delete your server. You lose.
 
Computer over = very yes? That's not a good prize!
 

« first day (1056 days earlier)      last day (3899 days later) »