|
Referencing a javascript file on a site via the masterpage turned out to be a bit more involved than I thought it should be.
I built a web template to roll out a branding feature which included uploading a javascript file into the style library folder. I then wanted to reference the javascript file in the masterpage. Relative URL's are not an option due to the fact that once you start delving into sub folders the links to the javascript file will break. And the alternative, putting in a reference to the sites base url, seemed to be impossible according to the lack of results via google (and bing)...
The solution I finally stumbled upon was to use the script manager tag.
|
|
Read more...
|
|
The other day I had the following error:
Error occurred in deployment step 'Add Solution': Error: Cannot find this file specified in the manifest file: BrandProject_Feature1\addtheme.xml
|
|
Read more...
|
|
Using the Jquery date range picker to filter a list can be a bit tricky but here is the result I came up with to save you some pain.
|
|
Read more...
|
|
Using cookies with php is fairly simple to get started with.
<?php
//setting a cookie
$country = "New Zealand";
$expiry_period = time() + (86400 * 7)); // 86400 = 1 day
setcookie('country',$country,$expiry_period);
?>
<?php
//getting a cookie
$country_value = $_COOKIE['country'];
?>
|
|
To clear a cookie in coldfusion, you simply set the value of the cookie to empty and set the expire to NOW as shown below
<cfcookie name="cookie_name" value="" expires="NOW" />
|