« first day (216 days earlier)      last day (4734 days later) » 

12:06 AM
X(
 
12:19 AM
pines for Perl... @a = map { ... } grep { ... } @a
 
0
Q: AJAX request(delete a comment)

q7eb2aHi there, I'm trying to delete a mysql record with javascript but I fail. So this is my js function function delpost(id){ if(confirm('Are you sure?')){ $('#comment_'+id).hide(); http.open("get","/index.php?p=delcomment&id=" + id, true); http.send(); } } And...

heh, "why aren't you using JQuery's ajax methods?"
 
Trololol :D
 
I have <caption> tag in my table and i have to change its value based on selected dropdown value. how can i edit caption tag of table using Jquery?
 
12:43 AM
@jatin $(#tableid caption) etc?
gnight!
 
1:00 AM
alert $('tblGroup caption') give me [object object]
 
1:21 AM
?
 
2:21 AM
sigh posted an answer, realized I misread the question. Get pulled away for an hour before I can edit.
I get to look like a complete idiot for an hour. Oh well :/
0
Q: How to write data from Form in HTML to XML with Javascript

MNX1024This is an assignment from my class. What I need to do is create a registration page. When the user presses the submit button, I have take all the information on the form and write it to an existing XML file using Javascript. This is done on the client side, only through HTML, Javascript, and XML...

Oh dear, ActiveX only XML parser :(
 
2:41 AM
hola pplz
 
2:57 AM
I always get a bad feeling when someone talks about scraping data from websites
 
3:27 AM
0
Q: Parsing $.get xhr content and inject scripts

user762070Hello, working on a ajax plugin, I am failing in appending scripts into the DOM, here ge go: Step 1, we request using ajax $.get, the result is then sent to this beauty: function parse(page) { page = page.replace(/\<\!\[CDATA\[\/\/\>\<\!\-\-/gi,''); page = page.replace(/\/\/\-\...

 
 
3 hours later…
6:24 AM
anyone therE?
 
 
4 hours later…
10:13 AM
RANT. IE9 quirks is different from IE8 quirks
 
@Raynos Browser X quirks are different from browser Y quirks
 
10:32 AM
@YiJiang I know but its IE8 and IE9 the whole point of quirks mode is backwards comptaibility. If there not the same, whats the point?
 
10:55 AM
Heh, a "how to crawl AJAX pages" question
A problem even Google has
 
 
2 hours later…
12:44 PM
hello there
what's kickin'?
 
Work :-)
 
@RyanKinal Or there lack of
 
:) same
 
@YiJiang lol, that too
Writing some CSS, currently
 
i was writing draggables but i got stuck...
waiting on answers
:/
 
1:16 PM
@Raynos WHAT?! They have a wiki? I hate SEO.
 
@user257493 exactly
It's the best HTML resource. And I found it 2 hours ago
:(
Their wiki pleases me.
A google search for <p> should return p @ w3 wiki
 
Oh, wtf. String.lastIndexOf can't be called with a regex as the first parameter?
 
1:35 PM
No you can't. It needs a string, representing a fixed match.
8
Q: Is there a version of JavaScript's String.indexOf() that allows for regular expressions?

PatIn javascript, is there an equivalent of String.indexOf() that takes a regular expression instead of a string for the first first parameter while still allowing a second parameter ? I need to do something like str.indexOf(/[abc]/ , i); and str.lastIndexOf(/[abc]/ , i); While String.search...

 
@Raynos I've been contemplating a new standard documentation format for the web, how to gain interest and run a community around standard docs and separating noise from examples from best practices, etc.
 
@jerone I thought of String.search, and then read the first answer. It should do fairly well (though @Raynos might get angry for the prototype extension)
 
@YiJiang Not my preferred solution too. But could be rewritten in a normal method.
 
@Raynos I don't know, maybe quirks mode is now I-don't-care-about-HTML-enough-to-use-a-proper-doctype-so-you-can-render-my-page-however-you-want mode
 
Hmm, no interesting looking questions this morning
Guess I'll go fool around with mini projects
 
1:58 PM
"if i want to develop my own chm reader or FTP or any appz" Gonna make me some appz baby
saveXML(xml, I_AM_NOT_A_ROBOT_GIVE_ME_INDENTATION_PLEASE)
 
2:10 PM
Yeah, time to add JQuery to ignored tags
 
Really?
Has the ecosystem gotten that bad?
 
A long time ago I created a project JS-Cumulus that duplicates the flash based WP-Cumulus. Now I want to port it to mobile, but I feel there could be some optimization. Anyone interested in checking it out...?
 
@user257493 The questions are generally either overly specific (I'm using blah etc. jquery plugin) or just plain boring
 
or just plain funny (How do I use jQuery to add 2 numbers)
 
@ircmaxell yeah but those generally get pasted here anyways ;)
 
2:26 PM
hi all
 
:-P
 
hello to u
 
+5 away from a guru badge (and +6 on another answer)
 
@ircmaxell ?
i wanna be a guru
closest i got was +15 ups
 
I got a nice answer badge a few times, that was about it
"People generally won't just write code for you.... unless you're paying that is."
 
2:38 PM
@onteria_ ??
is this a good answer?
 
@Neal It was a comment in a PHP question. I'd post it here but then @Raynos will come after me :(
 
@onteria_ why would he? and is my answer good?
hmmm got a -1
 
Well, it gets weird because of how a browser handles an alert() popup
Generally alerts come up in the current viewport versus the parent frame so to speak
They probably want something like a div based dialog along the lines of JQuery UI's dialog widget
 
@onteria_ the op asked about alert! i know how to handle iframes and popups, i have a few Q's abt them myself...
watev. i removed it
 
The problem is that the OP asked about generic parent-to-child-frame function calls, not about alerts.
 
2:48 PM
@RyanKinal watev. it was removed..
 
@Neal don't worry, stuff like this happens to me everyday
 
@onteria_ :-\ i guess
 
The hive mind mentality at SO can get ridiculous. People downvote just because it's negative, and don't explain why they downvoted, not giving the poster a chance to defend their stance or fix their logic
 
@onteria_ lol yes, thats why i posted a @downvoter Q, although it most of the time doesnt get answered
my Q is almost at 1K views!
lol yay
 
Sometimes I can figure it out. I wrote a jquery specific answer to a non-jquery question once and got downvoted because I thought it would be easier to understand. Got downvoted so I just put a pure DOM solution and moved on.
It went back to being positive after that
Is there some kind of "Auto accept after x amount of time" code?
I get these random accepts from quite awhile back, just seems kind of weird
 
2:54 PM
@onteria_ lol no. i think people just come on a few months latr and ppl tell them about their accept rate and they fix old Q's
 
@user257493 wazzat?
 
JS memory leaks from clojures attached to DOM elements
60 seconds of reading
 
u wrote that?
lol idk who anyone is lol
 
0
Q: Is there a way to check a file encoding using JavaScript?

astro11Here's my case: I'm working with a very big project that contains lots of files. Some of these files are encoded in UTF-8, other in ANSI. We need to convert all the files to UTF-8, because we decided this will be the default in our next projects. This is a big concern because we're Brazilian and ...

JavaScript... kind of
 
2:59 PM
@YiJiang I would rage about prototype extension
@onteria Do it.
 
More like "Use JavaScript to interface with MS specific objects" but okay
"cscript /Nologo ansi2utf8.js"
"Windows Script Host supports scripts written in VBScript or JScript."
adds Windows Script Host to list of 'JS outside the browser'
 
$ git clone git://git.kernel.org/pub/scm/git/git.git
 
0
Q: Is there any use for auto generated visual studio <meta> tags

RaynosWe have an old project lying around with these <meta> tags in every page. This website is an intranet web application. <meta name="GENERATOR" content="Microsoft Visual Studio 7.0" /> <meta name="CODE_LANGUAGE" content="C#" /> <meta name="vs_defaultClientScript" content="Java...

 
@Neal No, just found it interesting.
@Neal I'm going to pick a common pudendum soon.
 
@user257493 lol ookey :-)
@Raynos i think they are used sometimes by page crawlers
 
3:10 PM
How's 257493_the_user sound? ;)
 
@user257493 ehhhh
dont like it :-P
 
user1385191
@Raynos different in what way? I'm assuming it keeps the new features in IE 9 but uses the quirks box model + some quirks DOM stuff
 
@Neal What about password?
 
@user257493 ??
 
As a user name.
 
3:24 PM
@user257493 lol noone has that one yet
stackoverflow.com/users search through names lol
there are multiple Neal's but im the most active i believe
 
It's either "password" or "Aeff Jattwood", and I use the coding horror image and superimpose the trollface.
2
 
@user257493 I think you meant "Aeff Jatwood".
 
Trolling is a art.
 
@user257493 I like your current username.
 
So do I, but everyone's getting antsy over it, you get two users in here and nobody knows who I am. They were all calling me bob two days ago.
 
3:31 PM
@user257493 hey bob
:-P
 
does anyone have any recommendations of an image magnifier (magnifying glass type object) that doesn't require two images to use ( a big image and a small image )? I've been searching for hours and can't find a good one...
 
@user257493 what about: 394752resu ?
 
user1385191
so within about 10 minutes of testing last night, I broke jQuery 1.61's attr function...
 
its ur name backwards
 
user1385191
in Firefox 4
 
3:31 PM
@MattMcDonald how?
@user257493 or just RESU
lol
 
@Neal @user257493 I was just about to suggest that, actually.
 
So I wanted to use #! but it wouldn't let me
 
@RyanKinal ^_^
 
That gets my +1
 
RESU is good.
 
3:34 PM
@user257493 or just confuse ppl: ReSuSeR
:-P
hehe
 
Or, jeff attwood
 
My mind, it is blown
 
back and forth
 
Okay, I'm going touse Jeff Attwood (two T's), and superimpose the coding horror face with a trollface
 
@user257493 ehhhh
thats just confusing
lol
 
3:37 PM
0x#! ?
 
@user257493 is that allowed? hehe
 
it should be
 
user1385191
 
user1385191
bing bang boom
 
Does anybody else have this (problematic) habit of typing something, and then hitting Ctrl-S?
 
3:37 PM
bawhhh Display Name can only contain a-z, 0-9, spaces, apostrophes or hyphens
 
user1385191
second set of results is what you want
 
user1385191
it's setting both the attribute and the property
 
O_O
 
user1385191
I was doing this on a label element last night and it was the same result
 
@MattMcDonald you ddnt break anything
thats what its supposed to do
 
user1385191
3:39 PM
though I never had to set the value to undefined because it wasn't a form element per se
 
explain what is broke
 
user1385191
no it's not
 
user1385191
it's named ATTR AS IN ATTRIBUTE
 
user1385191
setting both the property and attribute is bad bad bad
 
How do you deal with css class naming conflicts?
 
user1385191
3:40 PM
tag specificity
 
user1385191
div.foo, a.foo, etc
 
@MattMcDonald one min
jsfiddle is slow
 
user1385191
yeah it's hiccuping
 
...
 
Either that or constrain them to a specific element like '#somediv .class', though that won't work if the elements in question are all under '#somediv'
 
user1385191
3:42 PM
it's funny because 1.2-1.6 were working fine and I couldn't break them
 
user1385191
but 1.6.1 broke easily in FF 4
 
@MattMcDonald thats bc 1.6.1 is a mix of 1.6 and 1.5
ok js fiddle is broken
@MattMcDonald report the bug to jQuery
 
user1385191
I knew their new code was stupid
 
@MattMcDonald nahh its just buggy
 
I feel a bit dumb, I'm still not 100% clear on the difference between attr and prop
 
3:45 PM
@user257493 Resig wrote a fairly long blog post explaining it
 
Reading now
 
42
Q: .prop() vs .attr()

NealOk. So jQuery 1.6 has the new function prop(). $(selector).click(function(){ //instead of: this.getAttribute('style'); //do i use: $(this).prop('style'); //or: $(this).attr('style'); }) or in this case do they do the same thing? And if I do have to switch to using pro...

:-D
 
Person asks question about license compliance, in their post "I do not: ... seek for answers like 'consult your lawyer'"
I almost want to reply with "Well I guess no one answers your question then"
 
user1385191
but wait
 
user1385191
there's more
 
user1385191
 
user1385191
any property that doesn't update the attribute is going to do this
 
rrrg, its not like jsfiddle and i cant see the code while its execuing
 
user1385191
it's doing the same thing as the last except setting checked instead of value
 
I'm still not clear on prop/attr, the post explained why the made the change, but I'm not clear on what defines the two and what the effects of each are.
 
user1385191
attributes are essentially initial values
 
user1385191
3:55 PM
via HTML
 
user1385191
you use them in the DOM when you're creating elements before appending them
 
user1385191
for example, node.setAttribute("checked", "checked"); doesn't check a checkbox
 
user1385191
however, <input type="checkbox" id="foo" name="foo" checked="checked" /> does
 
user1385191
because you're setting the attribute before it's parsed
 
right, but why isn't checked a property then?
 
user1385191
3:58 PM
it is
 
user1385191
it's both a DOM property and HTML attribute
 
Wait. so... this is briding a gap between html and dom?
 
user1385191
all attributes that I can recall have siblings in the DOM
 
user1385191
some are named differently due to reserved words
 
my understanding was there was something in html's spec I didn't understand
 
user1385191
3:59 PM
for is htmlFor, class is className
 
prop = dom, attr = html?
 
user1385191
bingo
 
user1385191
that's what it's supposed to be
 
user1385191
but now it's setting both
 
user1385191
some properties like className, id, and style update the attribute as well
 
4:00 PM
Ugh, I've been reading over dom level 0, 1 and 2 for the past few days trying to figure out what was going on.
 
user1385191
but ones that don't like checked cause problems
 
0
Q: jquery javascript image magnifier

sadmicrowaveI'm looking for a jquery or javascript image magnifier on hover that does not require two images ( large and small ) to work. I've searched for hours and haven't found any that work the way they are said to. iZoom, jQZoom, tjpZoom, Image Magnify, ImageZoom, have all been tried and don't work fo...

 
Updating html attributes don't trigger the parsing of it's value?
ie, changing checked's attr won't trigger the checked prop?
 
user1385191
look at my example again
 
user1385191
part one is jQuery 1.6.1, which changes both
 
4:01 PM
That's what I'm basing my question on.
 
user1385191
part two is good old setAttribute, which only changes the attribute
 
When does this become useful?
Just speed?
From what I read on Resig's blog, attr() calls prop() anyway, so attr(nodeName) would call prop(nodeName).
 
user1385191
like I said, you set the attribute before appending to the DOM
 
user1385191
you don't always want to set the property
 
user1385191
the value example is relevant because you can set a default value with setAttribute
 
4:06 PM
I guess I'll need to wait and see an example of when this is really useful.
 
user1385191
and then change it with .value whenever
 
user1385191
then you'll have two different values (no pun intended)
 
Anyone know how jQuery UI autocomplete appendTo option works? I'm trying to append the menu to a certain element, but it just keeps appending it to the body.
 
I think I get it, but I'm just trying to think of an existing scenario where this is going to payoff.
 
user1385191
the value attribute is important because that's what gets sent to the server
 
4:10 PM
@resuser hmmmm
 
user1385191
so if for example, someone submits your form with nothing in it, the default values are sent
 
@user257493 tesing out resuser
 
user1385191
another example would be setting the value of a textarea to an encoded string
 
Whats the HTML4 equivelant of <tr data-foo="bar"> ?
 
user1385191
is data-foo a custom attribute?
 
4:15 PM
It's a html5 data attribute
you do know about them right?
 
user1385191
I've never touched HTML 5, though I know about its custom attributes
 
<tr>
  <td> ...
     <input type="hidden" value="bar" />
Would that be acceptable?
 
user1385191
yep, they're custom
 
@MattMcDonald custom data attributes ;)
 
user1385191
input is acceptable so long as it's inside of a form
 
4:18 PM
hey, anyone here familiar with jquery ui's autocomplete?
 
@Radu not i
 
user1385191
@user257493 look at this example I made: jsbin.com/atari4/edit
 
user1385191
here, I'm setting a default value via the attribute and then modifying it via the property upon focus
 
I'm trying to send requests to a php script with a query string other than the default 'term'
 
What's more correct
 
4:22 PM
@Neal hello mate finished that project now :) @MattMcDonald to you also and @Raynos hello to you too, and finally hello to anyone else :)
 
<input type="button" disabled>
<input type="button" disabled="disabled">
 
@Xavier no prob bob
@Raynos both are just as correct i believe
 
user1385191
@Raynos , I'd say #2
 
@Neal debugging my form yesterday LOL can't help yourself can ya ?! use radio buttons not check boxes lol
 
@Xavier ^_^
 
user1385191
4:23 PM
the implementation is shoddy because you can't set true/false values for those types of attributes
 
Should it be disabled="disabled" or disabled="true" ?
 
user1385191
former
 
@Raynos both would work
 
user1385191
for selected, disabled, multiple, checked, etc, you can't reliably pull off true/false values
 
user1385191
wrong
 
user1385191
4:24 PM
I've had it break on me in IE
 
user1385191
essentially, "disabled" == true, "" == false
 
@MattMcDonald ?
 
oh we should enjoy our last day on earth btw, it's the end of the world tomorow :o
 
user1385191
1 min ago, by Matt McDonald
for selected, disabled, multiple, checked, etc, you can't reliably pull off true/false values
 
@MattMcDonald well you can do disabled=true
@MattMcDonald it works though... idk
@Xavier hahah u saw that may 21 thing?
 
4:25 PM
I don't think it matters what you set the value to
 
@Xavier posters are plastered all over NYC
@Liam i agree
 
@Neal well it's draw mohammed day today, and the christians believe it's the end of the world tomorow lawl
 
as long as it says disabled
 
You could actually just put in "disabled" by itself and it'd work
 
looks like my answer is here:
1
Q: how to change jQuery autocomplete plugin default querystring key? (term to that i want)

Sadeghhi, jQuery autocomplete plugin sent request like this mysite.com/suggestion?term=Sadegh is there any way to change term querystring key to another? i can't find option that provide this for me ;)

 
4:26 PM
@Raynos - you can just put <input type="button" disabled> and if you want to remove/add the attribute back you can use $('selector').removeAttr('disabled') or $('selector').attr('disabled','disabled') respectively
 
@Xavier not all christians i think
 
@Neal just the crazies like always
@Neal did you check the SDK's out ? :)
 
@Xavier not yet
 
user1385191
If the attribute is present, its value must either be the empty string or a value that is an ASCII case-insensitive match for the attribute's canonical name, with no leading or trailing whitespace.
 
4:27 PM
@MattMcDonald lol this op wants to disable a div! stackoverflow.com/questions/6074529/…
 
@sadmicrowave just use jQueery!
@MattMcDonald thanks
 
@Raynos :-P
 
I only care about what the w3c spec says
 
@Raynos port that to javasscript and the concept still works - if you have an issue with jQuery (which i know you do)
 
@Neal if you need any art-work doing mate ask me i need to return some favors to you :)
 
4:30 PM
@Xavier haha thnx
 
user1385191
Note: The values "true" and "false" are not allowed on boolean attributes. To represent a false value, the attribute has to be omitted altogether.
 
user1385191
:)
 
user1385191
kind of dumb to name them "boolean" attributes if true/false are disallowed, right?
 
@sadmicrowave I dont ;)
 
well alright then
 
@Neal I think you forgot to quote the PHP string: stackoverflow.com/questions/6074959/…
@Neal ie. '<?php .... ?>'
 
@onteria_ fixed
 
Has anyone had experience with using appendTo with jquery autocomplete?
 
4:42 PM
@Neal Also stylistic but <?php echo "user/hangout_images/$imag_addr"; ?> is better than breaking out into a string concat
 
@onteria_ :-P
 
Sorry for bringing my PHP here :(
I'll go sit in the corner :(
 
@onteria_ :-P happy now?
i changed it to ur liking
and are u stalking my answers? lol
@onteria_ look at @M42's silly comment
 
@Neal nah, I was browsing and happened to notice your answer
 
@onteria_ lol ook
@Xavier !!
 
4:50 PM
@Neal hi dude whats up ?
 
@Xavier just testing PING :-P
 
@Neal lol dude come gchat for a bit ?
 
has anyone ever heard of a disabled div?
 
cant say i have
 
@Neal No
 
4:51 PM
Whats that annoying SQL keyword for FULL JOIN table ON 1 = 1
 
@Liam this OP is insisting there is on: stackoverflow.com/questions/6074529/…
 
user1385191
what in the world is a "disabled" div?
 
CROSS JOIN :(
 
user1385191
you can only "disable" that which takes user input
 
@MattMcDonald no idea, ask that OP
 
4:53 PM
@Neal Just to check my sanity I tried it with Firebug. As expected, it doesn't do anything.
I think what he probably wants is to either hide the div (using style='display:none') or disable the input.
 
user1385191
 
@MattMcDonald i know that already
 
user1385191
the OP clearly doesn't
 
@MattMcDonald TIL about the "autofocus" attribute
 
@MattMcDonald yes. that why i need help explaining lol
 
user1385191
4:56 PM
I thought google might use autofocus
 
user1385191
it appears they do their focusing through JS
 
user1385191
lol, there's a jQ plugin for autofocus
 
user1385191
I don't think the author understands that it's meant for browsers with JS disabled
 

« first day (216 days earlier)      last day (4734 days later) »