07.16.2010
The big players on the Internet offer a good possibility to include well known JavaScript libraries in your own websites. There is no need for a own webspace. This is an example to load jQuery and jQuery UI with the basic theme from Google CDN. <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" [...]
07.06.2010
Your own scope or execution context in Javascript is important to avoid conflicts with instanced objects and variable names. var myVar=' - context0', toTitle = function(txt){ document.title+=txt; }; (function(){ var myVar=' - context1'; toTitle(myVar); })(); (function(){ var myVar=' - context2'; toTitle(myVar); })(); toTitle(myVar); Take a look at the page title to see how this example [...]
07.05.2010
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <script type="text/javascript" language="javascript" src="http://code.jquery.com/jquery-1.4.2.min.js" ></script> <script type="text/javascript" language="javascript"> var _yourCode = 0 </script> </head> <body> <form id="form1"></form> </body> </html> jQuery kickStart Download | jQuery UI and CSS improved version!