« first day (2025 days earlier)      last day (2924 days later) » 

7:00 PM
i didnt say they did
lets say on my page i do something like...
$(function() {
    $("#foo .bar").change(function() { alert("Yup!"); });
    $("#foo").load("someurl");
});
that will never attach that handler to anything
assuming when the page loads that #foo is empty of course
 
which handler?
I have no idea what you're talking about
.change and .load have nothing to do with one another
 
user47589
i'm not sure what point @wadry is trying to make
 
neither am I
"when you execute two unrelated pieces of code, they're not related!"
 
using load "ajax populates" the element with the result of a server call
 
okay... so?
 
7:06 PM
using $("selector").on I believes sets up that handler for events that meet the selection criteria both now and in the future
using the change handler directly doesnt
120
Q: jQuery .on function for future elements, as .live is deprecated

BradI need to add a handler for the click event of future <div> elements, that don't exist yet. Normally, I would use jQuery's .live function to handle this, but it seems that it is now deprecated in favor of .on. To use the .on method in this manner, jQuery suggests setting the selector parameter,...

 
thats because of how jquery selectors work, not how events work
 
no its a thing about how on works
 
i don't know what you're saying and I haven't used jquery for years so I'm not going to debate on specificities of dead technologies :P
 
> dead technologies
the banter
also i agree
 
wtf ... jquery dead?
sure ... ok @Codeman ... is that the MS in you coming out ?
 
7:09 PM
lol
I would never use jquery in a new project
it was necessary because IE6 was a steaming pile of non standards compliant crap
 
me neither
angular2 doesn't even condone it's use
 
user47589
I would only use jquery if I needed to directly manipulate the DOM somehow.
 
user47589
Angular and other libraries have obviated the use of jQuery.
 
so how do you setup event handlers for elements that don't exist yet ???
 
@wadry don't set up event handlers in the first place?
 
7:11 PM
its a normal thing to do these ... they are called future queries
 
use observables instead
 
even bloody .NET has future query support in a load of its stuff
 
user47589
According to jQuery's documentation:
 
@Codeman observable dom elements? sounds like you're mixing your model with your view
 
user47589
7:12 PM
> Event handlers are bound only to the currently selected elements; they must exist at the time your code makes the call to .on().
 
@Amy depends on the signature you use
 
user47589
Please quote the part of the documentation that says so. What I just quoted directly contradicts you.
 
here, lemme help you guys:

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
168
Q: Turning live() into on() in jQuery

JackMy application has dynamically added Dropdowns. The user can add as many as they need to. I was traditionally using jQuery's live() method to detect when one of these Dropdowns was change()ed: $('select[name^="income_type_"]').live('change', function() { alert($(this).val()); }); As of j...

It's common knowledge @Amy
 
user47589
Cite the documentation, please.
 
user47589
7:14 PM
Maybe its not as common as you think.
 
user47589
"I know it, so it must be common knowledge!" I've never heard of jQuery binding to elements that don't exist yet.
 
user47589
Hell, even the top answer in your link cites the same documentation I quoted. So please.
 
ok from the jquery docs:
This method provides a means to attach delegated event handlers to the document element of a page, which simplifies the use of event handlers when content is dynamically added to a page.
 
live was then later deprecated and an overload of on is now used
but it seems that on isn't up to date
but on that live page it shows how you can use on to achieve the same result
also worth noting that the first section of the on page links to this page
so it is documented
 
7:18 PM
Arguing about JavaScript is like eating a BK hotdog. I can't imagine why anyone would want to lower themselves so far that would seem like a good idea, and when it's all said and done everyone involved feels awful.
 
you guys must not build very much ajax loaded content for your web applications
 
Also it probably makes you gassy.
 
we use even more js frameworks for loading the content
 
why?
 
we get it by json and bind it with knockout
 
7:19 PM
@MikeAsdf same here ^
 
user47589
Everything I do is with ajax. Wtf are you talking about
 
@wadry assuming that everyone does things the same way you do them is a foolish assumption
 
@MikeAsdf you get it by json ... how? with an ajax call?
 
"JavaScript frameworks - if it's not the solution, you're not using enough"
 
@wadry yes, with jquery
 
7:20 PM
@Codeman not everyone .. but its common knowledge that you can do event binding this way
 
@wadry apparently not
and remember "can" and "should" are different
 
user47589
I like how us not knowing about some obscure overload to jQuery's on() function, which has nothing to do with ajax, means we don't use much ajax.
 
well obviously not if you work for microsoft the well known haters of the web
 
@Codeman hey what do i put in 'username' 'password' fields? my subscription email password? or where do i find/create those credentials?
 
amy pls
 
7:21 PM
@AdanRamirez hunter2
@wadry yeah, we really hate the web. that's why we have Azure, lol
 
@Codeman I don't know why you expected ********* to be helpful
 
@Amy its fact that jquery is used on over half the worlds web pages
 
@AdanRamirez those are the network credentials that you're using to publish
 
7:22 PM
I can't recall the exact stat but its safe to say half
 
it's asking for a god dam username/password like if i ever even creatd one T_T
 
@wadry care to cite that?
 
user47589
@wadry again, on() has nothing to do with ajax.
 
user47589
so your argument is stupid
 
@AdanRamirez well if you didn't create a server, why would expect to be able to deploy to one?
 
7:22 PM
@Codeman Adan's got a lot of funny ideas
 
Taking the ajax result and binding it to elements can be done in a plethora of ways, all the while using jQuery to get the result.
 
i did create a server and bought a domain name
just didnt know about a username/password
 
@Amy you're not reading the information I am giving you
 
@AdanRamirez use the credentials that you use to login to the server
 
user47589
well how are we supposed to know this username/password, @AdanRamirez
 
7:23 PM
@mikeTheLiar thank you
 
@Amy just use hunter2
 
user47589
@wadry what did I not read? "its fact that jquery is used on over half the worlds web pages" has zero to do with the comment you replied to
 
@AdanRamirez or the credentials the site is running under. Either one should work.
 
Ok fine, I get told shit like "we can't help you if you're being arrogant" in situations like this ... feel free to take your own advice here
 
user47589
You're accusing me of being arrogant? Try using some goddamn logic.
 
user47589
7:25 PM
on() has nothing to do with ajax. You assumed that because we didn't know an overload of on(), that we don't do much ajax. That's stupid.
 
My original point still stands ... using on and using the direct handler hookup are not the same
 
user47589
It isn't arrogant to point out flawed logic.
 
user47589
No one is discussing that point.
 
user47589
Yup @mikeTheLiar
 
7:25 PM
@Amy That's the point i was making
then you guys tried to pick apart 2 line code sample which makes the point
 
@wadry amy isnt a nice pony most of the time T_T
 
user47589
You guys try. I'm done.
 
I noticed
 
user47589
@AdanRamirez only to idiots.
 
8 mins ago, by mikeTheLiar
Arguing about JavaScript is like eating a BK hotdog. I can't imagine why anyone would want to lower themselves so far that would seem like a good idea, and when it's all said and done everyone involved feels awful.
 
7:27 PM
@mikeTheLiar BK makes hotdogs?
 
@Amy is perfectly nice. just not when people are being pig headed and throwing out random facts without any details
 
This isn't me being all confused ... I use this method quite often when I know something will appear on the page but might not be there right now
 
user47589
@Codeman thank you @codeman.
 
I can tell jquery "when something that matches this selector exists, hook this handler up to this event"
and its documented and it works
and i'm pretty certain I aint the only person out there using it
 
@wadry I think you maybe misunderstand exactly when that code is run
 
7:29 PM
I'm not wrong just because you guys don't know about this
@Codeman what code?
 
i feel like ms azure requires a college degree to use
so much goes wrong
 
@AdanRamirez you would think that
 
user47589
lol
 
@AdanRamirez Azure is a headache factory if you try to do anything serious with it
 
not joking, spent days to install vs, hours to troubleshoot azure sdk
 
user47589
7:30 PM
days installing vs?
 
hours to create a web app
 
but for simple build event examples it's ok
 
i uninstalled an express version, then i got enterprise and had trouble installing
@Amy
 
@AdanRamirez days to install VS is just plain wierd
 
@AdanRamirez you mean you had trouble trying to work around actually paying for the software
 
7:31 PM
@wadry if you read the documentation... you can make an event handler work by attaching the event handler to the parent element of something to be loaded later. But there is no magic jQuery method that hooks into any future DOM change
 
@mikeTheLiar i got a real subscription with a real key, if you uninstall a diff vs and try to install a new one expect headaches
 
when you uninstall vs some files/data remains
 
> Delegated events have the advantage that they can process events from descendant elements that are added to the document at a later time. By picking an element that is guaranteed to be present at the time the delegated event handler is attached, you can use delegated events to avoid the need to frequently attach and remove event handlers.
> This element could be the container element of a view in a Model-View-Controller design, for example, or document if the event handler wants to monitor all bubbling events in the document.
 
@Codeman you hook a handler up to the dom changing from that root selector, the second selector you give as the second arg in the on call is the thing that does not yet exist
 
7:32 PM
JicamaJS can not only predict future DOM events but also literally predict the future
 
I'm effectively hooking an event handler up to the event where the dom changes within a parent scope
 
why don't you go ask these guys how they feel about jquery?

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
 
but the handler code I give the on call is for an element that does not yet exist
 
yea they are very helpful
 
@Codeman even those guys hate JS ... thats a retarded suggestion
 
7:34 PM
oh here's another ms azure headache, so i buy a domain name, and when i publish my vs app to the cloud, it has it's own domain name lol, kill me
 
@AdanRamirez that's because that's your VM's name. Do you know how a DNS works?
 
@AdanRamirez I shouldn't worry, at least your MS account works, mine finally does now after having to explain to MS that they had a fuckup between their SSO references in several services to do with my account
 
@Codeman ah i see what you mean now
 
I had to remote a guy in to my pc and show him how monumentally stupid this issue was because they kept saying shit like "just login, and if you can't its your fault"
 
@wadry i should enroll in a college that specializes in ms azure
 
7:36 PM
@AdanRamirez na just don't use it man
get another job
 
That would be an effective method of culling the developer population
> Requirements for this position: do not have a degree in MS Azure
 
@wadry it's probably not a good idea to talk shit about the employer of one of the long term room owners -_-
 
oh and here's more, the azure portal loves to name everything, so to make 1 website you endup with multiple different named apps that make the portal sphagetti :3
 
@Codeman Oh you work at Microsoft? I didn't know
 
ms is awesome, just gettin used to azure
 
7:37 PM
.NET is awesome, and C# is a beautiful language but MS vision of where things are going appears to be broken / they baught so much shit so fast they basically need years off to plug them all in correctly
 
@AdanRamirez you're fine. Azure is pretty difficult to get used to.
 
@Codeman hehe yea
 
@AdanRamirez wait for about 4th or 5th version and it'll be awesome
 
im in mexico with 2mb download speed :D
i called their company and they told me they wont waste their time trying to reach a village :3
 
that sounds about right
im one of the lucky people ... all around me 10mb/s MAX ... my house ... 200mb/s
makes you wonder how they build these networks at times
 
7:40 PM
@wadry i miss time warners 200mb fiber internet T_T
 
user47589
Google Fiber just came to Nashville. They're rolling out to most of the city.
 
I actually got refund from EA after they told me my line wasn't fast enough to game on their servers and I should consult with my ISP
 
nice
 
user47589
Unfortunately I'm about 50 miles away from Nashville :(
 
here im mexico they tell you to fu@$ off if you ask for a return
@Amy ha!
 
user47589
7:42 PM
Are ISPs given local monopolies in Mexico like they are in the US?
 
My ISP sent them a strongly worded email on my behalf stating that if my internet wasn't very good then maybe they don't need the same connection provided by their partner company
was quite amusing
 
user47589
Comcast and Charter tried using the state government to block Google's entrance into the local fiber market.
 
user47589
(They failed.)
 
I got a report stating I have a 20ms ping to anywhere on my ISP's network thats most of north america, the UK and about 10% of europe (at that time)
 
@Amy theres like a few companies, and the best one is Axtel which has good speed if you live in Guadalajara which is the main city
 
7:43 PM
@Amy I seriously hope google push that venture
 
user47589
Hilariously, Comcast started lifting its data caps after Google moved in and started accepting customers. Previously, Comcast had stated that the caps were necessary because of congestion.
 
they have the resources for world class internet
 
user47589
@wadry yeah, fuck Comcast.
 
fuck comcast
 
since they are basically everyones homepage already
does anyone here not have google as their homepage in their browser?
from what I gather its pretty rare
 
7:44 PM
i tried msn for a while
but didnt like ie and ms constant pop ups
 
@AdanRamirez That sounds like a good soap box to stand on
 
i cant stand ms asking me stuff
 
user47589
My homepage used to be iGoogle before they terminated that service. Now its a blank page.
 
Hey guys. I have a tiny question :-)
 
yeh I was starting to like iGoogle too
 
7:45 PM
@juanvan hi
 
user47589
yeah
 
just got it right
 
user47589
i liked iGoogle
 
and bang ... gone
 
fluff it up first @Global
 
user47589
7:46 PM
dances to "Let the Good Times Come My Way"
 
user47589
@Global it needs to be big enough to be visible. ZOOM AND ENHANCE
 
Haha.. too much pressure...
 
hey @AdanRamirez good day?
 
@Global it's not the size of the question, it's the quality of the content
 
Im using datagridview to show data in one of menu selection (menu serach)
I want using datagridview to show & remove data in another menu selection (menu remove)
 
7:47 PM
we don't want ppl with tiny problems to be discouraged
 
user47589
@mikeTheLiar size matters a little
 
So size doesnt matter?
 
user47589
Yoda was a liar.
 
@juanvan nah, spent a week to configure 1 website in ms azure, u?
 
What is the best way to store user information for a login session if I need to store custom fields and the site isn't connected directly to a database (using Webservice API for user and other data).
 
7:48 PM
SBS 2011 upgrade, VPN on the new firewall - got a side project website launching today then Maybe ill finally get back with failsafe on our project
 
oh actually, i spent 2, because when i tried paying for a subscription i got blocked lol
 
that was the weeekend
 
I am refeering to datagridview2.DataSource in menu (remove log). But the content is only visible in meny selection (search)
 
@Amy Obi Wan was a filthy liar. There's a sci-fi answer somewhere that catalogs all the times he lies to Luke and it's basically constantly
 
@juanvan sounds good
 
7:49 PM
sounds like snooze ville
 
user47589
@mikeTheLiar yeah
 
For an MVC site, I mean
 
i want to play with the new kali distro
 
104
A: How many times was Obi-Wan less than honest with Luke?

DVK-in-exileTL;DR: How do you know Ben Kenobi is lying? Because he's opening his mouth. 50% more untruths than truths in ANH. 56% more untruths than truths in all original trilogy. DISCLAIMERS AND EXPLANATIONS: The way I interpreted the question was, that the intent was to be uncharitable to Obi-Wan. So...

 
user47589
@Hypersapien Session doesn't require a database.
 
7:50 PM
Isn't session crap for modern sites?
 
sessions have a place
 
lol
 
user47589
@Hypersapien Um, well your question was about storing session data...
 
"session" with a small "s", not necessarily the object.
 
@Codeman oooo they finally upgraded it
 
7:51 PM
@Codeman that is a backend OC line
 
user47589
Please clarify the question, then.
 
Is it better with 1 datagridview in GUI that I copy or should I use two different?
Tried to copy but did not work well.
 
@juanvan ssshhhh
 
I'm not so keen on ookla anymore ... not since they got bought by ZiffDavis ... those guys are bastards with some evil business practices that are basically illegal in places
 
@Global you are looking to have a Datagrid update off the selection of another datagrid?
 
7:53 PM
@Codeman hang on a minute ... Microsoft supplies its own internet?
 
when they have Azure, they have OC lines
would not be surprised there is not OC lines to each datacenter connecting each other
 
I doubt we run Azure out of the Redmond campus
 
@mikeTheLiar ima youtube that, btw jar jar is a sith but lucas cut him off due to the negative feedback
jar jar was supposed to be some main sith lord
@Codeman you lucky pup
 
@juanvan They could be separate. Because one menu selection content only search, the other one should view all data from DB and having abillity to remove data from DB
 
When a user logs into an MVC site, I need to retrieve data about their account from a Webservice API and store it in a way the site can retrieve it without hitting the API every time.
 
7:55 PM
@Codeman Satya is just a hologram to represent the AI brain that is actually Azure
Azure needs a face to start his plan of world domination
 
that is what watson will do next
 
@Failsafe isn't cortana that face?
 
@wadry Cortana is Azure's daughter
 
I know how to use WebSecurity.Login, but that only stores the username.
 
@Hypersapien so put it in session
 
7:56 PM
@Global one is for what is searched and the other displays all the DB data?
 
@Failsafe I figured it was more ... Azure was cortana's body
 
@juanvan yeah, or the other one could also be searched first + remove data. Doesn't matter :-)
 
what is this static shock 2?
 
@juanvan It's what looks best. So two panels where each panel contain 1 datagridview
 
everything looks good from 15yards
 
user47589
7:58 PM
@Hypersapien it sounds like you want to persist some data for as long as that user is logged in. that sounds like an ideal usage for session state.
 
@Global ok, then you have 2 events/methods that fill the datagrids, what is it you are looking to do?
 

« first day (2025 days earlier)      last day (2924 days later) »