« first day (271 days earlier)      last day (4678 days later) » 
00:00 - 21:0021:00 - 00:00

12:17 AM
hi all
 
1:11 AM
is there a way to, in javascript, to uniquely identify a tab across refreshes, even cross domain clicks?
im working on a chrome extension
(basically, if there are multiple tabs open. I want my script to be able to uniquely identify each tab. So it can know which one it is, even if the user goes to a different domain. for instance, It would be nice to give a tab a name say tab A. Then wherever the user goes, the script knows its in tab A)
 
2:04 AM
RT @mesh: The All-In-One Entirely-Not-Alphabetical No-Bullshit Guide to HTML5 Fallbacks : http://t.co/Btak39n
RT @tabatkins: I converted an interactive chart using Canvas to SVG: http://t.co/2IiIOb9 I'll write about the good/bad parts of the expe ...
RT @ebidel: New slides posted. "The Latest in HTML5" http://goo.gl/uJjTA - registerProtocolHandler, PageVisibility API, Web Audio API, o ...
 
2:18 AM
Looking for a JS library? Check out this wiki - tons of links to graphics, media, and utility libraries: http://t.co/R8rbI1i #wdcnz
 
@MattMcDonald nice to see you cleaning JS up :)
 
RT @HTML5Grind: WebGL for the lazy / GLGE is a javascript library intended to ease the use of WebGL http://www.glge.org/ @triptych #gamedev
 
 
1 hour later…
3:30 AM
Is there any jquery plugin that works like combined gallerific and lightbox?
 
;_;
"Oh, a message, let's see if theres something interesting to talk about"
No offence, I dont know. I dont use jQuery plugins
I hand craft solutions to problems
 
 
2 hours later…
5:56 AM
@Stupefy101 , write your own
 
6:15 AM
I have found galleriffic plus.
 
Can anybody help in jquery dialog box?
 
6:34 AM
Not really.
I cant help in jquery dialog box
because the damn sentence doesnt make gramattic sense
 
 
2 hours later…
8:05 AM
0
Q: reduce no. of lines

Rahul MehtaI have the following type of many functions so many if condtions are there is there is any way to reduce no. of lines. enter: function(request, callback, callback1){ request.on={}; if(callback==undefined && NodeClientUI.initdata.join!=undefined){ callback=NodeClientUI.initd...

 
Hey guys, just wondering if some of you ever dealt with synchronization of server and localtime which has to be shown on a webpage?
 
8:28 AM
@Nikola Yes?
Question; do you know of a way to capture user's acceptance of download dialog?
Basically, I have a dialog saying "Printing...". Then a native browser download dialog pops up and the other dialog should close.
 
0
Q: lightweight javascript editor for textarea

xyiousI'm looking for a simple javascript editor, much like the one i'm using to type this message. i've tried searching (and i wondered why starting to ask a question shows much better search results than just searching) and have come up with a few results, none of them relevant. I just need a very s...

 
8:54 AM
@ChristianSciberras did you maybe use keith wood plugin? Could you please take a look at these two questions: stackoverflow.com/questions/6663443/… and stackoverflow.com/questions/6670888/…
 
9:50 AM
hey guys
a wysiwtf editor should expand with the content , right ?
instead of showing a scrollbar
 
10:13 AM
@teresko What you see is what you f!@# ?
 
10:29 AM
frens.. how to find the client ip address in my web application?
 
11:01 AM
@Shankar make a php script and load it with the help of ajax simple :)
 
 
2 hours later…
AMH
12:31 PM
hi all
@teresko u r here
 
@AMH Hello
 
AMH
@RyanKinal hi , may I ask a question
I need help
 
@AMH I suppose
 
AMH
I need to get software version in client
 
@AMH So... browser version?
 
AMH
12:34 PM
what's browser version
I mean I want to check if certain application be instaled in client , and if yes , get that version
 
Oh, I see
 
AMH
am sorry I am new to javascript
 
Which application?
 
AMH
for example application with name test.exe
 
I don't believe that's possible.
Unless it's a browser plugin, then it might be possible
 
AMH
12:36 PM
hmm
any other solution
 
Not that I know of.
 
AMH
Ok thanks a lot , may I need to publish it in stackoverflow
 
That's what it's there for
 
AMH
Ok thanks a lot
@chetan any suggestion
@oraclecertifiedprofessional any suggestion
 
user69820
12:52 PM
i have been summoned
 
AMH
sorry
-1
Q: detect client side software version

AMHI have web application , through it I need to get application version in client side is it applicable ,or can I do that by javascript , or asp.net I mean , I want to determine the version of software installed in client side for example the version of software be installed ,for example if u...

 
user69820
is it part of an intranet or is it a publicly visible web site? are you targeting IE only? does the application you need to get the version number of have an activeX api?
 
AMH
publicly visible web site
it doesn't have activx and yes for ie
 
user69820
if you don't have an api to it, you might be able to get the version number from the registry. do you know how to get the version number of the application in any way other than javascript?
 
AMH
using asp.net will be hard
becasue it's server side
@Incognito any suggestion
 
user69820
1:06 PM
you can get a file version using a simple Scripting.FileSystemObject
 
user69820
eg
 
AMH
code u give me sample code
 
user69820
var fso = new ActiveXObject("Scripting.FileSystemObject");
var version = fso.GetFileVersion("C:\e-tabs\bin\reader.exe");
alert(version);
 
AMH
wow , I will try it and tell u
 
user69820
but this may depend on if the author of the application compiled it with the accurate version number in the properties
 
AMH
1:09 PM
I got it ,
may I ask another question
 
user69820
s'pose
 
AMH
how to get programfile folder automatically
 
user69820
you mean the shared Program Files folder or the specific installation folder for the application you're talking about?
 
AMH
I mean c:\programfiles , this may be in d or f drive
also teh code u give to me raise error Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)
Timestamp: Thu, 14 Jul 2011 13:14:55 UTC


Message: Automation server can't create object
Line: 10
Char: 9
Code: 0
URI: http://localhost:1721/Default.aspx
I used
<script type="text/javascript">
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var version = fso.GetFileVersion("C:\Program Files\PXviewer\PxViewer.exe");
    alert(version);
</script>
any suggestion
 
user69820
that's probably a security issue. usually you get a message that says "this page wants to run an activex control" and asks for permissions. which is line 10?
 
user69820
1:19 PM
you can get program files path by parsing the environment variables, which you can get with WScript.Shell
 
user69820
hang on a minute: is this server or client side?
 
user69820
the code I gave you would need to run client side
 
AMH
yes I test on my machine and will publish it
I use asp.net page that carry the javascript
 
user69820
you might have to look at your security settings to enable activex controls
 
AMH
Ok ,
 
user69820
1:28 PM
0
Q: How to get program files environment setting from VBScript

JeremyIn a batch file you can use %PROGRAMFILES% to get the location of the program files directory, how do you do it in a VBScript?

 
AMH
what about get program file directory
 
user69820
in javascript this would be
var wsh = new ActiveXObject("WScript.Shell");
var path = wsh.ExpandEnvironmentStrings("%PROGRAMFILES%");
alert(path);
i think
 
Mac
Hey, I'm convinced this is a simple thing to work out if you know your way around jQuery/Javascript, obviously I don't as I can't figure out how to do this. I have some code that used the 'this' sector to get the current thing being dragged 'div.block' (jsfiddle.net/tktGA/4), however I now need to change the implementation over to a jQuery UI sortable, instead of draggable, and now 'this' targets the wrong thing, anyone any ideas on how I can target the item being dragged again ?
The new sortables converted code (so far) is here > jsfiddle.net/WqZ9m/11
 
@Mac Did you do anything that would cause this to target something else, or did it just start doing that?
 
Mac
@fireshadow52 It targets something else because with sortables I have to target the container's (#areaOne, #areaTwo) instead of what it used to target (.block) the block's themselves
 
1:38 PM
@Mac OK I see what you're saying.
 
Mac
What should happen in the new sortables version is that when you drag a block over to the edge (the right), it scroll's to the next area, like it currently does on the draggable code, but because it's not targeting the .block, it does not scroll over :/
 
Mac
1:53 PM
I tried adding ui.item which should be the current dragged element according to jQuery UI's site, but then the var next = $(this).parent().next(); did not work therefore teh block was not connected to the second sortable area, #areaTwo
 
AMH
@oraclecertifiedprofessional u r here
 
user69820
i r here
 
AMH
u mena I say %PROGRAMFILES%" + "myapplicationfolder+ myapplication.exe"
 
user69820
so it would be
 
AMH
the whole code will be
right
    var wsh = new ActiveXObject("WScript.Shell");
    var path = wsh.ExpandEnvironmentStrings("%PROGRAMFILES%" + "myapplicationfolder+ myapplication.exe");
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var version = fso.GetFileVersion(path);

    alert(version);
 
Mac
2:01 PM
wow Firefox just randomly crashed, was not even doing anything on it :O
 
AMH
var wsh = new ActiveXObject("WScript.Shell");
var path = wsh.ExpandEnvironmentStrings("%PROGRAMFILES%" + "myapplicationfolder+ myapplication.exe");
var fso = new ActiveXObject("Scripting.FileSystemObject");
var version = fso.GetFileVersion(path);

alert(version);

right
 
user69820
var wsh = new ActiveXObject("WScript.Shell");
var path = wsh.ExpandEnvironmentStrings("%PROGRAMFILES%");
path += '\myapplicationfolder\myapplication.exe';
 
user69820
then
 
user69820
var fso = new ActiveXObject("Scripting.FileSystemObject");
var version = fso.GetFileVersion(path);
 
AMH
did u tried it
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.1; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)
Timestamp: Thu, 14 Jul 2011 14:03:29 UTC


Message: Automation server can't create object
Line: 10
Char: 9
Code: 0
URI: http://localhost:1721/Default.aspx
 
user69820
2:03 PM
you can't pass \myapplicationfolder\myapplication.exe to the ExpandEnvironmentStrings() method, just an environment variable macro
 
AMH
ah I got it , did u tried this code
did u try
 
user69820
no, i can do though
 
AMH
please try it because it give me error
 
Boas
ninguém?
 
@oraclecertifiedprofessional Scripting.FileSystemObject can't instantiate on newer IE unless you have "Initialize and script ActiveX objects not marked safe for scripting" enabled in your security settings.
 
AMH
2:10 PM
@oraclecertifiedprofessional
 
I should say newer OS. Microsoft put the kill bit on it quite a while ago.
 
user69820
yes i already said the error was a security setting
 
AMH
does it work with u
 
user69820
<html>
<head></head>
<body>
<div id="path"></div>
<div id="version"></div>
<script type="text/javascript">
var wsh = new ActiveXObject("WScript.Shell");
var path = wsh.ExpandEnvironmentStrings("%PROGRAMFILES%");
path += '\\Adobe\\Reader 9.0\\Reader\\AcroRd32.exe';
document.getElementById('path').innerText = path;

var fso = new ActiveXObject("Scripting.FileSystemObject");
var version = fso.GetFileVersion(path);
document.getElementById('version').innerText = version;
</script>
</body>
</html>
 
user69820
 
user69820
2:15 PM
so... yes it works
 
AMH
Ok how to solve this security issue , I mean I don't know about clients
 
@AMH: Enable the setting I posted, and it should work for you. Getting that setting enabled on client machines can be tough if you don't own them.
 
user69820
you would have to put on your web site a message asking users to enable it.
 
short of an intranet site I wouldnt :?
 
AMH
@codelahoma could u give me more details
 
2:18 PM
Might as well just add them to a botnet directly if they ever browser the public internet.
 
AMH
@codelahoma what botnet directory mean
 
user69820
you'd be better off just asking the user to tell you whether they have the appropriate version installed
 
@AMH Tools->Options->Security->Custom Level, then scroll down to the setting I listed and enable it.
 
AMH
@codelahoma do u mean I ask the users to do that
 
@AMH I mean, if the users ever use their browsers on the public internet, they'd be crazy to enable that setting and you'd be negligent to ask them to.
 
AMH
2:21 PM
@codelahoma so what's the solution
 
user69820
one alternative is to write a plugin
 
Why do you need to know the version?
 
AMH
to update the software if needed
@codelahoma
@oraclecertifiedprofessional how to write plugin
 
Post a notice that the software needs to be at that certain level, along with a link to the download page.
 
AMH
@codelahoma the requirement is like what I say to u
any suggestion
 
2:26 PM
Sometimes you just have to tell the customer/business that a requirement is not feasible.
 
AMH
how to write plugin
 
That's not a JavaScript question. :-)
 
AMH
really
am sorry
 
0
Q: How to enqueue scripts on custom post add/edit pages?

javiervdI'm trying to enqueue a JS script only when someone is adding or editing a custom post type I created called "recipes". Currently the script works ok when I do this: if (is_admin()){ wp_enqueue_script( 'my-script' ); } But this loads it in every admin page, I'm assuming I need to hook it t...

 
AMH
@ll any suggestion
 
Mac
2:46 PM
0
Q: Targeting a sortable thats being dragged

MacSo I'm convinced this is a simple thing to work out if you know your way around jQuery/Javascript, obviously I don't as I can't figure out how to do it! I have some code that used the 'this' selector to get the current thing being dragged 'div.block' which can be found here: http://jsfiddle.net...

Anyideas?
 
user69820
@AMH Search and ye shall find
 
user69820
9
Q: How To Write a Plug-In for IE

AndrewDotHayThe IE Developer Toolbar is a plugin that can dock or separate from the browser. I understand its much more difficult to do this in IE than in Firefox. How does one create an IE plugin? What languages are available for this task? How can I make a Hello World plugin?

 
AMH
@oraclecertifiedprofessional I search from 3 hours ago
:(
I need away without using activx
@oraclecertifiedprofessional is there a tutorial to write ie plugin
 
user69820
3:03 PM
?
 
user69820
13 mins ago, by oracle certified professional
9
Q: How To Write a Plug-In for IE

AndrewDotHayThe IE Developer Toolbar is a plugin that can dock or separate from the browser. I understand its much more difficult to do this in IE than in Firefox. How does one create an IE plugin? What languages are available for this task? How can I make a Hello World plugin?

 
user69820
have you looked at the answers to this question?
 
AMH
I will check it thanks a lot
 
3:56 PM
I'm wondering if there's a better way to write something like this:
    var o = {
        "element" : $(this),
        "tabs"    : {
            "view" : {
                "html"   : "Not defined",
                "events" : function(){}
            }
        },
        data : {}
    };
    o.element = element || o.element;
    o.tabs    = tabs    || o.tabs;
    i.data    = data    || o.data;
I'm not super concerned over the issues with || assignment return false on empty strings, etc, but it seems a bit superfluous.
The vars for elemet, tabs and data come from
`function(element, tabs, data) { ...` ... the thing wouldn't let me edit that in there.
 
4:31 PM
anyone here
 
user1385191
go ahead and ask your question
 
how to use multiple values in document.getelementbyid
document.getelementbyid('1','2')
i can't do it in thIS WAY:-document.getelementbyid('1','2')
then how?
 
user1385191
you don't
 
document.getelementbyid returns one element
 
user1385191
you make two separate calls
 
4:36 PM
so using multiple values doesn't make sense
call the function multiple times (once for each value)
 
onmousedown="if(document.getElementById('ship').checked){ document.getElementById('shipping').style.display='table'} else{ document.getElementById('shipping').style.display='none'};"
 
you're missing two semicolons in that code
 
user1385191
nope
 
user1385191
it's an inline event handler
 
don't you still need semicolons?
 
4:39 PM
how to call it multiple times in here
 
user1385191
only the one is needed
 
semicolans ? where?
 
with a semicolon after after each statement to call multiple times, right?
or create a function and call that in your onmousedown handler
 
like this?
onmousedown="if(document.getElementById('ship').checked){ document.getElementById('shipping').style.display='table'} else{ document.getElementById('shipping').style.display='none'; document.getElementById('shipping2').style.display='none'};"
onmousedown="if(document.getElementById('ship').checked){ document.getElementById('shipping').style.display='table'} else{ document.getElementById('shipping').style.display='none'; document.getElementById('shipping2').style.display='none'};"
 
thats what I was thinking, but as Matt pointed out, I might be wrong.
I think you'd be better off createing a function
and calling that in your handler
 
user1385191
4:41 PM
bingo
 
ok how can i do that in a function?
with a semicolan?
 
function myFunction() { //code here }
onmousedown="myFunction();"
 
user1385191
^^^
 
and put a semicolon after each display='whatever' in your code
 
else{ document.getElementById('shipping').style.display='none'; document.getElementById('shipping2').style.display='none'};
 
4:46 PM
oh, and remove that last semicolon after the }
 
like this?
 
rather, move it inside the }
the last part should be:
document.getElementById('shipping2').style.display='none';}
 
user1385191
it should actually be code where you switch the class of the element to an abstract, "hidden" CSS class ;)
 
user1385191
.hidden{ display: none };
 
thanks kyle and matt
it works now
 
4:49 PM
np. I learned something too
 
/0\
like what?
 
semicolons in js are confusing.
especially in inline handlers like that
(that's why I love jQuery)
 
i hope to learn it in future
 
Any reason you're using onmousedown= rather than putting it inside script tags?
 
user1385191
it's usually poor HTML or convenience
 
4:53 PM
i'm using onmousedown bcoz, code should be executed when user clicked on a checkbox
 
user1385191
I've used it in software where the HTML is terrible
 
@ChamaraDenipitiya Right, but you can do that inside a script tag, not the html element.
 
both are same
 
user1385191
not really
 
what's the advantage?
 
4:57 PM
Would you publish a newspaper article where the author writes "bcoz" rather than "because" ?
No, because it's sloppy and deeply aggravating.
 
user1385191
there's no event object when calling inline
 
bcoz we can reduce typing time
 
user1385191
click once, then click again
 
user1385191
note the difference
 
5:01 PM
@ChamaraDenipitiya You make your code harder to work with.
Significantly.
 
@ matt still can't get it
 
user1385191
the event object is huge
 
user1385191
for MouseEvents, you get a ton of metadata
 
@ i have another question, how to call a value of a select menu
if value is 'w' then do this, if value is 'e' then do this,
likewise
 
5:05 PM
@ChamaraDenipitiya u jst cl;k in da skrip tag brah.
 
@inc what?
 
@ChamaraDenipitiya o lik iz ezr 2 typ lik diz. problem?
Oh, I guess that was hard to understand. I guess what I was trying to say is when you take the damn time to properly do something you make everyone's life easier, including your own.
This is why we put things in the script tags unless we really absolutely can't.
This is why we say because instead of bcoz.
Or I can go back to trolling you and talking like an idiot.
 
user1385191
var foo = document.getElementById("__ID__OF__SELECT__");
switch(foo.value)
{
	case "bar":
	break;
	case "baz":
	break;
}
 
@Neal Any fun topics happen lately?
 
5:16 PM
@Incognito lol idk
i wanna make a stack hangout.
should i?
 
G+ is interesting, I've had random people start following me for some rant about lame captchas.
Yeah sure, I'll join in.
 
Ahh, it won't work behind my work firewall.
 
hmmm odd
 
Sorry. Neal.
 
5:21 PM
i want to make a better version of that gp site
 
It blocks streams etc.
In what ways?
 
make it so u can delete chats (on gphangouts.com)
 
hi all, I know this is a newb question but I've never tried something like this before...
I know in PHP I can assign a variable to a function call like so:

$var1 = doMyFunction();

and then $var1 equals the returned results from doMyFunction(). Can I do the same thing in javascript? or is there a different way to get the returned values from a function?
 
It's acting weird, I'll try again later.
@sadmicrowave Do you mean...
 
user1385191
@sadmicrowave if a language didn't do that, I'd be worried
 
user1385191
5:24 PM
that's basic programming
 
var one = function(arg){return arg;}
Or even,

var one = {
something : function(arg){return arg;},
somethingElse : function(arg){return arg;}
};
 
@MattMcDonald right, I just can't get it to work:

var myVar = doMyFunction();
alert( myVar );

function doMyFunction(){
   return true;
}
I would expect my alert to be 'true' but its 'undefined'
 
You need to alert(myVar())
 
user1385191
@Incognito this example returns a function expression
 
the () call the function, the myVar just contains it.
 
user1385191
5:25 PM
you need to call the function to return it
 
user1385191
@sadmicrowave this is likely because you're calling the function before it's defined
 
That's why closures such as this run when called:
 
so really I should just be doing this:

alert( doMyFunction() );
 
var x = (function(){
return 1;
})();
 
user1385191
var foo;

function bar(baz)
{
	return baz;
}

foo = bar(1);
 
5:26 PM
because the () at the end called the function to execute, which returned 1 to the x.
@sadmicrowave Yep.
Just think of it logically, what is inside myFunction? It's a function. How do you call a function normally? myFunction();
This is how working with function callbacks etc work.
//Assign a function to X
var X = function(a){
a();
}

//Call function X, the argument is a function.
X(function(){
return alert(2)
});
And now the magic of how jquery works should quickly disappear for you also?
 
Tomorrow EOD is the deadline for jQuery Conference Boston Call for Speakers have you submitted your talk proposal yet? http://t.co/lGLzq2q
Happy 8th Birthday to the Mozilla Foundation http://en.wikipedia.org/wiki/Mozilla_Foundation
 
5:49 PM
Okay... this is weird.
I've encountered something in jquery, where these two select differntly:
$(element).children(".groupBoxTabs").children("div:first")
$(element).children(".groupBoxTabs div:first")
Is this expected, or am I missing something here?
 
@Incognito i'm pretty sure one or the other only looks one level down in the child chain
can't remember which though.
 
The second line uses a descendant selector instead of a child selector, so I think that it returns more elements than the first line
 
user1385191
yep, descendant selectors go all the way down
 
Descendant and child selectors in the CSS2 syntax have the same results.
ie, ".class div:first" and ".class > div:first" both have the same issue.
 
A descendant might be a child of a child of an element, right?
 
5:54 PM
the div I'm manipulating is the first child in the HTML
 
user1385191
> The .find() and .children() methods are similar, except that the latter only travels a single level down the DOM tree.
 
@ignis Correct.
descendant is anything down the line, child is the first-generation.
 
user1385191
which makes sense
 
Absolutely, but I have the weird results even with the child selector.
 
incognito, what is the tag structure in your HTML? :P
 
5:56 PM
Working on a fiddle.
 
huh?
I'm sorry, but I don't understand. Google translate says that's a violin. (!?)
 
rofl
Translate is sometimes hilarious
 
:P
Ok, that seems a test framework to run Javascript code. But you must still have some HTML to apply the query... (or I'm missing something)
 
@ignis JSFiddle lets you put HTML/CSS/JS into one thing for testing.
 
6:03 PM
19 years ago today, Dan Connolly posted the 2nd version of the HTML1 DTD http://goo.gl/vkjNh 1st was posted 06 June 1992 http://goo.gl/57lE7
 
6:16 PM
I hate these things I can't reproduce... it means I've done something really weird somewhere...
 
6:30 PM
Okay, this is weird too: jsfiddle.net/wGvEu
 
user1385191
chaining's killing you
 
but how?
I posted it as a question
0
Q: [jQuery] selectors: Why is div > div working differently than $("div").children("div")

IncognitoI have a weird problem where I can't use the normal sizzle selector to correctly select something in jQuery: These two lines don't do the same thing. ele.children("div.a > div").addClass("badActive"); ele.children("div.b").children("div").addClass("active"); http://jsfiddle.net/wGv...

 
user1385191
use a variable
 
user1385191
like I said, chaining is killing you
 
user1385191
6:38 PM
b will always override because it's returned last
 
I don't understand how that's making the two selection methods work differently.
 
user1385191
it's such a crutch, and I hate it
 
Right, but in your example you changed how the colsure selects things. I'm wondering why I can't do ("div > div"), but it works with $("div").children("div")
Why does it work with .children, why doesn't it work with >
 
user1385191
it's your div:last selector killing it
 
user1385191
[div.b]
[div.b]
[div.b]
[div.b]
[div.a, div.b]
[div.a, div.b]
[div.a, div.b]
[div.a, div.b]
 
user1385191
6:50 PM
second half was me removing it
 
7:45 PM
@Incognito , you should avoid using complex selectors , they are extremely slow when compared with byID and byTag selectors
and as for that topic of yours : you are doing it wrong
instead of setting some magical class to all child elements , you should set a class on the parent element , and let the css to deal with changes
 
user1385191
@teresko I like to call it "murdering the DOM" or "id/variable-phobia"
 
i blame jquery
 
hi, what could be a possible reason for one button getting triggered along with another button when you only click one of them?
 
user1385191
useless without code
 
jQuery should have a new tagline : "Use jQuery. It makes doing stupid things easy !"
 
7:50 PM
rofl
 
user1385191
queries are only going to get more popular with HTML 5
 
$('input[type="button"]').click(function() { // do this on all buttons  });
 
user1385191
querySelector(All) is getting super optimized
 
@RyanKinal WROOOOOONG!!!
 
it doesnt activate all of the buttons, for some reason only activates 1 other button
 
user1385191
7:51 PM
1 min ago, by Matt McDonald
useless without code
 
you should add an event on the container, and check for a type attribute of the this
 
user1385191
we need to see some html and some js
 
@RyanKinal , be a good student and learn about event delegation
 
@teresko sigh You say that ever time I post event code
I know about event delegation. I understand it. I use it on a regular basis.
 
@RyanKinal then what is this doing there ?
that piece of code is bad on several levels
 
7:58 PM
@teresko It was purposely bad code. I do that sometimes.
It's fun for me.
I mean, how hard is it to just write a $('input').live(), and do things the right way? </trolling>
 
user1385191
ah, drawing complex graphics with code is fun
 
@RyanKinal lemme guess .. and this was a purposely weak excuse too ..
 
user1385191
alright, take it easy
 
user1385191
yes, quick code sucks
 
... and people who learn take this away as "best practice"
 
8:07 PM
will never write another line of sarcastic code
leaves
 
@RyanKinal , if you do not intend people to use it , then you should add commends accordingly
google never forgets
 
user1385191
I will agree with you there
 
user1385191
sadly, editing capabilities even for room owners is minimal
 
Jez
8:25 PM
Hi everyone. I'm trying to write a module pattern so I can 'augment' my module
here's my template: pastebin.com/p5kqm6CK
Can anyone see a problem with this JS code, given that it is designed to be included in several different .js files, included in several XUL overlays, each overlaid over Firefox 5's browser.xul?
 
8:40 PM
Mmmh, maybe this pattern would work?
 
@Jez Why couldn't you just do myModule.addedmethod = function(){} ?
 
Jez
@Incognito it provides privacy and state throughout the lifetime of our application.
 
8:57 PM
@Jez Wouldn't you need to throw some errors in the event of trying to access that?
 
00:00 - 21:0021:00 - 00:00

« first day (271 days earlier)      last day (4678 days later) »