« first day (9 days earlier)      last day (4940 days later) » 

cbz
6:44 AM
Does anybody know how to add pagination/jump to a photo in colorbox?
 
6:58 AM
@rchern Hi...de
 
7:53 AM
Is it worth supporting XHR 2.0?
 
 
2 hours later…
9:30 AM
yo
anyone in here?
I'm having trouble deciphering when jQuery.ajax() success/failure callbacks are called
anyone got any exp. with that?
 
hi all
 
ummmm, too my knowledge, failure happens if it was unable to reach the address, success happens if it recieves data from the address
 
mornin
 
@bjornl simply said, success is called when the server responds 200 (or equivalent), failure is called on all other responses, when the server is unreachable, or when the request timeouts
 
yeah, exactly
 
9:34 AM
Morning @ all.
 
morning
 
morning
 
can anyone plz send me a link to a data sort js with highlighted column thing??
 
9:51 AM
for anyone interested he posted that success/failure question here it looks like:
3
Q: jQuery.ajax() success/failure callbacks called when?

bjornlI've been going through the source to find out the critiera for jQuery.ajax()'s success/failure methods being called. It is not based solely on the status code, it seems to also involve the data type. I always resort to writing custom error handlers using the 'complete'-callback. Exactly which ...

 
10:04 AM
Hey
suggestion for calendars in pure javascript? JQuery
sic, No jQuert
 
@PhE - is jQuery written in another language now? ;)
 
@Nick Craver LOL! Correct, But I'd like something dry, without the use of frameworks. Understand?
 
calendars as in google calendar or as in datepicker?
 
@Circadian datepicker
 
10:21 AM
first result in google for javascript datepicker nsftools.com/tips/DatePickerTest.htm
though i haven't tested it
though i would suggest jquery or some other framework
 
friend, I know I'll find on google several libraries, but some were wondering what you use, you know, your opinion.
 
Hi
 
may seem strange, but I think the jQuery weighs a lot and you just addicting. You start with her, and her and then goes 70Kb adding more things, more and more in the end you have almost only 500kb of javascript. This happened in my old project. While I use pure javascript, I can change more easily, and learn more. My opinion.
 
my answer came out a bit wrong. I meant I have used that one once but I prefer a jquery based one. it always depends on the requirements
@PhE this is a valid point. i take good care to load as much as I require for every project. but when you have something like a datepicker which is a complex (but comonly used script) I will try not to reinvent the wheel to save 10-50Kb. my opinion
 
@Circadian Yes, it's a difficult decision. For now, as this is a job for the university I will not use any third-party library, but eventually, I'll check the requirements and consider well.
 
10:38 AM
@PhE you are still using a javascript library :) if you find a better datepicker (or even if you implement one) feel free to share it with the rest
 
@Circadian But does not depend on a specific framework. Of course, I will leave the group abreast of my findings. Thanks
 
Hm... wow... nice discussion topic. Actually failing to find good grid component for my purposes I started to write my own. At some points it's better then jqGrid for example, lightier, but it fails at some others - extensibility for example. DatePicker in jQuery UI is pretty mature, why would you want to write your own? It's nice exercise, but on big part huge waste of time, if you already now what you should do to make it tick.
 
@jayarjo my point exactly but much better phrased! but his point of bloating everything up is also valid in some cases
 
Are there any benchmarks available on the overhead added by jQuery? would be interesting
 
Yes, I agree with you, everything depends on the time and the requirements you must meet. The problem is that most javascript libraries now depend on jQuery. Currently, only to use due to jQuery DataTables.
Interesting. some useful libraries. have fun
http://www.javascripttoolbox.com/
 
10:55 AM
Even this chat uses jQuery, so...
 
Standalone FTW ... =°
@PhE Ouch ! The jQuery Cheat Sheet there seems to be teaching so bad practices... javascripttoolbox.com/jquery/JQueryCheatSheet.xls
 
I think at one point in future, browsers will come with jQuery integrated in :D
 
"Events - return false from handlers to cancel default action" No !

http://fuelyourcoding.com/jquery-events-stop-misusing-return-false/
@jayarjo I hope they won't. =/
 
@jayarjo I hope the won't too.
The internet is full of such projects, how to know which is better, if both have advantages and differences. let programmers free, and do not benefit anyone ;D
 
+1 :)
How could I contact the author of javascripttoolbox.com ?
 
11:11 AM
@Golmote try this e-mail support@JavascriptToolbox.com.
 
@PhE Thanks :) I couldn't find it x_x
 
@Golmote author site mattkruse.com (not sure)
 
@PhE support e-mail will be find, as I want to make a suggestion :)
 
@Golmote great! good luck.
 
@Golmote I got suspicious the second I found out the cheat sheet is in Excel. That's the wrong format for the job, isn't it?
 
11:21 AM
Yes, I thought the same. In fact, it exists in 3 formats (Excel, PDF and PNG)
http://www.javascripttoolbox.com/jquery/cheatsheet/
But I still don't think a jQuery cheat sheet is useful... isn't there everything in the doc ?
 
@Golmote Yeah, api.jquery.com is one of the best documentation for a library I've seen
 
@Golmote - not everything, but everything that's safe to use, yes
 
One cheat sheet I do like is the Canvas one :)
http://www.nihilogic.dk/labs/canvas_sheet/HTML5_Canvas_Cheat_Sheet.png
 
Trying to get .jquery added to the API now :) bugs.jquery.com/ticket/7200
 
@NickCraver Eh... $.$?
 
11:26 AM
$.fn.jquery, it's on the prototype
e.t $().jquery = $.fn.jquery = version you're on
try $(document).jquery in this page for instance
 
> Milestone changed from 1.4.4 to 1.5
 
other ones probably won't be in the API since they're subject to change, $.cache, $.uuid, etc
 
@NickCraver Are those internal helper functions?
 
$.cache is where all data/events are stored, do a console.dir($.cache) here to get a feel
 
I console.dir()-ed a jQuery wrapper once. I remember now :)
 
11:28 AM
$.uuid was intentionally exposed in 1.4.3 for plugin developers, it's the current key in cache
e.g. add a handler or data to an element that doesn't have any, it gets the $.expando property added, with a key of the current $.uuid which gets incremented, next element gets 1 higher
when you look at a DOM browser and see all those jquery1234293487243="12345" properties...that's what that is, to prevent circular reference loops IE will never clean up
 
@NickCraver What do you think of Pekka's jsfiddle link proposal on MSO?
 
link me?
gotta run for a few back in a bit
 
6
Q: Make askers aware of JSFiddle

PekkaQuestions in the html, css, javascript and jquery tags tend to profit immensely from the asker providing a ready-made example on jsfiddle.net or a similar "live preview" service. The problem becomes instantly visible; the answerer can enter, test and share their modifications straight away; stu...

I actually took a look at the jsfiddle API, and was slightly disappointed at how limited it is right now
 
@YiJiang how limited ?
 
@Golmote Currently, most of the features are for users with accounts
 
11:37 AM
@YiJiang But it could be useful for most of the questions asked on SO no ?
 
There's GitHub integration, which is nice: doc.jsfiddle.net/use/github.html
 
@balpha: Seeing how you're in here so much, maybe you could swing it so that we can get oneboxing for jsFiddle? ;-)
 
@YiJiang Don't forget it's still in the alpha stage. I'm sure the API will fill up more in the near future.
 
yeah, the only method currently is returning the fiddles for a given user
 
11:39 AM
@AndyE I know, I said right now, but, still...
 
There's also /show/embed and /show/light. Er... make that /embedded and /show/light.
 
heh, i just told zalun of jsfiddle about this - he may pop in and see what can be done
 
They do have Wallpaper to share with us though :P doc.jsfiddle.net/media/index.html#wallpaper
 
11:42 AM
here he is
 
Speak of the devil and he shall appear
 
Boom
 
Yi Jiang - thanks for the wallpaper - I made jsfiddle
 
@YiJiang: what exactly would you like to see from the API?
 
tha API will be properly done in Beta - what would you like to see in it?
 
11:45 AM
It would be nice to be able to get the same information available from the API for users with accounts right now for unnamed anonymous fiddles
 
nice, right from master-chat.js
var f=["The <center> cannot hold it is too late."
 
in example?
list anonymous fiddles?
 
@zalun Well, right now fiddles are identified by a hash appended to the jsfiddle.com URL
 
(.net) yes
 
The embedded option is quite nice
 
11:47 AM
It would be nice if we could take that hash and obtain the code used for that fiddle based on that
 
@Golmote Yes, embedded improved a lot in the last few weeks.
I've started using embedded fiddles on my blog now
 
it is there althouggh not documented as I'm not sure it will hold in the way it is now
add /show_html/ /show_js/ or /show_css/ to the fiddle's url
 
I mean I can see @Pekka's point, but at the same time I don't agree with the proposal
JavaScript is 1/1000 languages on SO, what about those?
 
@NickCraver There's also code playgrounds for other languages I think
 
I got to go to eat, see you later maybe, guys :)
 
11:50 AM
for some of them yes, but it would just clutter SO IMO, not sure how you'd integrate it across the board
0
Q: Light box jquery

vishnubhatlaHi, I want to make a light box using jquey, any body can give me tutorial?

I hate people posting mock questions, with 1 rep no less to promote their own blog/site
be sure to flag the answer as spam if you have the rep to
 
@NickCraver webdeginer :P
 
which answer
 
the OPs, it's a link to his own blog and frankly a crappy "tutorial"
 
aahhh
 
i thought links were nofollow anyway
 
11:53 AM
I really wonder what's going on in the head of some folks.
@DimitarChristoff But StackOverflow's prominence in Google will still ensure some traffic.
 
@DimitarChristoff - they are, so the impact's less but it's still spam/clutter...I mean if nothing else that's a really bad tutorial, I'd downvote just for that
 
you can't have that many jquery users w/o attracting some clueless wannabes.
 
@AndyE replace /show/light/ with /show/ - light is just a theme (default) and tbh the only one
 
particularly as it has lowered the bar so much in opening up app effects
etc
 
absolutely agree, and I think the community goes a pretty decent job of cleaning it up
 
11:55 AM
all the designers
 
@zalun cool, thanks
@zalun: how about letting us account holders set some defaults for our fiddles? or perhaps templates? :-)
 
@nickcraver can't you just remove his post
 
@DimitarChristoff :)
 
you must have edit rights for #jquery
:)
 
@AndyE All per user configs (profile settings) are going to happen soon
 
11:57 AM
I like the chat to backbite about posts :p
 
nah I'm a regular, same as everyone else :)
 
@DimitarChristoff: Only a mod can remove it, we could edit it but it's better to let the spam flags take care of it.
@zalun Good to know, I can't wait :)
 
spam = rep penalty (though not for a 1 user) and brings moderator attention
 
heh dunno. i seem to have recieved pseudo mod rights for #mootools
 
11:58 AM
be patient - to change this project from alpha to beta will be a lot of work - I'm mostly rewriting everything
 
When you reach 10k rep all those deleted posts will be visible to you :)
 
@NickCraver is that a good, or a bad thing? :P
 
@NickCraver How much?
 
@zalun: well, you're doing a great job so far. jsFiddle has been very usable for a long time, despite being alpha.
 
good, most times
 
11:59 AM
yay - I was shocked when I realized that - all the nonsense I deleted was visible all the time !!!!
 
@Tomalak - 100 iirc
 
@NickCraver lasting or temporary?
 
it's a -100 rep on your record, stays there
 
It funny - I'm adding pseudo onebox support for the chat modification userscript
 
no danger in me hitting 10k any time soon with the small volume of mootools questions being posted so i am not likely to see deleted posts
 
12:00 PM
same happened to a flagged post here if it gets enough flags I think
@DimitarChristoff: stackoverflow.com/privileges
 
2 messages moved to Sandbox
@YiJiang: :-P
 
@AndyE I wonder what other sites I can add. Suggestions?
 
@AndyE too late, flash killed my pc again...
 
@NickCraver cool i am 92% towards open and close
got the rest heh
 
so, anyone know why jsfiddle.net/rfBJ4 causes chrome's debugger to stop working (keeps giving TypeError: Cannot read property 'console' of undefined)
 
12:03 PM
@YiJiang hmm... I'll certainly have a think about it.
 
sorry if im interrupting
 
@ the high-rep users here: Does anybody make regular use of the moderator tools?
 
I like the 'highest voted questions' overview there
 
@KeeperOfTheSoul Which version of Chrome is it? Works fine for me but I can't tell you my version because the "About" menu option has been replaced with "Update"
 
@KeeperOfTheSoul Works for me (8.0.552.5)
 
12:06 PM
@RafaelBelliard this is a public chat room, no need to worry about interrupting unless you're taking the conversation waaaay off topic :-)
 
@KeeperOfTheSoul happens if code is run before console is initiated to thw window
 
@zalun oh? but that should be running during during document ready?
 
@Tomalak - I use the moderator tools... but not likely in the way one might expect ;-) It provides a nice filtered view of questions that might be spam to down-vote/flag, as well as interesting questions to check out
 
@KeeperOfTheSoul yes, but it happens sometimes - in FF4 I most of the time use the Console itself
 
@Tomalak is that a dev build or something as my chrome says it is up to date with 7.0.517.41
 
12:08 PM
@Tomalak - not every day...more of when I look at the header for too long and go "oh hey, moderator tools"
 
@KeeperOfTheSoul yes that's the latest unstable dev build the(8.0.552.5)
 
@scunliffe I do not feel much inclined to flag questions I'm not falling over myself, so... hm.
@NickCraver Hm maybe the mod tools interface sucks. I find them confusing and somewhat pointless. :-\
 
@NickCraver alas, you may be disappointed to know nothing much changes as 100k; 200k is better though - you get a unicorn in the post
 
ah, apparently its because it is in a function, that is in a closure where window has been overrode
 
@MarcGravell - seriously?? now I have a goal in life!
 
12:10 PM
just updated the mootools tag info wiki
 
hahaha
 
Jon Skeet looks like my uncle
 
@MarcGravell I like the Jeans. Yay for workplaces where you can wear what you want.
 
@AndyE That sounds... disturbing
 
12:12 PM
gist.github.com/644843 Anyone knows a better way of speeding up Math.round(and yes I know that this only works with 32bit ints)
 
I want to see where his wife let him hang that :)
@AndyE - he travels a lot, where was your mother 9 months before you were born? :)
 
oh, she's a good sport... besides, she writes kids books, so unicorns are nothing
 
@DimitarChristoff what's changed?
 
erm just stuff about what the current version is and links to old 1.2.5 docs
 
@MarcGravell - ah cool, we never hear of the bater halves that don't maim us for the amount of time spent on SO
 
12:14 PM
regretfully i think only i have edit powers there or something
 
@NickCraver Lol now I've got a famous star wars scene in my head with Jon Skeet dressed as Darth Vader
 
BTW one thing - someone was telling about the anonymous fiddles - these will be limited time only.
 
@Marc - got an interesting Linq2SQL question I'm putting together, you may know off the top of your head
 
er. what, all old anon fiddles are gonna be dropped?
 
very weird expression tree behavior, seemingly violating some rules with interfaces
 
12:15 PM
not immediately, but there is such an idea
 
@AndyE - haha
 
there is also strong force in my soul to not change anything which is already there
 
you better not, i know where you live! :)
 
does this auto refresh?
 
Nooooooo.... somebody upvoted me from my beautiful 1234 rep on MSO :(
 
12:17 PM
I was also thinking that at some point I will simply check if a fiddle was displayed and if anonymous fiddle was not displayed for 3 months it will be deleted :)
 
@YiJiang - downvote time!
 
@DimitarChristoff I think that's fair
 
no. i have a bookmarks folder 'js snippets' - nearly half of them are old jsfiddles that are anon
 
@zalun That would be pretty bad for people who uses these as code stores
 
i can fork them and save off as my own
 
12:18 PM
There's a lot of SO answers right now that are essentially a jsfiddle link
 
but i will have a massive sense of humour failure and won't be buying you beers at london ajax anymore :)
 
Uh... did I miss something? JSON parse in Node is twice as slow as before Oo
 
@YiJiang i always copy the contents of the filddle into the answer and try to make sure SO has all the data on its own accord, should the external sites fail
not to mention the search func cant access data off-site
 
hmmm
 
hmm, SO could really do with an attach feature
 
12:21 PM
@IvoWetzel only trouble is, javascript only uses floating point numbers anyway, so even when doing that you're working with floating point
 
maybe some kind of sandbox site that could load pages directly because I don't want to be downloading files
 
it could be done then in the way that the fiddles created in alpha would remain infinite live
 
@NicoBurns Just get a Dropbox :P (goes off to look for his referral link)
 
@KeeperOfTheSoul I know, but I need the round for some special binary encoding stuff(which truncates after the 2nd decimal place, since I don't need more precision) everything else is blazing fast only floats are slow
 
would be cool if you could embed the jsfiddle results pane into SO
 
12:22 PM
@YiJiang I have dropbox :) but I don't keep stuff in there forever
 
@DimitarChristoff or simply the embedded version
 
@DimitarChristoff Could be potentially dangerous (accidentally drop a infinite loop in there and boom)
 
@IvoWetzel but my point is, technically you can't do integer arithmetic in javascript since it only has floats
 
with a [run] button
 
0
Q: Passing calling HTML to another HTML file via javascript.

Sergio TapiaHi guys, I'm trying to build a simple extension for Opera 11 and I've hit a massive snag I'm sure most developers meet. In case you don't know, an extension in Opera is just another .html file, with some Javascript if you choose. What I'm having trouble with is getting the HTML source from the ...

Hey guys
 
12:24 PM
@NickCraver point me at it ;p
 
Maybe you can help me out with this question that grinded my productivity to a halt! :D
 
@YiJiang by default to see a result in embedded version one has to switch to the Result tab
 
@KeeperOfTheSoul I know that, my point is how to round a number faster
 
there is also an idea to make the fiddle to be loaded on click
it will(?) work like that on Mootools docs
 
12:26 PM
actually not - it was planned, but the git will be used for that
but yes - the only problem is it needs to be written in Vapor JS
as it's the only compatible framework
:D
 
it's still helpful to bloggers imo. not keen on overloading my home page with iframes
 
indeed
that's my point
I'd really like to implement it
browser compatibility frightens me a little
 
greetings. does anyone know of any treeview control with columns?
 
to create element iframe it's not rocket science
 
12:29 PM
I guess so
 
plus one can easily do framework specific micro format / html5 set that can attach events and do this
already
 
?
 
<a class="fiddle" href="http://jsfiddle.net/H4snF/1/" rel="nofollow" data-params="embed:result,js,html">Run code</a>
then attach a click handler for the class or delegate it
that replaces it with the iframe
 
never seen it
 
can this be done ??
I need to write values inside and anchor tag as well as href
i.e <a href=""></a>
need to insert values inside href="" and <a></a>
 
12:35 PM
<a href="link"> name </a> that's valid.
 
yes it can be done
 
Out of curiosity would sending a large table (400 rows) over JSON be considered bad?
Well over ajax even.
 
@DimitarChristoff how ? could you plz provide some tips ?
 
@Raynos depends on the content of each row
 
raynos: there is bsonspec.org
 
12:36 PM
@Ivo
 
Hello everyone
 
@IvoWetzel only 8 or so columns
 
@kantu do you use a framework or vanilla js?
 
vanilla
 
1 sec on phone
 
12:38 PM
@DimitarChristoff I was thinking it could be handled on the target :P Writing a javascript which would parse it is certainly possible and it would fallback to a link which is a great idea
 
@Raynos Hm that would grow in size rather quickly, what about paging the data?
 
@IvoWetzel as in a paged table? Where page change causes a new ajax query?
 
@Raynos Exactly, that should be faster overall
 
@IvoWetzel I think changing user interface from a large scrollable table to a pageable table will leave complaints. I dont know whether its considered bad practice to use ajax to query large-ish tables
 
12:41 PM
@DimitarChristoff BSON uh, and they don't have a JS implementation? :P
@Raynos Can you make use of continuous loading?
 
BSON seems like overkill for non-binary data.
@IvoWetzel I could do. But not sure how "smooth" it will be. I have to see how slow the loading of the table over ajax actaully is to see whether its needed.
 
@Raynos Did I overkill too then? github.com/BonsaiDen/BiSON.js (used for a Node.js game running off my local computer, don't have any hosting, so I really needed to squish out every byte possible)
 
@IvoWetzel It's merely a matter of how much data. and how much overhead encoding/decoding causes
 
chat.stackoverflow.com? AWESOME!
 
No not awesome.
Productivity killer at work
 
12:47 PM
@EnricoCarlesso I know, right? :P
 
@Raynos +100
 
@Raynos You see here: a cursed -2 productivity Chatroom
 
I guess :)
 
@Raynos Quite some data actually with the game, and I only got 120kb/s upload :/ Overhead on V8, none. it's twice as fast, so that's good for the server. V8's JSON is slooooow :/
 
@Yi
@YiJiang Know how?
 
12:54 PM
@kantu basically object.setAttribute("href", url); object.innerHTML = 'link text'; where object = pointer to the anchor
gtg do some work
 
@IvoWetzel Is it possible to write games with js front & backend. Without hitting performance or security issues? I think its a nightmare to control an open source front end.
 
@Raynos It's always a nightmare if you put game logic in the clients, that's why blizzard has warden. In otherwords, put all your logic on the server side and it works fine
Or in even simpler worst: Don't trust the client
 
hi, i have a question: can i get the url from history.go(-2)?
 
@IvoWetzel I understand that logic needs to be on the server. Faking clientside events or just generally messing around client side.
 

« first day (9 days earlier)      last day (4940 days later) »