In some cases, like when you are accessing an external php file through an ajax call, it is necessary to load the Joomla framework inside that file. Loading the framework will ensure that you can use the Joomla classes and methods in the external file.
In php you can emulate an ajax request by inserting a proper header. With this header you can prevent users from directly accessing php pages that are meant only for ajax calls.
When you are designing a website, in some cases you will find your self in a situation where the width of a div element must be dynamically resized taking into account the static width of another div element.
With this simple php script you can remove any specified words from a string. This is very useful when you need to filter input to strip forbidden words.
With the jQuery Form Plugin you can easily clear the form elements by clicking on a button and empty all text, password, textarea, select, radio and checkbox inputs.
In Joomla you can insert an iframe inside the component area using the wrapper component. You can also set the iframe height when you create the wrapper menu item however you must insert a specific value for the height. So what can you do if…