How to include javascript file in another just like PHP’s include
With PHP, it’s easy to include PHP codes from another PHP file, However, JavaScript doesn’t come with an inherent solution to this problem. But you can simulate an include by doing this:
document.write(<script type=”text/javascript” src=”/scripts/tobeincluded.js”></script>);
Local Yoga School
We are currently in the process of building and creating an online prescience for a Local Yoga Instructor. The Briefing was simple and straight forward, to give the business an online identity this included a custom built website that was to be deeply integrated with a new Facebook business page. The client wanted to be able to post status updates, offers and imagery to her Facebook page and have it automatically transferred to her website.
This was suggested so that both potential and existing clients that do not have Facebook don’t miss out on any important information or the all-important offers that are posted through Facebook.
How to Force Internet Explorer 9 / IE9
When working on a website application today that was going to be viewed via “Internet Explorer” I realise that some of the content didn’t display in the way that it should have. Upon further investigation I discovered that even thou I had the latest version or IE installed it was rolling back to view in in IE 8.
To fix this issue I included a force script to force the browser when possible to view it in IE 9.
<meta http-equiv="X-UA-Compatible" content="IE=9" />
Ipad 3 launch
Tomorrow millions will log on to the apple website so see the arrival of the next generation in tablet computers the iPad 3. This will be Apples new Chief Executive Officers Tim Cooks first ipad launch without the aid of former ceo Steve Jobs. As with most new Apple releases there has been a massive amount of rumours regarding the iPad 3. The truth is that only a select few will know what is going to be revealed to the world tomorrow.
All we can be certain of is that it will come beautifully packed, designed and presented. As for features and design, I presume it will have an updated front facing and rear camera. A new crystal clear display and feature the unique selling point of the iPhone 4s SIRI.
But like any Apple product we will just have to wait and see.
Css class not working when name begins with numbers
I found out somthing quite starnge today that i didn’t know about CSS, Similar to ids, you can’t start a CSS class name with numbers.
Well that’s not totally true you can but you need to use unicode escape codes in your CSS properties for the first number.
For example,
<div class="404"> Insert Div Content Here </div>
would translate to this in CSS:
.34 04 {
Insert Style Here
}
Number 4′s UTF- 8 Code is \34, this is then followed by a space (this will be ignored when interpreted) to let the engine know that it is the end of the code then continued by the rest of characters, for the above example class it would be 04 thus giving us the full class name of: .\34 04.
There are a number of free online tools that can help generate the “UTF-8 Code” such as:
http://rishida.net/tools/conversion/
Simply type the number in the first box, hit convert, and ensure that you check the “UTF-8 code units” box.
Changes
As you can properly see our website is undergoing some changes, both with the front-end and back-end getting a major overhaul.
We will be now be using “WordPress” to manage our well over due blog and are keen to exploit WordPress to its full potentail.


