I’m looking to dynamically display information based on an input field search. Problem is, I’m not sure what language to use. I guess I’d better show what I am looking to do first off (sorry I’m making you watch a video, but it’s the best representation of what I’m looking for): https://new.myspace.com/play (about 1:05 into the video, the ‘Justin Timberlake’ search)
So I was thinking that maybe it was AJAX, but as far as I know AJAX doesn’t dynamically display content like that. Normally AJAX allows an input search and guesses what you are trying to say while you’re typing.
Then I figured it might be PHP, but once again, I figured it might not be PHP because there is no ‘submit’ before the content appears which leads me to believe that it isn’t PHP because there is no ‘POST’ or ‘GET’ being activated.
lastly, wasn’t sure if it was javascript/jquery where the information is hidden and displayed only when the input field contains the same string as some of the content on the page.
Anyhow, just wondering what kind of language does this, so I can get the ball rolling on figuring out how to do it. Thanks.
If you are aiming at building a website that dynamically changes content whenever an input field is edited, your language of choice for making the user interface part happen is Javascript.
That said, you are probably looking at a more complex problem because the Javascript part needs to retrieve its information from a source which usually is not static so you would also build a backend that uses the contents of the input tag and returns suitable results for the string contained in it – for that, more or less any language works, common choices would be PHP, Ruby, Python.. etc.pp. for a web service architecture.