Welcome Guest, Not a member yet? Register   Sign In
New Codeigniter Screencasts
#11

[eluser]jdfwarrior[/eluser]
Very nice. Watching them now.. I was actually just telling someone the other day that I may do the exact same thing because of the large number of people that come in here asking the same thing on a day to day basis. Wanted to give something back. You've now killed that for me Smile haha jk, good work.
#12

[eluser]jdfwarrior[/eluser]
Have come up with a question though concerning the jQuery screencasts and such. On the first video, you show how to load the Google API and then using the Google API to load jQuery. Is there a reason to load it that was as opposed to just taking the path that is provided in the Google API page and just loading it using the script tag like you would any other javascript file? For example:

Code:
script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"

Obviously that should have angle brackets around it. Are there any advantages to loading you way as opposed to doing it that way?
#13

[eluser]OES[/eluser]
@jdfwarrior As per the cast suggests. There are a few reason why you may want to use googles API. Easy to update / change JQ Version. Reduce Bandwith, And they will be cached for quicker loading. And you can add multiple APIs in one JS call.

:-).
#14

[eluser]jdfwarrior[/eluser]
[quote author="jdfwarrior" date="1244926621"]
Code:
script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"
[/quote]

How is changing the version number in that file name so much more difficult than changing it in the API's function call? Using the API is essentially doing the same thing. Thats a difference in either using functionality thats built in, or building another function that uses the function that's built in. Using multiple API's I can understand, but other than that, are there any advantages?

I'm not saying your way is wrong. I'm simply asking if there are any advantages to loading the Google API to do it, when the code above does the exact same thing. Still cached, still reducing bandwidth, etc.
#15

[eluser]OES[/eluser]
He tasking me on this one :-).

Ok how about this.

If I am using googles API when lets say jQuery brings out a new version you tell me which one is better.

1. - Download File
- Unzip
- Upload
- Adjust Header & Upload
2. Adjust Header & Upload

Also keeping your file system more clean. IE less redundant files.

Seem like a no brainer to me.

For me its just a win win situation.
#16

[eluser]Dam1an[/eluser]
you could download it straight to the server (via ssh) and unzip it there Tongue (and if you really want, you could do this with a script lol
Also, I've known of people saying there can sometimes be a few seconds delay when getting jQuery off Google
#17

[eluser]jdfwarrior[/eluser]
Are you looking at the url to the jquery file im linking to? That is hosted by Google. I'm not downloading and unzipping or uploading anything. I use a script tag that links directly to the same file you do. Its hosted at googleapis.com. So, no files on the system. Not loading the google api AND jquery. I'm only loading one file instead of two. Seems like a no brainer to me. Smile
#18

[eluser]OES[/eluser]
OK fair snuff. But not all clients have SSH access.

Speed of course it can be issue no mistake their. But were talking google :-).

Its all a matter of taste. :-)
#19

[eluser]sl3dg3hamm3r[/eluser]
Nice casts! Is there actually already something like a wiki which collects all available casts, sorted into topics, about CI? I'd love to see that.
#20

[eluser]HaRbY.me[/eluser]
Hey OES, very nice work Smile Congrats Smile I am waiting the "multiple flash upload and CI" screencart.. I am just kidding... Smile Keep up the good work dude Smile




Theme © iAndrew 2016 - Forum software by © MyBB