Hi guys, I want my users to be able to save a favourites list.
So I have a bunch of pages (about 30) with a table of data, and other content on them. The data is pretty important, and an average user will normally access the content of at least 5 different tables on a frequent basis.
I'm wanting to set up a "My favourites" type page, which will only display the content of those tables they actually need. I thought the easiest way to do this is to set a cookie value for each of those tables. So under the table I'd have a "add to favourites" button. This in theory should write a cookie. The "My favourites" page would simply display the divs (assets) that are written to the cookies.
I've got as far as the code below, but it doesn't seem to write my cookie:
BUTTON: <div id="addToFav1" style="cursor:pointer;height:30px;width:120px;background-color:blue;">Add to favourites</div>BUTTON CODE:
<script type=“text/javascript”>$("#addToFav1").click(function () {
$.cookie(‘Fav1’, ‘57734’, { expires: 120 });
});
</script>