Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AJAX - images opposite the suggest dropdown

Status
Not open for further replies.

berkshirea

Technical User
Mar 22, 2009
97
GB
hi guys, first my apologies as i posted this question on the php forum but thought later that it's more appropriate it here.

i am experimenting on this ajax auto suggest:


demo:

i want to have an image of the flag opposite of a country's name. how do i do that?

Any ideas? i am no good in javascript
 
Hi

AJAX is used to transfer data processed by JavaScript. Your images will never be processed by JavaScript, so your question is off-topic here. Modifying the ajax_option_list_buildList() function is plain JavaScript task, which can be discussed in forum216 .

By the way, I still not see what you tried so far. One hint anyway : try changing the value assigned to [tt]div.innerHTML[/tt] in ajax-dynamic-list.js, line 122 :
Code:
div[teal].[/teal]innerHTML [teal]=[/teal] items[teal][[/teal]items[teal].[/teal]length[teal]-[/teal][purple]1[/purple][teal]];[/teal]
( Mentioning that your question was already posted in the PHP forum is a good thing. Even better is to post a reference to thread434-1562348 , so those interested can easily read what was discussed before. )

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top