favorites

What are some useful non-built-in Django tags?

I'm relatively new to Django and I'm trying to build up my toolbox for future projects. In my last project, when a built-in template tag didn't do quite what I needed, I would make a mangled mess of the template to shoe-horn in the feature. I later would find a template tag that would have saved me time and ugly code. So what are some...

Favorites star switching in Javascript

A good example is the SO star on the left hand side of this post. You can click on it to add this message in your favorite and click again to remove this flag. I already create a page /favorites/add/{post_id}/ but how to handle that in Ajax ? Many things to do : Be sure that it worked when you click Change the image Change the link ...

How to create a specific if condition templatetag with Django ?

Hello, My problem is a if condition. I would like somethings like that but cannot figure out how to do it. {% if restaurant.is_favorite_of(user) %} <img src="{{MEDIA_URL}}images/favorite_on.png" alt="This restaurant is one of your favorite (Click to undo)" /> {% else %} <img src="{{MEDIA_URL}}images/favorite_off.png" alt="Th...

Various browsers / Drag & drop between favourites bar & edit boxes

Briefly, all of the up-to-date versions of the three browsers that I use day-to-day, namely Chrome, Firefox and IE, make it possible to drag links to the favourites bar. What I really want is to be able to show job seekers that they can drag RSS feeds for job searches from any of a number of big job boards such as Monster.com to the sub...

In IntelliJ how can I make it so that I use the same "Favorites" in different projects

problem is that I have to checkout a different branch for every project. and while the paths are the same, I have to load favorites every time. Its a pain. How can i get them to be the same on all projects? (windows xp intellij 7.0.5) ...

Simulating a Favourites Bar Within a Page

Is it possible to simulate a favourites bar within a page? I know it is possible for the Chrome and FF browsers. Is there a way of doing it in IE? The simulation does not have to be perfect, as long as the 'favourites bar' within the page accurately captures the link. Thanks! ...

Swing: JFileChooser with favorites?

I'm working on an application which needs to select files. JFileChooser is a great start, but I need to augment it. I can start it at one particular directory with JFileChooser.setCurrentDirectory(), but how can I offer the user a "favorites" functionality, either in terms of favorite files saved for later, or favorite directories to jum...

How would you make a "Favorite Pages" system

So I was asked by my management to incorporate a way for users to mark pages in my website as "favorite" and have them show up in a special list. This site has a static structure (I do not generate pages). I am wondering about the best way to do that. My first thought was to store it in the database (since user information is also sto...

why is win7/ie8 favorites the start menu?

does anyone know why Win7 Pro IE8 favorites are really the programs in the start menu? I don't see the point, there are usually tons of folders here so it is hard to find internet shortcuts, and why would I want to open a program from IE? I don't like to IE but Firefox usually freezes up on Win7 after 15 minutes...so I am using IE8 mo...

How to add entries to "Favorites"..?

I am working on a navigational app where i have my entries of recipes. What I need is to implement a button which will add a recipe on a favorites tab.. How can I do that? Any help would be appreciated. ...

How would you go about creating a favorites tab for an iphone application?

I would like to add a favorites tab to my iphone app that i am developing. I am using core data to populate a UITableView and would like in the detailed view to be able to add the selected item to the users favorites. Would i go about this by adding the selected item to a new array? I am very new to xcode and iphone programming so as...

How best to implement "favourites" feature? (like favourite products on a data driven website)

Hi, I have written a dynamic database driven, object oriented website with an administration frontend etc etc. I would like to add a feature where customers can save items as "favourites", without having to create an account and login, to come back to them later, but I dont know how exactly to go about doing this... I see three options:...

Cross-browser bookmark/add to favorites javascript

Is there any Cross-browser bookmark/add to favorites javascript. Searched for some list but none is working. Can you please suggest any ? ...

core data for 'add to favorites' button?

i've had difficulty finding examples/tutorials/information for this. i'd like to have an 'add to favorites' button in my application. this would take a cell from one tableview and populate that cell into the 'favorites' tableview. is core data the proper direction for approaching this? i've seen some hints about using nsmutablearray and/...

get 5 random favorites from flickr

Hello! I need to retrieve 5 random favorites photos from a flickr profile. I've got perfect Moonpix-Flickr Gem to work with Flickr API. And it works great, by using method .favorites I can get full list of user's favorites photos. It returns as Flickr::PhotoCollection and I don't know how to get 5 random records from it. Thanks in a...

Android Adding to favorites tab

I have a tab widget with 3 tabs, each with a listview inside. I setup a context menu so that when I click and hold on one of the list items it brings up a box saying add to favorites. The problem is, I don't know how to pass the selected listview item to the ArrayList in Favorites so they can access it easily, or receive it in Favorites ...

Creating Favorites button in Android App(Need to pass object without changing Activity)

Hello all! I am developing my first android app and need a little bit of help. I am creating a recipes page and I would like to have a Favorites button on it. I would like the user to be able to click the favorites button while they are viewing a recipe and have it added to the favorites page. However when the user clicks the button ...

iPhone add to favorites function

Hello, I'd like to add a function to my app where users can select favorites. I've got a list with games and I want a button in my tabbar saying: "Add". Now this isn't a problem. But when you click add, I'd like a modal view to come up in which you can select multiple games (which then show the CheckmarkAcessory). And If you then click ...

Core Data: Create multiple managed objects, but only save some?

I'm trying to write a favorites system for my app. I've already converted my model to a managed object. So imagine the user is presented a screen with a list of such objects. They can choose to save some to their favorites, which will persist them in core data. The problem is, when I create all of these model objects, I do so with the m...

Best REST API documentation

What is the best REST API documentation that you've come across? What did you really like about it? HOWTOs? Videos? Code snippets? Browser based API explorer? For example, I quite like the Flikr API documentation - http://www.flickr.com/services/api/flickr.photos.search.html, especially the API explorer. The SOAPI-Explorer is also...