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

9:00 PM
hmm
 
Neo
lol
 
The current status isn't fetchable through AJAX, not accurately anyway
 
that is a good idea...
 
for example if you just loaded the page, then you may get a 304 loading it again
 
Neo
what do you guys think of vapor.js?
 
9:00 PM
i wish they would just put it in the window or document object
 
5 hours ago, by Nick Craver
 
Another user not steered down the correct path with substring matching in JS.
 
document.status = 200
 
@Neo A+++++
 
1
Q: How do you use the search method in javascript in an if statement?

chromedudeI have an if statement that I want to execute if a certain variable does not have the <br/> element in it. How would you do this? I tried var str = "hello<br/>goodbye"; if( str.search("<br/>") == false) { //execute certain code } but this did not work.

 
9:01 PM
that would be awesome
 
@Neo ...definitely the most succinct js framework there is. ;]
 
Accepted answer doesn't set the OP straight - it's annoying when that happens
 
@NickCraver, Can vapor.js be run through a code obfuscator so my customers can't steal it?
3
 
vapor.js ?
that is a joke right?
 
@KenRedler: absolutely.
 
9:02 PM
@KenRedler - absolutely, no one will ever see your library's source
 
@wcpro of course
 
great joke!
 
@NickCraver i that case, i'm not sure it would be that easy. js doesn't provide access to the status code outside of AJAX requests...
 
the world's smallest
 
Excellent. @wcpro, it's only a joke until your customers take your code.
 
9:03 PM
@wcpro actually, i believe the option of no framework is slightly smaller...
 
Neo
what;s with the whole customer not steeling thing? do i need to worry about my js code?
 
@wcpro by one http request. ;]
 
@NathanKleyn - whoooooooosh
 
Since using vapor.js, I feel like I know more about the underlying language, JavaScript. The inner workings are totally clear and transparent. You just don't get that kind of knowledge with other libraries.
 
so i have a form
 
9:05 PM
@NickCraver i kid, i kid. =]
 
and i have target to an iframe
 
I find the API confusing, though.
 
@KenRedler: yes, the documentation is rather lacking.
 
i can just do an additional request to the form's action url?
that is what you guys are suggesting?
 
@KenRedler - that's because the IE team f'd it up
 
9:05 PM
But if it's confusing for me, it's even moreso for my thieving customers.
 
just a head request?
 
@AndyE There is no library that executes closer to native than vapor.js
 
oy
we're talking about vapor.js again?
 
don't worry, your jQuery isn't going anywhere :)
 
I heard there's a streamlined version coming out -- so you don't need to include the whole thing.
 
9:06 PM
I think anyway, I'm not real familiar with jQuery but good luck!
 
perhaps what you could do instead is use ajax to fetch the page, record the status code, and then inject the response data into the iframe. http://stackoverflow.com/questions/1565822/insert-html-into-iframe

Seems nasty just to get a status code, though.
 
@NickCraver I thought you were an expert on JS, isn't it the same thing?
 
@wcpro that will submit the form data twice, but that seems relatively unreliable. Are there no event handlers for iframes? Could you have it so if the page displayed in the iframe loads correctly, it communicates back to the outer frame that it's ready and loaded?
 
@Ben - better watch out, there are snipers in here
 
alright thanks guys
 
9:08 PM
resisting...urge...to install....visual studio....
 
o:
 
With Javascript you can program must closer to the bare jQuery. But it's not strictly necessary.
 
@NickCraver yeah, i hear VS has excellent support built in for vapor.js, too.
 
@Nathan No intellisense yet from what I've heard.
 
@path411 yeah, darn shame. that said, i find i need a lot less debugging running vapor.js than when using something like jquery.
 
9:10 PM
it was funny the first million times (;
 
Neo
jQuery AJAX sends http status and statusText ...I think
 
It's actually dynamic AJAX intellisense, but it only comes with the premium add-on
 
@rchern might as well make it a million and one.
 
@wcpro take a look at developer.mozilla.org/en/DOM/window.postMessage - Maybe it will be helpful?
 
9:11 PM
Hahaha
 
@NathanKleyn, let's not (;
 
@sworoc I have Ultimate, MSDN ultimate that's not an issue, but new HD comes in 2 days, hate to install just to do it again :)
 
I do however have a very fast 32GB patriot drive loaded with windows 7 and all my apps, installing on an SSD should be very quick
 
Neo
any mootools people?
 
9:12 PM
@clarkf problem is, it's not cross browser...
@Neo sure, what do you need?
 
i've thought about getting a ssd. i think i want them to drop in price a bit more first
 
@NickCraver you should use the trial of the HD first, the load times were too long for me. If I had better 4G coverage in my area, I would use VS HD
 
VS HD?
 
Yeah, it's way clearer than Visual Studio Standard Def.
 
Neo
@NathanKleyn nvm, I'm being lazy, I am asking you to do my code for me, I don't know what the hash does in mootools, and I've converted successfully 100s of lines of mootools from a CMS plugin to jQuery but I got stuck at this block of code you'll find in the gist link I posted above
 
9:17 PM
VS WPF edition
with fixed cleartype
 
quick question: where can i find jquery mobile help?
 
@Neo A Hash is just a glorified object. Give me a sec, and I'll convert it for you/ ;]
 
Neo
@Nathan Kleyn :)
 
@sworoc Do you need a 1080p monitor for VS HD?
 
9:21 PM
1080p is preferable, but at least make sure it's 120Hz and is Android 2.2 or higher
 
hmmm now you've got me wanting another monitor
 
@NickCraver yeah i been on there for a while now, can't seem to get good help since it's still alpha
 
:) monitors, RAM, and SSD are the best investments
 
I have 2x2560x1600 now, thinking of a 3rd or a portrait 24"
 
I've been curious about a portrait as well
 
Neo
9:22 PM
I've never invested in monitors, thats probably why my eyes are f***up
 
really need to wait until we move to add one though
 
@Neo Try this, not sure if it will work, it's just off the top of my head. gist.github.com/645792
 
A good set of monitors is a wonderful investment, you look at em for a significant portion of your life
 
If only my monitors at work were my monitors at home =/
 
I'm not at home enough to miss mine at work :(
although, Netflix is changing that for me
 
9:25 PM
Eh, I meant mine the opposite. My work monitors/computer are very lacking compared to my home =/
 
Man, ASP sucks. What the hell is a checkboxlist
 
list of checkboxes?
 
Neo
@NathanKleyn tnx alot man, I'll let you know right now! thanks a bunch either way! I'm sure it'll help
 
I know, but it like adds javascript functions to the head section of the page
 
@clarkf Yeah. As a JS programmer, I kinda hate a lot of things about ASP.NET
 
9:30 PM
heh I dunno, asp does suck
 
Most programmers hate a lot of things about ASP.NET
 
@Neo I left a slight mistake in the last if statement, try this and tweak to your liking. gist.github.com/645792
 
The ID mangling, while I see the point, is... ugh. A pain.
 
@RyanKinal - are you on 4.0?
 
Random AJAX question for you all:
what is the server-side platform of choice for returning JSON to the browser
 
9:35 PM
@NickCraver lol, no... I'm on like 2.0 or something (work is behind the times, heh)
 
@sworoc - whatever you're most familiar with I suppose
@RyanKinal ouch, sorry man, we hopped on 4.0 in beta, haven't looked back :)
 
We are using .Net here, just curious to see what others have been using.
 
@NickCraver Yeah. Yeah. Luck you
 
@RyanKinal I definitely recommend 4.0 if you get a chance to use it.
 
@RyanKinal - any change of updating?
there's easy financial benefits there too
though, they where greater at upgrade time, since you got an MSDN bump
 
9:38 PM
@sworoc @NickCraver No real chance up updating. I think it's one of those "If it ain't broke" situations.
 
did you inform them it is in fact broke?
:)
 
lol
 
Neo
@NathanKleyn hey thanks alot man, I got past the part I was stuck. Shouldn't be a problem anymore.
 
I think I have my 6-month review in about a month... maybe I'll mention it :-P
 
how big of a shop is it/how many devs?
 
9:42 PM
5 devs, one graphic designer (who does some HTML/CSS... that's a whole different story)
 
".Net 2.0 doesn't have HTML5 support" that should help :D
 
@sworoc It might, it might not.
 
Anyone have a favorite/recommended StackOverflow app for Android? Just downloaded Droidstack and kinda like it.
 
I've been waiting to play with this:
var errors =
  objects.OfType<IValidatableObject>().SelectMany(
    o =>
    o.Validate(new ValidationContext(o, null, null)).Select(
      e => new ValidationError {Entity = (IBaseEntity) o, Message = e.ErrorMessage}));
ValidationErrors.AddRange(errors);
 
/me has no smarthphone :-(
 
9:44 PM
arrrrrgh remote desktop copy/paste you fail me once again
 
... Is it sad that I'm jealous of those who use MVC?
 
one of our main apps is in webforms, you're not the only one :)
 
Good to know!
 
I finally just converted our main web app from Asp.Net 1.1.... MVC is about 10 years away! :(
 
Ouch!
 
9:47 PM
@NickCraver okay that looks pretty sweet
 
user243901
i'm php developer, what's the best way to start with asp.net webform or mvc?
 
If you're new to asp.net don't even bother with webforms
 
I would get Visual Studio Express, it's free
there are lots of tutorials that can be found via Google (or Bing if you swing that way)
 
From what I've read, MVC does seem to be the wave of the future.
 
I guess we're not talking about JavaScript right now? :(
 
9:49 PM
@Zarel Well, it kinda morphed from "Using JavaScript with ASP.NET is a pain" to "ASP.NET sucks in many ways"
 
With MVC you're night fighting the pipeline the whole time, as soon as you create something dynamically webforms is a PITA
 
So, does anybody in here use straight JS anymore, or is it all frameworks?
 
user243901
i looked into asp.net webform and mvc a bit. webform were a bit complicated for me, mvc was easier to understand
 
@RyanKinal it depends on if you are interacting with the DOM much or not, it's much easier to use a framework for those scenarios
 
From what I hear, jQuery is best.
 
user243901
9:54 PM
@NickCraver What you mean by "night fighting the pipeline the whole time"?
 
@sworoc In terms of selectors, sure. But I honestly don't find simple traversal that much of an issue. children, siblings, and parents aren't that tough, though attributes, etc. are definitely an issue.
 
What what are peoples preferences between Mootools, Scriptaculous, and jQuery? It'd be interesting to hear peoples takes.
 
I used to use straight JS, back before frameworks were common. Man, that sucked. Ever tried actually using XML in XMLHttpRequests? The code looks so ugly. =|
 
@Denis - I have noooo idea how "night" popped in there
 
@Zarel Ooh, that's a definite plus
@Marc jQuery all the way, though I've never really looked at any others :-D
 
9:56 PM
@Marc I've only ever used jQuery and haven't ever had a situation that I wished it could do something else. jQuery can be used in very basic ways, and in very complex ways.
 
user243901
@NickCraver and by "fighting the pipeline the whole time"? :) my english isnt that good to understand this
 
@RyanKinal I don't really use a framework for anything non-DOM related, maybe I'm odd that way
 
@RyanKinal Well, you don't need any frameworks to use JSON. It was just back before people thought of using JSON. =/
 
@RyanKinal I used to use scriptaculous and it's pretty simple and easy but I do believe that the real power is all in jQuery.
 
@sworoc No, I definitely use straight JS for a lot of things, especially non-DOM
 
Ben
9:57 PM
JSON is pronounced like Jason doesn't it?
 
Those were the times, hacking your sites to work on IE5... I had all these hacks to make CSS behave the same way whether or not you had a broken box model.
@Ben That's how I pronounce it.
 
@path411 Agreed. I just entered the AJAX+jQuery world to scrape content. It's made life so much easier.
 
@Ben I pronounce it Jay-sahn
 
I'm with @path411 on this one
 
*But then I'm prob wrong
 
9:58 PM
@RyanKinal - jQuery here, or plain vanilla JS, it's whatever the situation calls for is most appropriate
 
On second thought, yeah, I pronounce it more like "JAY-sahn"
 
@path411 it's Jay-sahn to me too
 
yep me too
 
remember that with querySelectorAll() the selectors are much faster in newer browsers
 
When I said "That's how I pronounce it", I more meant "I don't pronouce it jay-ess-oh-en"
 
9:58 PM
i still tend to use plain JS quite a bit when I only need minor functionality, saves a bit on the download size
 
@Zarel haha
 
When I got my job 6 months ago, I wrote a lightbox in pure JS... fades and everything. It was FUN (and I'm being serious, lol)
 
@RyanKinal does it work in ie6?
 
yep :-D
 
=P
 
10:00 PM
@RyanKinal Oh, believe me, I agree, going "lower level" is always fun. It's just not time-efficient.
 
@Zarel True... I could have done the same thing in the time it takes to download a file, lol
 
@Denis By fighting I mean the pipeline wants to do certain things in a certain order, usually unsuitable for complex scenarios, I mean look at this: msdn.microsoft.com/en-us/library/ms178472.aspx
 
It depends on what I'm doing, if I'm doing something that I know will be iterated a lot on a page, I'll go native even with jQuery on the page.
 
Kind of like C. It's really fun to write code in, until you actually have to do something.
 
the pipeline event structure has gotten to be absurdly overweight, the MVC model is much simpler, and when you want to render as lightweight of a page as possible, it's a dream compared to webforms
 
10:01 PM
@Zarel hehe
 
Anyone else have their own take between jQuery, Mootools, and (but not limited to) Scriptaculous?
 
*A lot of times native js is a lot faster for simple tasks.
 
Native JS is always faster, it just may be much more verbose
 
@Marc I haven't weighed in yet, but I should point out jQuery is, as far as I know, the most popular, which means it gets more development, which means it's faster and all that.
@NickCraver What if you tried to compile jQuery into native JS?
I wonder if anyone's tried to do that.
 
@Zarel True that.
 
10:04 PM
@NickCraver I haven't heard of querySelectorAll() - is that what I hope it is?
 
@RyanKinal Yes.
 
@Zarel is is native JS, it's just more of it....so I don't follow?
 
@RyanKinal Ok about the whole creating your own lightbox... I did the same thing a couple months ago and it was so awesome to create something from scratch and easier than I had imagined. Especially using TextMate, of course.
 
@RyanKinal Assuming you hope it is a function that returns an array of elements that match the CSS selector that was passed in.
 
@RyanKinal yup, it takes any selector and grabs the result, newer browsers implement it, the Sizzle included in jQuery 1.4.3 switched to using it if available: blog.jquery.com/2010/10/16/jquery-143-released
 
10:06 PM
@NickCraver Well, by "compile" I mean "inlining" and "optimizing" and all that.
 
... that is amazing
 
@RyanKinal I know!
 
@Zarel - I'd like to think the library should already do that, you're talking about inlining a particular usage case of a function, and that's a different activity, but most browsers already do that...it's the job of the JIT compiler
the same reason with has such poor performance on a tracing engine
 
I can't wait to play with querySelectorAll()
 
I won't be playing with it, as much as just having faster jQuery speed.
 
10:08 PM
So, how does it work? Does it depend on the browser's CSS engine, or is it separate?
 
yes, it's a browser native function
 
@Zarel So then can you do an .each on the elements?
@Zarel Sorry that was supposed to go to @RyanKinal
@RyanKinal So then can you do an .each on the elements?
 
@NickCraver I realize it's a native function, but I guess I'm looking for confirmation that within a given browser, it will select exactly the same as CSS, or whether there are differences. "I don't know" is an okay answer by me.
@Marc I'm not sure what you mean
 
@Marc Assuming that it returns a nodelist, you can iterate through it like a normal array with a for loop
 
@RyanKinal Like once you get all the elements from the given page... can you do some sort of "for each... do...". Sorry if that doesn't make sense. Not sure how to explain it.
 
10:13 PM
@Marc Like @YiJiang said, you can presumable iterate over it normally. I haven't actually used it yet.
 
Ben
Should a dev care about non JS enabled users nowdays?
 
@RyanKinal there aren't supposed to be any differences no
 
@RyanKinal So like: $('element').each(function() {..do stuff...});
 
@NickCraver Understood :-D
 
@RyanKinal That's awesome.
 
10:14 PM
@Marc Well yeah, that's just jQuery
 
Is this the room we get sent to if we've been naughty
 
@Ben That's a can of worms if I've ever heard one.
 
@RyanKinal Yeah. Sorry, I know there is just so much out there that can be done with jQuery and I've only been messing with it for the past few months.
 
@RyanKinal no kidding, I refuse to answer that question :)
 
@Ben Really, though, it depends on your target audience. If you're looking at mobile users, you should probably worry about non-JS browsers. If you're going desktop, well... a lot of geeks will have scripts turned off. Most users (IMO) will have it turned on.
My company blatantly requires JavaScript. It's just something that is necessary for online education.
 
10:17 PM
SO doesn't work with JS turned off, for the most part :)
 
Ben
I was thinking about doing a mobile web app 100% relying on JS
 
@NickCraver Really? I didn't know.
 
I can't believe I never got an SO account until recently. Every time I googled something, I'd eventually come upon an SO thread about it, and I'd read it, but I never browsed the site.
 
@Ben If you're only targeting smartphones, sure.
 
Of course, then you have to worry about JS-generated content and SEO.
 
10:18 PM
Now I dunno how I ever lived without it!
 
My company uses DotNetNuke to host our applications (no comment there), and it uses JS for its purposes. Thankfully, that lets me force it for my work.
 
Ben
@Zarel anything with an internet connection and a gps
 
Ehh. Some of my dev team run NoScript. It gets annoying at times.
@Ben Oh, that sounds reasonably safe.
 
Ben
hahaha
 
@Zarel @Ben Agreed. The GPS kind of makes sure it's reasonably advanced (though you can never really be sure... unless you're PPK)
Speaking of PPK, though, he's been doing a lot of mobile research, and if you're in the mobile market, you should really be reading quirksmode
 
10:23 PM
Speaking of PPK, I used to read quirksmode in great detail. Then, there was jQuery, and then I stopped caring. Heh.
I already have most of the important IE6/IE7 bugs memorized, anyway.
 
lol
Indeed
 
hasLayout was the most recent one I learned.
 
Ugh. hasLayout causes so much ridiculous trouble
 
No kidding. It didn't help that I never found a site that mentioned it until after I started hitting hasLayout bugs.
 
Well, that's when you start looking, I guess
 
10:26 PM
Yeah, but I had a habit of reading sites like wrongWithIe and quirksmode to prevent that kind of thing. =/
 
Ah
Man... I will have to stay off of this at work. It would be bad news.
 
It's not that bad so far :)
 
hehe
Yeah, I think SO itself might be worse
 
ugh. i hate the lack of support for mobile web development :(
 
But this is more "active"
 
10:31 PM
@tpae - been that way for years, let the mobile quite mature a bit
 
I have learned all sorts of things that I have no need to know about mobile just by reading PPK
 
@RyanKinal - same here, except on SO
 
What kinds of JS blogs do people read/write? I'm looking for some more...
lastPost.replace("kinds of", "") + " Or web dev blogs in general."
 
sorry Ryan, can't say I hit the blogs.... just to give you a worthless response :)
Scott Gu has some great stuff for .Net
 
@sworoc 'sall good :-D
I've seen Scott Gu mentioned... maybe it was in the chaos of the big vulnerability last month. The encryption oracle, or whatever it was.
 
10:38 PM
yes, that is accurate
 
Ben
what's the status of jquery support in mobiles, anyone knows?
 
Ben
interesting, thanks
 
is this a proper room to ask a jQuery question?
 
yes
what's up?
 
10:50 PM

jQuery

All things jQuery
But nobody's ever there. Here is probably your best bet
 
"The last message was posted 4 hours ago."
Heh, apparently all the cool people hang out here.
 
hah I didn't see there's a jQuery channel
 
i'm trying to iterate through some JSON. i'm using $.parseJSON to turn the string into a JSON object. Not sure best way to do it. I was trying obj = $.parseJSON(str); alert(obj.length); and i'm getting undefined
 
what is typeof(str) ?
just to make sure it is a string
 
yea it's text() property of a div, verified correctly formatted JSON
 
10:52 PM
@jon3laze - it won't have a length, you need a $.each() or for in loop to enumerate over the object
 
awesome! thanks
 
@NickCraver If you go to All Rooms and filter by jQuery, there are 4 :-o. Dunno why or how.
 
e.g. for(var prop in obj) { if (obj.hasOwnProperty(prop) { /* use obj[prop] /* } }
or $.each(obj, function() { /* use this */ });
 
$.each is cooler, if you're into being hip
 
@NickCraver perfect, that's what I was looking for. thanks muchos
 
10:54 PM
np
 
Did somebody say they're using ExtJS here?
 
I didn't say it out loud, but I am using it
 
Do you use the module pattern for developement?
 
I have inherited some code that does use it, my latest code does not.
Are you having problems with it, or wondering if you should use it?
 
I've built a pretty complex grid (linked combo boxes with conditional filtering as cell editors), using all sorts of events to make it work. I'm a little worried to move it to a module pattern ...
In my experience so far, sometimes you can subclass your app too much and then have to deal with all sorts of passing references issues that wouldn't be there in a long code block.
 
11:01 PM
that can be a drawback, yes
Generally, I try to use ExtJS in the most simple way possible
if you've got something that is working well, I wouldn't change to the module pattern unless there is a clear reason to do so
That being said, it can work just fine if that's what you need / want to do
 
That's what I needed to hear.... thanks.
 
no problem :)
 
Can I hit you with one more question?
 
sure
 
I'm making a two-panel thing, a list (with template) on the left, grid on the right. Similar to "departments" on left, "employees in selected dep." on right
in order to add a department, there's a ton of conditional stuff that will require a form showing dropdowns depending on selected values so far
I'm not sure how to approach the dropdowns - how raw-javascript to go.
 
11:05 PM
sure, I can follow you so far
 
For instance, you click a radio button and I need to show a different combo depending on choice
is there a "extjs" way to do this?
 
as far as a formpanel, that is the sort of thing to use
 
yeah, ok, I have that working already ... now how would I show (not just filter the store feeding it) another dropdown after the choice has been made in the first?
 
you should be able to hide and show individual combos depending on which you need
 
this is probably super basic ... I'm thinking there's something in Ext.core for this - it's just I'm not sure how these extjs components are in terms of Dom elements. I can hide a div with a html combobox - how do I hide a ExtJS combobox?
 
11:10 PM
ComboBox has both hide and show methods, so you just need a reference to the ComboBox instance
do you have some code I can use for specific references?
 
Ah! So it's like with the window, just hide and show ... duh, why didn't I think of this. It's just - I'm having trouble letting go od the old dom-manipulation way of doing this.
 
sure, it's definitely a different way of thinking
 
Actually, the problem I'm having with ExtJS is that it does so much for me - I'm continually going "Really, you did ALL THIS for me?" Brilliant library, really.
 
ExtJS likes to "protect" the DOM from you
you just need to keep a reference to the Ext objects to manipulate them, which is different than going and looking up a DOM object on demand
 
How long have you been using it?
 
11:14 PM
I started using it about a year and a half ago
definitely slick for grids, dialogs, "business" interfaces
 
I've tried Flex, gave it a month and was utterly disappointed. And I've been doing AS3 OOP for years.
Here comes ExtJS and everything is so well done and rock solid...
 
Yeah, this is definitely a new world. There will be highs and lows to Ext
 
What are some lows?
 
like I said, it's harder to get down to the HTML element level
we use jQueryUI for some more "custom" / element level UI manipulation
Ext is more of a panel / grid, slick object in a box type of product
 
Do you use the jQuery adapter then? You loose ExtJS core then, right?
 
11:17 PM
We actually have both in our environment, which can get a little confusing
 
You mean you can load both adapters and use them at the same time?
 
I suggest trying to stick with ExtJS anytime that you can, if you don't need more control
we haven't had problems with using them in the same page / script, but you may find quirks that we didn't run across
 
Yeah, I have a mingblowingly complex db app to create, I'm soaking up everything ExtJS can give me. For instance, creating an api with CRUD is spectacular. Even most desktop SQL clients don't have datastores (DBVisualizer is the only one I know of).
 
Sure, it is great for things like that
 
It's funny how I was able to create the complex grid I mentioned before with CRUD, conditional dropboxes, renderers etc, but now I'm stuck at this simple form. It's like writer's block, really...
I can now appreciate how hard it is for beginners in php/as3/sql for instance - the struggles you have until you get a "way of doing things".
 
11:21 PM
Yep, just take a look at the API, try to get references to the elements, and it starts to sink in. Once you get a handle on how it is setup, it can be a great tool for developing a slick interface quickly
You kind of have to "step into the mind" of the developer
 
The API is great, I have it opened all the time. But it is true - MUCH more people would be using ExtJS if it just had more examples and gentler tutorials.
 
can anyone answer questions regarding jquery mobile?
 
On that note, I have to head home... wife is calling that dinner is getting cold. Best of luck with ExtJS!
 
Thank you! Bon appetit.
 
Hi guys... quick question can you have $(window).load(function{}); inside another function? e.g when someone clicks a link it calls a function which contains window load
 
11:32 PM
@Starlin Yes. It will either wait for the onload event or run immediately if the window is already loaded.
 
@Starlin - no you cannot, if the onload event has already run, your handler won't run.
@RyanKinal - You're thinking of `document.ready`which does behave that way
 
@NickCraver Huh... I was unaware. Thanks for the tip.
 

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