How to stop a webpage from auto refreshing constantly
There’re a few questions related to this matter I received today from my clients. Some of them have tried “break;” and “window.stop();” and “pause();” and “window.location.reload(false);”, … you name it; however, non of them works. There’s a trick to reload a webpage once and stop the webpage from auto-refreshing itself. At the end of the URL, add the pound sign like this # in the Get or Post URL. Then when you retrieve the value by GET/POST variables, remember to remove the # sign by…
How to use dynamic text in an html/htm page
Whether you have a Joomla, WordPress, or E-commerce website, updating the copyright year on your website may not be a legal requirement, but it’s a smart marketing method to prove that your business is active. Showing the year is especially important if you have a site without dates on its content. There’re many ways you can automatically refresh the copyright year by inserting a simple JavaScript or php script (see below) into your website’s html code, or you can manually change the year in the…
How to read a .diff file when you purchase an X-Cart module
Diff is a comparison utility that’s very useful when you upgrade or modify your web application pages. If you notice carefully, there’re some modules that come with readme.txt and patch.diff files. Open the .diff file in a notepad or Notepad++ (better), you can see each line in different colors for different purposes, meaning, & usage. *** /path/to/original_file ”server_timestamp” — /path/to/new_file ”server_timestamp” @@ -l,s +l,s @@ optional section heading Here’s the explanation of the .diff file:
How to add a new static page in X-Cart
Sometimes you’ll need to add a new static page for your X-Cart store/e-commerce website such as Terms and Conditions, How It Works, more info,… so this is not so difficult to execute. Step 1: Login to store Admin Step 2: Click on “Static Pages” menu under Administrator, click on Add new button to add a new page. Give the page a title, and page filename. You can also enable or disable the page here. Step 3: Input some page contents or html codes in the…
How to add a new menu item for X-Cart website
Login to the store Admin, you’ll find “Speed Bar” menu under Administration category. Define the link title and the URL that links to that menu item. Remember to check Active checkbox for that new menu item. For the URL, you can point to an external URL such as http://www.google.com, or you can link it to a static webpage on your website such as Terms & Conditions, or Privacy Policy, or How it works.