[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-18 Thread Nazgulled
I really wanted some thought on this from you people, cause you understand of this more than I do... On Feb 18, 1:54 am, Nazgulled [EMAIL PROTECTED] wrote: After lots of google searching and reading this and then, I created a little function like this: function includeScript(scriptName) {

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-17 Thread Nazgulled
After lots of google searching and reading this and then, I created a little function like this: function includeScript(scriptName) { // Change requests to be sent synchronous $.ajaxSetup({ async: false }); // Loads and executes a local JavaScript file

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-16 Thread Scott González
Read the documentation for jQuery.getScript(); it does exactly what you want. On Feb 15, 12:12 pm, Nazgulled [EMAIL PROTECTED] wrote: Hi, I make good use of various jQuery plugins that are available, however, I don't like the idea of having the head tag of the page filled with script tags

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-16 Thread Strija
Try this http://docs.jquery.com/Ajax/jQuery.getScript

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-16 Thread Tony
You can try the on-demand plugin: http://www.creativit.com.br/jquery/ondemand_js/index.htm --Tony

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-16 Thread Nazgulled
Now you guys got me confused... Now I have getScript and the On-Demand plugin... which one is better? Which one suits better what I want to do? (explained on the first post) Though, I liked how the On-Demand was capable of loading css on run- time too and that might prove useful when and if,

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-15 Thread Jamie
Hey, I do something similar, I move all my includes to my page JS file. I also have a common JS file that all pages include (each page includes the jQuery.js file, my global.js file, and the page's js file in the head). In my global.js, I have the following function: function includeJs(file) {

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-15 Thread Nazgulled
I thought I had done that (some time ago) and just recently it stopped working. Does that code works cross-browser and cross-os? At least the most common ones... On Feb 15, 5:49 pm, Jamie [EMAIL PROTECTED] wrote: Hey, I do something similar, I move all my includes to my page JS file. I also

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-15 Thread Iair Salem
I'm not sure, but in some safari versions (maybe v2.0) you have to wait some time before using the code included, because it could not be completely loaded yet. does someone have any better way to acomplish that in a cross-browser fashion? Iair. On Feb 15, 3:49 pm, Jamie [EMAIL PROTECTED]

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-15 Thread Jamie
To be honest, I only dev on Windows in IE 6.. It's an internal web site so we get to force certain client elements :) On Feb 15, 3:03 pm, Nazgulled [EMAIL PROTECTED] wrote: I thought I had done that (some time ago) and just recently it stopped working. Does that code works cross-browser and

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-15 Thread Nazgulled
I'll have to test it out one more time using your code and see what happens... Thanks. If anyone else as any other ideas... On Feb 15, 11:33 pm, Jamie [EMAIL PROTECTED] wrote: To be honest, I only dev on Windows in IE 6.. It's an internal web site so we get to force certain client elements :)