« first day (611 days earlier)      last day (4335 days later) » 

12:01 AM
oh .. this explains some of the crap i have been seeing : pages.sencha.com/Architect-Download.html
 
I have a question
i have a jQuery function in master page that sets a label's text , then when the child page loads it changes the text right back to nothing
 
that's a statement , not question ..
also , from "master page" i am guessing that you are using asp.net in some capacity
 
its a prelude to a question
yes sir
 
and from "sir" i am guessing that you are indian in origin
 
I know the javascript room is anti asp.net , but the c# room is anti jQuery, so I'm kinda screwed
nah, im not indian
28 yr old white dude
do you happen to know why this is occuring , or how to fix it?
 
12:11 AM
emm .. ok .. lets continue guessing here :
the child page gets loaded via XHR , right ?
 
ok, I am guessing I have to write a function in child page, and need to pass the content into the functinon in the child page
and I saw this example
function callMasterFunction() {
parent.fnMaster("Hello master");
I need to do the opposite , and like child. .... , but I'm not sure how to write that
 
is child page dynamically loaded , or , it requires full page reload ?
 
both , I cant get it to work the first initial load, then every time after that its dynamic
 
that was not what i asked
hell .. you need someone who understand what .NET madness
 
Im not sure I understand , but initally it has to go through the full asp.net loading process
 
12:15 AM
if you are using javascript in any capacity to change the label , then the page has already loaded
 
yea, the page is fully jquery, but it is still asp.net so it goes through that whole like 10 stage loading process
well, you'd think, but actually I think the master page loaded, changed the label, then the child page loads
 
what i am asking is : how do you get the child page to the browser ?
is it via XHR or full page reload
 
asp.net is kinda weird , you don't actually master then child through code, you load the child, which inherits the master, so asp.net automatically loads the master then child all on its own
 
11 mins ago, by Scott Selby
i have a jQuery function in master page that sets a label's text , then when the child page loads it changes the text right back to nothing
 
I guess the SO dev team has a good reason why they apparently don't use any of the ASP.net javascript but only self-written JS
 
12:18 AM
why is c room anti js?
 
well they're anti java - but if you ask javascript question they usually refer you to here
 
why there is a troll in the channel ?
 
oh i see.
where, where kill it with fire!
 
@ScottSelby , ho can you load master page, and then load child page , if child page inherits stuff from master
you are explaining something wrong
 
no,
 
12:20 AM
anyway , there are to possible reason for your issue :
 
If you load master page, then load child - the master will load again when you load child
 
- the act of loading child page overwrites that <label> tags , via innerHTML
 
exactly
 
- loading child page actually reloads whole site and the changes are reversed
 
but - see here:
$(document).ready(function () {
$("#btnChangeCity").hide();
$("#txtChangeCity").autocomplete({
source: "autocomplete.ashx",
select: function (event, ui) {
$("#txtChangeCity").val(ui.item.label);
$('#btnChangeCity').click();
$('[id$=lblCityName]').text(ui.item.label);
 
12:23 AM
MY FUCKING EYES !!
 
SO did that
I had it formatted ok
 
$(document).ready(function () {
    $("#btnChangeCity").hide();
    $("#txtChangeCity").autocomplete({
        source: "autocomplete.ashx",
        select: function (event, ui) {
            $("#txtChangeCity").val(ui.item.label);
            $('#btnChangeCity').click();
            $('[id$=lblCityName]').text(ui.item.label);
There we go.
(you forgot to click the "fixed font" button)
 
@ThiefMaster i was actually referring to code not the formating , now you made it so that it can easier penetrate blood-brain barrier and start rotting the brain
 
shrugs not the best code but I've seen far worse
 
12:25 AM
I write c# , I have been using jQuery / javascript for about 2 weeks
this is all new to me
 
12:56 AM
0
Q: Jquery datepicker inside jquery tabs

Giovanni Di ToroI have a malfunctioning set of jquery datepickers that are only not working since I put them inside a jquery tabs plugin. Here are the codes: the main page(index): <?php include 'all.php'; ?> <html> <head> <meta charset=iso-8859-1" /> <link type...

 
1:23 AM
@ThiefMaster You don't dislike jquery, do you ? removes 2nd choice vote :P
 
1:49 AM
@copy Yeah, I like it. Does that move me from 2nd to 1st now? :P
 
2:04 AM
I've seen some awesome code before let me tell ya!
 
2:20 AM
@ThiefMaster Naah, I don't like jquery :-/
I didn't remove your vote though, you're nice :-)
 
3:01 AM
anyone here?
 
3:20 AM
0
Q: Setting the form action to a jquery tab

Giovanni Di ToroI have installed a jquery UI tabs system on my web page , but the I have had a series of problems , one of them being: I can make a form request to my PhP at the same page and then process the result on it self. In other words: I want to set the action of the form in question to the the same ta...

 
 
2 hours later…
4:57 AM
@GiovanniDiToro You can use iframe inside the tab and set the form's action to the iframe's id. You need to create a page which will be displayed inside the iframe and will also handle your requests.
 
5:27 AM
0
A: Setting the form action to a jquery tab

ert3http://jsfiddle.net/mZLDk/ $(document).ready(function() { // Tab initialization // This is setup for two tab groups and is not needed $('#tabs, #fragment-1').tabs({ select: function(event, ui){ var tabNumber = ui.index; var tabName = $(ui.tab).text(); //Here I setup a...

or he can just do it in the tab interface
no iframe
 
5:46 AM
hi every body does anybody know about submitting the array of objects to server using jqyery
 
Read this http://stackoverflow.com/a/1186309/946170

and use jQuery's Ajax to send it
 
@Imdad is it required to stringify all array of objects in loop to send the data
could u pls give me the code to post the data to server
 
6:04 AM
@DyapaSrikanth You have to learn AJAX from api.jquery.com/jQuery.ajax Then use the serializing method and send the value in a single parameter say allValues. Then in php (or server side) use php.net/manual/en/function.json-decode.php to obtain the result object
 
6:25 AM
His design mistakes from 1996, 1999, 2002, 2003 and 2005 are still existent. That's a bit worrying
@W3Geek Look at the equality comparison algorithms: ==, ===
If Type(x) is Number, then
    If x is NaN, return false.
    If y is NaN, return false.
So if any operand is NaN, the result is false
 
hhh
7:08 AM
Could some JS guru look this q here, i am trying to get some simple CouchDB -demo working...
 
@Zirak did u got ur room de-freezed ?
 
@Abhishek nope, it still contains samples of a cave-man chasing a mammoth with a giant spear.
 
Lol
you are awesome bro :-)
 
Just my job, ma'am
 
I am right to answer this, right?
too late.
 
7:20 AM
ugh, that reminds me of this nice conversation: chat.stackoverflow.com/transcript/message/2364215#2364215
 
ROFL
Jan 14 at 1:34, by sebas
im just retarded, please dont discriminate me
 
hhh
Moved the CouchDB -q here.
 
7:38 AM
93 consecutive days on SO, fanatic badge coming soon
 
if ($_SERVER['REQUEST_METHOD'] === 'POST')
{
// this prevents resubmission of form only once
// if i do multiple refresh after form submission, its
//taking each refresh to resubmit the page
}
 
...and?
 
Person wants to know how to write chat servers in python
person doesnt knows what to put in the while loop thats gonna run forever to get posts from server
person has no idea about events
so i ask person to use pastebin and paste me the url
 
"hi, how make forum? kthxbai"
 
person sends me pastebin.com
and the person is All India 64 Rank :-/
and studying in a college which is known as the best college in India :-/ , person wil also get a damn good job :'-(
 
7:49 AM
All India 64 Rank?
Rank in what?
 
IIT JEE 2011
 
Wow
What the heck?
 
This is why I dislike education system :-/
 
Have you given the IIT entrance exams?
@Somebodyisintrouble Because it sucks.
 
7:50 AM
@Amaan yes Scored 240 , but failed to score 20 in Chemistry :-/
 
so didnt got selected :-\
 
@Abhishek How much is it out of?
 
@Abhishek why You dislike education system
 
486
 
7:51 AM
Numerical representation of knowledge/status is just incorrect (see: grade, IQ, reputation, ranks, medals, ..)
 
that was good enough to get Computer in IT BHU or IIT Rajasthan :-/ but darn chemistry :-/
 
They represent only what they choose to, and not what they're meant to
 
+1 zirak
 
@Abhishek Where'd you want to go?
Hyderabad?
 
I am done with entrance exams bro
 
7:52 AM
Where did you want to go? Earlier
 
IIST
the college of ISRO
 
Space, huh?
 
I wanted to be an astrophysicist
all my life dude
 
I have seen abhishek's repution wrt time and month ranks in SO , it all shows he is not good in programming.
 
hhh
@FlorianMargaine "couchjs is not used in the browser or something, it's used to define stuff inside couchdb"

<--- could elaborate on this? Where CouchJS is really used? For Futon? NOt for client-side programming? How is the client-side programming done in CouchJS?

You mean you need to do the traditional back-end configuration also with NonSQL -db such as "wait for POST -xzy, listen port xyz -- if X happens, do ZYX"
 
7:53 AM
@Somebodyisintrouble oh yes i am not :-)
 
So i think that nuerical representation is the outcome of all the things you specified
 
@Somebodyisintrouble MattMcDonald only has about 3k or 4k rep on this site. He wasn't in the rankings for some time, AFAICT. However, he has better knowledge of the DOM and of the black magic which is IE6- than any person I've ever seen.
Rep alone is not by any means a standard. At best, it is a crude method of knowing how many votes someone received.
 
see he gained 4k rep with only two subject so numerical representation is good
 
@Somebodyisintrouble would u call that persons code bad ?
 
When did I say he only answers DOM questions? And why do you think 4k rep over even a single subject is good? It could've been over 10 million questions.
 
7:58 AM
@Abhishek i can see from his profile views that he has not put enough effort in there
 
@Zirak no fun in the discussion ^_^
 
Or you can take me as an example. In school, I had substandard Math test scores, but I was great at algebra and calculus; I just sucked at geometry. So they didn't actually represent my "knowledge in Math", they represented a statistical quantity, which could somehow be contorted into a general thought of my knowledge in Math.
 
@Somebodyisintrouble my code is bad i know it :-) and i accept the fact i am just some1 who write async modules in C++ for nodejs on the top of v8 and writes some crazy CSS stuff :-) there is lot more to learn :-)
 
Numerical representation of data is statistics, and statistics is the lie of the modern world. Numbers impress people because they don't understand them.
 
@rlemon o/
 
8:02 AM
not really here
\o
4am, can't sleep
 
-1
A: Is it better to use jQuery fadeIn or CSS3 animations?

Somebody is in troubleYou can use anything, but jQuery fadeIn is supported in all browsers while the CSS3 code is not supported in all browsers and coding for fadeIn animation in jQuery would be short.

@Somebodyisintrouble do you even know Modernizr exists ?
and you can do that with CSS 3 as well as jQuery [if CSS 3 is absent ? ]
 
wow who cares if some fade effect is not working in ie
3
 
yea why do all browsers need fade in
 
that browser is likely to make the animation suck anyway
 
+1
 
8:04 AM
IMO IE users should not be able to see animations.
 
@Esailija but still LOL
 
they don't ever look good (in IE) even when shimmed.
 
Did you guys see the IE tax?
 
they look like a 60 year old lady trying to do perform hip ho dance
 
Animations are from the devil. If your content is doing something besides sitting there, I'll ignore it.
 
8:05 AM
old news
 
@Amaan yeap thats great :D :D :D
 
Wait @Abhishek what do you want to prove by posting my worst answer on SO here
 
LOL zirak i have a song to give u some laughs
 
my content turns tricks by night. My blog wasn't getting so many hits so I needed to spice things up. jQuery helped.
 
@Somebodyisintrouble nothing :3
i am just reading ur answers ;-D i wanna learn how to be a better programmer ;-D
 
8:06 AM
now you are irritating me
I just said nuerical representation are good
 
Why do blogs need animation? Aren't blogs about content? Why does content need animation?
 
because nobody can treat millions of people
 
How am i irritating you ? i am just learning ;-D
 
Somebody is in pink geometric pattern based on an email hash, your last sentence was invalid.
 
@rlemon where are you in september ?
 
8:08 AM
subtle color transitions and opacity transitions are a nice touch
 
hibernation
 
damn man i thought we could chill out !
 
see me in spring.
 
at some bar :D :D
 
bring nachos
 
8:09 AM
lol
I am probably going to have the 2nd coldest winter of my life
 
actually coming to canada?>
 
yes , LOL did you thought i was joking ?
 
we got good beer
 
Also rep has false positivevs
 
i know :D ;D
 
8:10 AM
look at Neal
Actually
 
wanting and doing are two different things.
 
look at most people that answer jQuery questions ¬_¬
 
nah, @ThiefMaster is ok
 
If you see a moustached individual with a yellow face, give him nachos as well.
 
We have a good example of such people in here ^_^ if you know who i am talking about ;D
 
8:11 AM
@Zirak there are, like, tons of mustached individual with a yellow face. Tons.
 
@Loktar But it's true ¬_¬
 
Not as awesome as this individual's. His face is awesome.
 
me in movember??
 
4
A: How can I break up a javascript string with a new line every five words?

Somebody is in troubleIdea first came to my mind var a = "This is a sentance that has many words. I would like to split this to a few lines"; a=a.split(" ");var str=''; for(var i=0;i<a.length;i++) { if((i+1)%5==0)str+='\n'; str+=" "+a[i];} alert(str);

Looping ?!?!?!?!?!?!?!?!??!?!?!?!??????????????????????????????????????
 
@Raynos look at anyone who has more jQuery votes than javascript votes =)
like... it's possible
 
8:12 AM
@Abhishek this solution is ok
the style is awful, but the code is ok
 
still looping ?
 
@Somebodyisintrouble Actually, fuck SO. Look at democracy. Numerical representation of support elected George Bush. Twice. How can that be a good system?
 
how else are you going to do it?
accepted answer does the same
 
lemme just do a jsperf for you :P
 
I wouldn't need to loop if I gave the regex some thought
 
8:14 AM
@Zirak that's politic, media management, fear and other stuff. Statistics is still safer
@Esailija you're still filtering
oh, get it
 
yes because the regexp ends up giving one empty string for some reason
 
There's a difference between a "good system" and "system which sucks the least, out of the systems we found so far".
 
but it is doable with just the regex
 
@FlorianMargaine And what do you think statistics works on?
 
8:15 AM
looping is not such a bad solution though
 
@Abhishek string was only of 5 words
@Abhishek Stop doing that non-sense because you have also downvoted answer
 
@FlorianMargaine a nation of media (and only media it seems) is easily blinded by the same forces that have brought them to where they are.
 
@Zirak numbers.
 
where am i doing nonsense i am just looking at your code
 
@rlemon yep, which is why I'm saying statistics are not related
 
8:15 AM
Ok look but don't post here
 
you are better then me i must learn
 
and btw, I conducted a survey finding out that 63% of surveys are false.
 
@FlorianMargaine lol
 
and 43% are made up
 
@FlorianMargaine Fear, media management, politics and stupidity affect numbers. People affect numbers. Statistics isn't even a good way to crunch data; an average bank salary of $1,000,000 does not mean the bank's office drone is rich.
 
8:16 AM
so is that survey false too? or is it made up?
 
anyways.. i'ma try for another hour of sleep or so
 
@Abhishek Ok learn and do whatever you can do
 
@Somebodyisintrouble then tell me some other place to post it
 
97% of all statistics are made up.
 
@Abhishek no no iam not stopping you,you can post it everywhere
post it in your head
your chest
 
8:18 AM
@Abhishek you're being unnecessarily an ass with @Somebodyisintrouble, and @Somebodyisintrouble you're being arrogant with nothing to back you up
2
so, it's better that you both stop talking to each other.
 
Go sit in the corner
No Funyuns for you
 
@FlorianMargain okay :-|
 
awh.. he got angry and left..
 
bad @Abhishek
 
8:19 AM
@ShyamK what i did ? he comes straight to a frustrated me
and goes like "You are not a good programmer"
 
@Abhishek Why you frustrated?
 
@Amaan i am trying to deal with a person who cant even make a pastebin
and trying to teach him write a chat-server
 
@Abhishek you naughty :)
 
Ah, right. The dumbass IIT JEE top 100 ranker
 
just because he is my long time friend :-|
lol
@FlorianMargaine :-)
 
8:21 AM
I added console.log to @Esailija's solution too, and his way is slower jsperf.com/for-vs-iterator-functions/2
when you benchmark, do it correctly :p
 
Hahahaha
 
oh (x i didnt saw it (x
btw @FlorianMargaine personal experience with v8
 
lol
 
iterator functions are much much much more convienient for v8 itself
 
iterator functions are much better, just for the sake of readability
 
8:22 AM
Actually, this is a good opportunity to test something. Who here can wholeheartedly say (no cheating!) he knows the difference between a Median and an Average? Or what a Median is?
 
I'm not arguing this, just saying that the other solution is ok too
 
yeah :-)
 
@Zirak I DO!
 
but i am just saying what i read inside :-| v8
 
@Zirak a few years ago, I knew :(
 
8:23 AM
Median is what's exactly in the middle
Average is, well, average.
 
please don't use the performance card with 56kopsvs70kops
especially when there is 5x less written code
 
Out of, say 100 people, the 50th person's score (or whatever) is the median
Average may be distorted because the top (or bottom) may have much much higher (or lower) scores
 
@Esailija I'm not, it's just that @Abhishek was being an ass for nothing, and even faked a benchmark to prove his point :p I would've resorted to the "still 70k ops/s" argument otherwise :x
 
However, it only works on ordered data. In unordered data, the 50th person can be the highest scorer
 
@FlorianMargaine o_O oi i didnt faked it (XD)
 
8:25 AM
Yeah, ordered, of course
 
he put a "alert()" in there so i just replaced it with "console.log"
 
 
:-o
 
And while it does give a nicer representation than the average, which is contorted (as you said), it works on the assumption of evenly-distributed data; that Left and Right grow/shrink at the same rate.
 
8:26 AM
I know, I'm kidding :)
@Zirak there is the bias to take into account too
but statistics take this into account
 
In other words, the Median is only a completely valid source of information in a Gaussian curve (the bell curve), where the Median = Average anyway.
Bias is also inaccurate at best. It's like integrating by rectangles; it works, but not quite.
 
@FlorianMargaine sorry bout being an ass x_x
 
Btw i better go back on readin v8 :-/
 
Usually bias is the standard-deviation, which is calculated in a remarkably similar way to the average.
 
8:30 AM
@Abhishek V8 is what?
 
And std-dev (at least from what I know) also uses the average
 
the javascript engine inside chrome , chromium and node.js
 
Why are you reading about that?
 
reading it for learning it , well writing native modules in node.js requires proper knowledge of v8
 
Okay. Best of luck?
Ah
 
8:31 AM
:-P
its nicely done though and very very strictly defined
 
8:42 AM
Has anyone ever used .hta files to make applications?
I only discovered they exist recently, and can't find many resources on the web
I am curious if there is a reason for the lack of resources - if there is a big problem with them I have not seen
 
@BillyMoon its like writing a web app for IE wanna try that ?
 
Mostly because it looks like glorified ASP.
 
@BillyMoon .hta existed long days back
 
And the fact Microsoft doesn't encourage it tells you something. Microsoft, the one who pushes Silverlight.
 
@Imdad and it still runs on windows 7, will it also run on windows 8?
 
@Zirak i beg to correct you good sir but microsoft promotes HTML5 and Silverlight now
 
o/
 
@Abhishek That is how I discovered it - I wanted to write a web-app, that can be delivered via the web, weigh less than a floppy disk, write to the filesystem, do cross domain ajax data posting and encrypt data
 
\o GNi33
@BillyMoon you know QT can do the same stuff ? , right people ?
 
@Abhishek , like desktop environments and hello world applications
 
8:50 AM
@Zirak I was actually looking into .hta as an alternative to silverlight, which is the natural choice to fit my needs, but silverlight is rubbish, not installed on any-ones computer,, and even silverlight's own mother is not proud of him
 
lol
@tereško so Q-T is a good replacement for .hta [okay not that small file size]
 
QT is a library for desktop application
@BillyMoon , where the hell you managed to get a floppy disk ?
 
@Imdad I like the first link
 
@Amaan lol
 
@tereško I was using it as a unit of measure, I don't intend to use a floppy disk, it is more about the download time on very slow, erratic internet connections in remote regions
 

« first day (611 days earlier)      last day (4335 days later) »