[jQuery] On-Demand Javascript?

2006-09-05 Thread Rey Bango
I was reading this article on Ajaxian: http://ajaxian.com/archives/prototype-extension-dynamic-script-pattern-support which discusses Dynamic Script Pattern or On-Demand Javascript. I think this is a VERY cool feature. Does Jquery support something like this? What are the pros and cons of

Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Christof Donat
Hi, which discusses Dynamic Script Pattern or On-Demand Javascript. I think this is a VERY cool feature. Does Jquery support something like this? I wouldn't put it into jQuery itsself, because then you would need to load jQuery before you can use the dynamic Script loading. I have developed

Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Dan Atkinson
Christof, While I agree with your cons in theory, a couple of them can be discounted. Christof Donat wrote: - either you need to do synchronous loading like JSON does or you need to work with callbacks as I do. Synchronous loading blocks the browser, callbacks are not understood by

Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Dan Atkinson
Christof, Thanks for the clarification. Dan Christof Donat wrote: Hi, Christof Donat wrote: - either you need to do synchronous loading like JSON does or you need to work with callbacks as I do. Synchronous loading blocks the browser, callbacks are not understood by everyone.

Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Rey Bango
Christof, Can you show how you modified the JQuery library to generate the package-object? Code? Rey... Christof Donat wrote: Hi, So from the docs, this looks like its library agnostic correct (ie: not dependent on JQuery)? Yes, that is tue. I use it to load jQuery. You need to

Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Stephen Howard
Well, as I've put it down below, this isn't really an issue of code purity (although I'm sure that bugs me too). What I was trying to say was that it is an issue of readability. At least to me, seeing $ in my javascript code indicates DOM manipulation. So my preference is to make anything

Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Stephen Howard
this, without touching DOM, FX or AJAX at all. I therefore vote to integrate an On-Demand Javascript facility into jQuery. -- Jörn ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss

Re: [jQuery] On-Demand Javascript?

2006-09-05 Thread Christof Donat
Hi, For example, Christof's scriptloader could use jQ's ajax code, or could merge with it. That is something that won't happen. I whanted it to be as small as possible. I felt that the JSAN core had to many functions that are not necessary for the basic functionalitiy of resolving