Sugestions for textfield - automation

i have a question about a suggestion possibility in textfields.
What i am looking for is a script that gives user suggestions for the text they type.
It is used for a song request page of a radio station, and what i am looking for is a script that provides suggestions for the artists, and after filling the artist form, automatically suggest songs by the requested artist.
We like to create a more easy request form for our listeners, so they first type the artist, and offcourse the artists shown are available in our database, and than when they complete the artist field, automatically the system knows the songs available for that artist, and give the suggestions for the song.
I hope this is understandable and i hope you can give me suggestions about this.
Thank you for your help and looking forward to your answers.

Since you say "page" I assume you are talking about a web page. A standard way to do this then would be the JQuery Autocomplete UI widget.

Related

Custom odoo module - how to make a table

I am creating a custom module with additional part numbers on a separate tab in the products screen. I have built the module, but am having trouble figuring out how to display the information so it matches the layout in the attached image. I have tried tree view but have not been able to get the fields on the same line. Can this only be accomplished through css or is there a table view that I am not aware of?
I also need to make sure that all of the information in row 1 stays tethered together for additional forms, etc. My plan is to make the field names for each row end with a different number (i.e. x_mfrname1,x_mfrpn1,x_mfrname2,x_mfrpn2, etc.). Can somebody please just tell me if I am on the right track. This is the initial Odoo setup for a client of mine and I don't want them to come back to me down the line and find out I forgot something. I have been scouring the internet and reading a few books but I am not completely confident.
Here is a link to a layout of what I am talking about:
MFG Part Number Tab
Thanks!
class sub_part_details(models.Model)
_name='sub.part.detail'
primary_pn=fields.Boolean('Primary P/N')
obsolete=fields.Boolean('Obsolete')
pn=fields.Char('P/N')
desc=fields.Char('Description')
upgrade=fields.Char('Upgrade')
part_detail_id=fields.Many2one('part.details')
class part_details(models.Model)
_name='part.details'
cat=fields.Char('CAT')
sub_ass=fields.Char('Subassembly')
main_ass=fields.Char('Main Assembly')
notes=fields.Text('Notes')
sub_details_ids=fields.One2Many(''sub.part.detail','part_detail_id')
It might be helpful

magento - back button (without using categories)

there are a lot of back buttons available on the market. Free and paid ones.
But the don't work on my store, because they are all category based.
That's my problem.
In my store i don't use categories, only attributes (in combination with Amasty Improved navigation).
But all back buttons are based on categories.
Can anyone help me to solve this?
I want a back button which goes back to the filtered products (by attributes).
Or does anyone know a extension for this.\
I have magento 1.6.2.
You can check it out on testwinkel.liefstoereigenwijs.nl
I'm not sure why you want to avoid using categories, but have you tried using javascript?
<a href=”#” onClick=”Javascript:history.back();”>GO back</a>
The only problem with this, is that when a user enters your product page from let's say, goolge, the user will be redirected to google.
You can also take a look at this threat: Back to previous page with header( "Location: " ); in PHP

How to search for photo using caption

I'm new to Facebook API coding, so thanks in advance for patience with my question :)
I want to know if there is any way for me to search through users' photos and the users' friends' photos based on caption information.
For example, if I search for "Toyota", I would like my program to search all of my photos as well all the photos of my friends and look for a text match for "Toyota" in the caption of all the photos. I would like to retrieve the photo ID and its caption for subsequent displaying.
Can this be done? Either with https://graph.facebook.com/search?q or with FQL? Of course, we are assuming all authentication has been done and whatever permissions are needed for the application have been granted by the user of the application.
Or would I just need to retrieve all photo captions and then do the searching/filtering on my own in the backend?
Thanks in advance for the help.
Thanks
In FQL you can search only on indexed columns. So i am not sure if the name column i.e. caption of photo is indexed or not. You need to verify this.
Second option of retrieving all photo caption and then doing search will be better as it will be independent of any Change that FB may do to their platform in future.
Hope this helps
Thanks
Kaushik

Record label in Spotify Apps API

Is there a way to get the record label with an album lookup in the Spotify Apps API?
or in maybe there's another way to get the record label?
If you know the label in advance, you can search by label using the advanced search syntax. Other than that, there's no way at the moment to get that information.

Sitefinity 4.4 - Dynamically change page title and description at runtime

Does anyone know how to dynamically change the page title in Sitefinity from a regular user control?
Our scenario is simple. We have a real estate website with a search feature. On the search results page we have a control showing the search results, but we need to be able to change the Page title, description and keywords based on the search performed.
We posted on Telerik, but they gave vague answers and pointed us to incorrect objects or objects that didn't actually work.
?
Regards,
Jacques
The way I've usually done this in the past is by using an external widget template.
By mapping your widget template to an external file, you can use a full User Control (.ascx file) which means you can also run code behind.
From there it's just a matter of running something like
Page.Title = "whatever";
For more info on using an external template for Sitefinity Widgets, check out this post: http://www.sitefinity.com/blogs/joshmorales/posts/11-05-10/mapping_external_templates_for_sitefinity_4_widgets.aspx
Hope this is helpful!