<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3844742090076720210</id><updated>2024-08-27T23:29:31.989-07:00</updated><title type='text'>Aashish Goes Blogging</title><subtitle type='html'>This Blog is my sincere effort of transforming my IT industry experience so far (this includes my +ve achievements &amp;amp; failures too) in to a productive &amp;amp; efficient knowledge base for all IT individuals of this WEB.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aashish-sonawane.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3844742090076720210/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://aashish-sonawane.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Aashish S</name><uri>http://www.blogger.com/profile/03784096030612082925</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3844742090076720210.post-7010866078735290647</id><published>2011-01-25T00:52:00.000-08:00</published><updated>2011-01-25T04:04:19.667-08:00</updated><title type='text'>Joomla! 1.5 Template Structure</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;Developing &amp;amp; Configuring a new customized Joomla Based template for a site&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt; &lt;br /&gt;
&lt;div style=&quot;font-weight: normal; margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-weight: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;A template provides an interface to withhold overall look &amp;amp; styles of a site. Site components/modules/css styles are all together embedded &amp;amp; displayed in a template.&lt;/span&gt;&lt;/div&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;While developing templates for Joomla! sites, following should be a basic folder structure with below mentioned files:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;css&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;images&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;javascript&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;/li&gt;
&lt;/ul&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;CSS&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;In the css directory there are several .css files. Please note the names of each file and the order it is listed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;This is what should be contained within each file:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;template_joomla.css:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt; These are the default styles for Joomla and its components. It has been stripped down to prevent most of the other styles from overlapping.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;template_global.css&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;: These are the styles for the whole site. This should include the header, body or main content area, left and/or right columns, and the footer. Menu containers should be listed in this CSS, but the actual menu styles will be contained in a different CSS. Other tags that should be listed in this style sheet are: H tags, p tags, ul, ol, and li tags, and main a and a:hover tags. &lt;/span&gt; &lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;template_menu.css:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt; These are the styles for all the menus. Please keep them separated by comment tags listing which menu they belong to, this is handy when we are working with a site that has many menus and submenus.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;template_pages.css:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt; These are the styles that are specific to a certain page. For example if there is a table set up for a contact us page, you would add the styles specific to that page in this stylesheet. Please indicate which page(s) a group of styles belongs to with comment tags.&lt;/span&gt; &lt;/div&gt;&lt;div style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;Images&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;The images folder should contain all images called out in the above stylesheets and that are listed within the template.xml file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;Javascript&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;All .js files that are used on the index.php file should be kept in this folder. This includes the file for the menu dropdowns.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;Other Files&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;index.php:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt; The index.php used for layout of the website. This is your actual template file. This contains the Joomla code for the position locations, the main layout divs, and the usual items found in a .dwt file or other template file. &lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;template.xml:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt; This file contains all files, images and positions that are included in the template zip file uploaded to Joomla. If you want the file or position to show up properly in Joomla, it must be listed in this file.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;favicon.ico:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt; This is a unique part of the logo that is used for the website favicon. &lt;/span&gt; &lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;READ-ME.txt:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt; This file contains notes about the template. You can add to this file if needed, but it does not need to be included in the template, or the template.xml.&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-weight: normal; margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;b&gt;Notes:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;
1) The css files &amp;amp; HTML template files should be properly validated using the below mentioned tools, this would ensure to keep rate of browser compatibility issues to minimum level &amp;amp; also would make our template W3C compliant:&lt;br /&gt;
For HTLM Validation: http://validator.w3.org/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;For CSS Validation: &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: navy; font-size: small;&quot;&gt;&lt;span lang=&quot;zxx&quot;&gt;&lt;u&gt;&lt;a href=&quot;http://jigsaw.w3.org/css-validator/&quot;&gt;&lt;span style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;http://jigsaw.w3.org/css-validator/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;br /&gt;
2)  Template should display identical output on all major browsers such as – IE (6,7,8); Mozilla Firefox (2,3)[Windows/Mac]; Safari[Windows/Mac], Chrome etc.&lt;br /&gt;
3) IE 6 specific browser related issues such as PNG transparency issue &amp;amp; extra margin, spacing issue must be fixed.&lt;br /&gt;
4) Please use a standard web images format such as gif/jpg/png.&lt;br /&gt;
5) HTML templates for the site&#39;s should most preferably be developed using table-less design structure i.e by using CSS-based layouts instead on table-based layouts.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-weight: normal; margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aashish-sonawane.blogspot.com/feeds/7010866078735290647/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aashish-sonawane.blogspot.com/2011/01/joomla-15-template-structure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3844742090076720210/posts/default/7010866078735290647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3844742090076720210/posts/default/7010866078735290647'/><link rel='alternate' type='text/html' href='http://aashish-sonawane.blogspot.com/2011/01/joomla-15-template-structure.html' title='Joomla! 1.5 Template Structure'/><author><name>Aashish S</name><uri>http://www.blogger.com/profile/03784096030612082925</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3844742090076720210.post-4542679021376928063</id><published>2011-01-13T03:48:00.000-08:00</published><updated>2011-01-13T03:48:54.837-08:00</updated><title type='text'>JavaScript Error Handling</title><content type='html'>&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;JavaScript allows developers to deal with error handling with the help of following two constructs:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;ol style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;try/catch block&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;onError event&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Basically developers need to use error handling concept in code structure simply because end users of your application may get confused or may be irritated to see alert boxes with errors and in such case user often leave the Web page. And so error handling plays a vital role in such scenarios.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Now we will learn about constructs of error handling in JavaScript mentioned above.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;try/catch block:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;--&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Syntax:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;try {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;//Executable script&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;catch (errorObject) {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;//Error handler&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;finally {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;//Code to execute all the time,irrespective of error occurrence.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;--&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The try block contains the code to be run, and the catch block contains the code to be executed if an error occurs. Whenever an error occurs while processing code present in try block, it will hand it over to catch block for executing the code present in it. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;onError event:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;--&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Syntax:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;window.onerror=function(){&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;//code to run when error has occured on page&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;--&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&#39;onerror&#39; event is fired at the moment JavaScript error occurs in a script. So as a habit of good conduct it is always advisable to place code &#39;onerror&#39; event at the top of the page so that all JavaScript errors can be successfully intercepted.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aashish-sonawane.blogspot.com/feeds/4542679021376928063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aashish-sonawane.blogspot.com/2011/01/javascript-error-handling.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3844742090076720210/posts/default/4542679021376928063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3844742090076720210/posts/default/4542679021376928063'/><link rel='alternate' type='text/html' href='http://aashish-sonawane.blogspot.com/2011/01/javascript-error-handling.html' title='JavaScript Error Handling'/><author><name>Aashish S</name><uri>http://www.blogger.com/profile/03784096030612082925</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3844742090076720210.post-6681525361152907935</id><published>2010-08-09T23:28:00.000-07:00</published><updated>2010-10-25T02:34:25.245-07:00</updated><title type='text'>Joomla 1.5 Website Server Transfer</title><content type='html'>&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;i&gt;The document here comprises of &lt;/i&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;i&gt;few instant tips &amp;amp; methods to be used as guideline to be followed while transferring a Joomla 1.5.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;In case you want to shift an old existing site from old hosting server to a new server, then making a new fresh installation is not always a wisest &amp;amp; feasible thing. Because then again you will have to spend considerable amount of time installing &amp;amp; configuring all the components and modules. Moreover the content data will again have to filled up. So precisely this process may take much more time &amp;amp; would lead to a messy situation.&lt;br /&gt;
&lt;br /&gt;
Although this process is not as difficult as it may seem to you all, however if you have less experience dealing with server related stuff, then this process has to be done very carefully. And still you have confusion or doubts with the process so it is highly recommended to escalate this task to a professional.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;Illustration:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
To try &amp;amp; make understand you the process in details we will consider &amp;amp; scenario of shifting a domain called &#39;mytestjoomla.com&#39; to it&#39;s new hosting server.&lt;br /&gt;
So now presuming you are all set up for shifting your site, please find the procedure enlisted below:&lt;/span&gt;&lt;br /&gt;
&lt;h3 class=&quot;western&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Procedure 1: Data Backup:&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
First &amp;amp; foremost thing is to take backup of the data of your website of your local hard drive. Backup can be taken using shell command if you have root access of the server or by simply using any FTP client application.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;Illustration:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
Connect to your old site server using FTP client, and then download all the Joomla based files &amp;amp; folders to your local hard drive. Suppose all the Joomla files of your site are in &#39;myJoomla&#39; folder of your site then download the data from &#39;myJoomla&#39; folder of server to a back up folder (say myDownloadedFiles) on your local machine.&lt;br /&gt;
After downloading the data, I would suggest you to take backup of &#39;myDownloadedFiles&#39; folder as well.&lt;/span&gt;&lt;br /&gt;
&lt;h3 class=&quot;western&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Procedure 2: Export your database:&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
Now the second important step is to export the database files. If PHPMyAdmin is installed in your server, then this process would be an easy step. If not then you ma ask your hosting provider to either install PHPMyAdmin or any other relevant application preferred by you. Anyways considering that PHPMyAdmin is installed in your server, then using Export database functionality of PHPMyAdmin , you will have to execute a backup process for your database file in a SQL file format. Make sure that all the data is exported properly, don&#39;t try &amp;amp; export tables one by one.&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;Illustration:&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
Save your database files in a folder say &#39;myOldDatabase&#39; data folder of your local machine. &lt;/span&gt; &lt;br /&gt;
&lt;h3 class=&quot;western&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Procedure 3: Update configuration.php:&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
After completing the above task carefully, now go to the folder where the data had been downloaded. There you will find a file named &#39;configuration.php&#39;. This file would be in main folder (first level folder) of the site. After finding this file, open it in your preferred editor &amp;amp; change the following parameters:&lt;br /&gt;
&lt;br /&gt;
1) Change ABSOLUTE path.&lt;br /&gt;
2) Change CACHE path.&lt;br /&gt;
3) Change HOST.&lt;br /&gt;
4) Change DATABASE NAME.&lt;br /&gt;
5) Change DATABASE USERNAME.&lt;br /&gt;
6) Change DATABASE PASSWORD.&lt;/span&gt;&lt;br /&gt;
&lt;h3 class=&quot;western&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Procedure 4: Upload all of your files to your new server:&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
Now, Using an ftp application, upload all of your files from your local hard drive to new server location where you want to install Joomla!&lt;/span&gt;&lt;br /&gt;
&lt;h3 class=&quot;western&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Procedure 5: Import your database to your new MySQL server:&lt;/span&gt;&lt;/h3&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
Using PHPMyAdmin and the SQL file you generated in step 2, import your old database into your new database.&lt;br /&gt;
&lt;br /&gt;
And then import the previously exported SQL file (generated in Procedure 2) to your new database of new server. Again this can be done using PHPMyAdmin or through shell commands.&lt;/span&gt;&lt;br /&gt;
&lt;h3 class=&quot;western&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;Procedure 6: Test your new installation:&lt;/span&gt;&lt;/h3&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;br /&gt;
Finally after adding up database files, our task is almost done. Now your domain provider can point your domain to your new server. And your site, will show up on the new server. However please check the entire site &amp;amp; it&#39;s functionality first. &lt;/span&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;I&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;span style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;&lt;b&gt;f everything shows up well, then CONGRATULATIONS, you would be successful in this task.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aashish-sonawane.blogspot.com/feeds/6681525361152907935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aashish-sonawane.blogspot.com/2010/08/steps-to-transfer-joomla-15-website.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3844742090076720210/posts/default/6681525361152907935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3844742090076720210/posts/default/6681525361152907935'/><link rel='alternate' type='text/html' href='http://aashish-sonawane.blogspot.com/2010/08/steps-to-transfer-joomla-15-website.html' title='Joomla 1.5 Website Server Transfer'/><author><name>Aashish S</name><uri>http://www.blogger.com/profile/03784096030612082925</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3844742090076720210.post-5340057802442544736</id><published>2010-03-19T01:27:00.000-07:00</published><updated>2010-03-19T01:27:39.244-07:00</updated><title type='text'>Javascript Basics</title><content type='html'>&lt;div&gt;&lt;h2&gt;What  is JavaScript?&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;JavaScript was designed to add interactivity to HTML pages&lt;/li&gt;
&lt;li&gt;JavaScript is a scripting language&lt;/li&gt;
&lt;li&gt;A scripting language is a lightweight programming language &lt;/li&gt;
&lt;li&gt;A JavaScript consists of lines of executable computer code &lt;/li&gt;
&lt;li&gt;A JavaScript is usually embedded directly into HTML pages &lt;/li&gt;
&lt;li&gt;JavaScript is an interpreted language (means that scripts execute without preliminary compilation) &lt;/li&gt;
&lt;li&gt;Everyone can use JavaScript without purchasing a license &lt;/li&gt;
&lt;li value=&quot;1&quot;&gt;&lt;i&gt;this is a case sensitive scripting language&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;based on OOP paradigm of Programming Languages&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;JavaScript is used in millions of Web pages to improve the design, validate  forms, detect browsers, create cookies, and much more.&lt;br /&gt;
Since JavaScript is currently the only scripting language supported by  every major web browser (Internet Explorer, Firefox, Netscape,  Safari, Opera, Camino, etc), it is very widely used. &lt;i&gt;When code is  rendered by your web browser, like JavaScript usually is, it is  called a Client-Side script. &lt;/i&gt;JavaScript  can also be run on a web server to generate HTML documents, thus  running as a Server-Side script. &lt;i&gt;&quot;JavaScript cannot be a  standalone application instead it an Internet based application  embedded in a web page &amp;amp; executed on a JavaScript compatible  browser.&quot; Javascript is capable of manipulating data as well as &lt;/i&gt;&lt;i&gt;&lt;b&gt;Events {Event: any action on browser, e.g. OnmouseClick  etc.}. &lt;/b&gt;&lt;/i&gt;The  script is actually just some commands that the browser has to do.&lt;br /&gt;
&lt;h2&gt;What  can JavaScript do?&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;Provide Interactivity to HTML elements.&lt;/li&gt;
&lt;li&gt;A JavaScript can be used to validate form data before it is submitted to a server. This saves the server from extra processing.&lt;/li&gt;
&lt;li&gt;Can be used to read/write i.e change html element&#39;s data.&lt;/li&gt;
&lt;li&gt;Manipulate Events.&lt;/li&gt;
&lt;li&gt;Detect Browser so as to fire Browser specific code.&lt;/li&gt;
&lt;li&gt;A JavaScript can be used to store and retrieve information on the visitor&#39;s computer, this can be done with the help of Javascript Cookies.&lt;/li&gt;
&lt;li&gt;Provide dynamic functionality to a web site.&lt;/li&gt;
&lt;li&gt;Can develop Client-Side Script oriented or Server-Side Script Oriented Internet Applications.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;Toolset Required for JavaScript:&lt;/h2&gt;&lt;ul&gt;&lt;li&gt;Javascriptcompatible Browser.&lt;/li&gt;
&lt;li&gt;Any Editor e.g. Notepad, Editplus etc.&lt;/li&gt;
&lt;/ul&gt;&lt;h2&gt;Prerequisite  Knowledge Required:&lt;/h2&gt;Prior knowledge of HTML/XHTML is required as a prerequisite to the  knowledge of Javascript.&lt;br /&gt;
&lt;h2&gt;Syntax:&lt;/h2&gt;First,  we need to know how to add JavaScript to an HTML page. JavaScript can be added in one of two ways:&lt;br /&gt;
&lt;ol type=&quot;i&quot;&gt;&lt;li&gt;You can place Script tags in your webpage and place the JavaScript code inside of those.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script   type=&quot;text/javascript&quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
... block of code ....&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/script&amp;gt; &lt;/li&gt;
&lt;li&gt;You can place all of your JavaScript code in another file and link to it with a Script tag.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;scripts/YourJavaScriptFile.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/li&gt;
&lt;/ol&gt;&lt;b&gt;&amp;lt;script&amp;gt;...&amp;lt;/script&amp;gt;: &lt;/b&gt;Interprets to browser that some  sort of script is to be encountered.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Type=””: &lt;/b&gt;attribute of script element to  describe which scripting language to be used.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Src=”&amp;lt;path  of js file..&amp;gt;”:&lt;/b&gt; attribute  of script element to mention source path of .js file.&lt;br /&gt;
&lt;h2&gt;Commenting  Styles:&lt;/h2&gt;&lt;ol type=&quot;i&quot;&gt;&lt;li&gt;&amp;lt;!-- code to be commented - -&amp;gt;&lt;/li&gt;
&lt;li&gt;// code to be commented&lt;/li&gt;
&lt;li&gt;/* code to be commented */&lt;/li&gt;
&lt;/ol&gt;&lt;h2&gt;JavaScript  Where To ...:&lt;/h2&gt;You  can place an unlimited number of scripts in your document, so you can  have scripts in both the body and the head section.&lt;br /&gt;
&lt;h2&gt;JavaScript Blocks:&lt;/h2&gt;JavaScript statements can be grouped together in blocks. Blocks start with a  left curly bracket {, and ends with a right curly bracket }. The purpose of a block is to make the sequence of statements execute  together.&lt;br /&gt;
&lt;h2&gt;JavaScript  Statements:&lt;/h2&gt;A  JavaScript statements is a command to the browser. The purpose of the  command is to tell the browser what to do.&lt;br /&gt;
The  semicolon is optional (according to the JavaScript standard), and the  browser is supposed to interpret the end of the line as the end of  the statement. Because of this you will often see examples without  the semicolon at the end.&lt;br /&gt;
&lt;b&gt;Note:&lt;/b&gt; Using semicolons makes it possible to write multiple statements on  one line. &lt;br /&gt;
&lt;h2&gt;JavaScript  Variables:&lt;/h2&gt;As  with algebra, JavaScript variables are used to hold values or  expressions. A variable can have a short name, like x, or a more  describing name like length. A JavaScript variable can also hold a  text value like in carname=&quot;Volvo&quot;.&lt;br /&gt;
&lt;br /&gt;
Rules for JavaScript  variable names:&lt;br /&gt;
*  Variable names are case sensitive (y and Y are two different  variables)&lt;br /&gt;
*  Variable names must begin with a letter or the underscore character&lt;br /&gt;
&lt;b&gt;NOTE: &lt;/b&gt; Because JavaScript is case-sensitive, variable names are  case-sensitive.&lt;br /&gt;
Syntax  for Declaring (Creating) JavaScript Variables&lt;br /&gt;
&lt;b&gt;var  statement;&lt;br /&gt;
&lt;br /&gt;
More Details about JavaScript will be posted in my next article....&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aashish-sonawane.blogspot.com/feeds/5340057802442544736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aashish-sonawane.blogspot.com/2010/03/javascript-basics.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3844742090076720210/posts/default/5340057802442544736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3844742090076720210/posts/default/5340057802442544736'/><link rel='alternate' type='text/html' href='http://aashish-sonawane.blogspot.com/2010/03/javascript-basics.html' title='Javascript Basics'/><author><name>Aashish S</name><uri>http://www.blogger.com/profile/03784096030612082925</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>