How can a link give different result at different times?
Asked by
flo (
13313)
March 18th, 2011
Observing members:
0
Composing members:
0
11 Answers
Funny you should mention this…I’ve had this problem with real estate sites lately. I don’t know enough about web page building…but, I’ll bet that’s where the problem lies. Good question.
I get “no results found” for both. ???
Because a link is just a request to a server to respond with something. The server can change what it responds to, and could even be programmed to respond randomly every time the same thing is asked for.
In your example link, it isn’t even a link, but a link to a search engine, with parameters of what to search for. Not only can the content change, but the data that the search engine uses probably changes all the time, and it might very well be programmed so that it doesn’t return the same results, or not in the same sequence, each time.
News reports are the worst. Our online newspaper has a contest where we earn points by clicking on the link and giving the answer found, only sometimes the link has been changed and there is no correct answer to the question. It’s very frustrating.
Clueless as to why you’re attempting to search Jim Croce on Apple’s web site?
Many links go to a specific HTML page, and unless some scripting such as a JavaScript on the page modifies the result of clicking, say to serve a page suited for full-screen PCs to desktop users and a different page optimized for hand-held devices to certain detected conditions, the link will always deliver the same results till the actual HTML page it leads to is modified.
But the link you quoted is not to a fixed object. It instead links to a CGI script that searches for results matching a specific criteria. The results it serves are dynamically generated from a search of a database, and every time the data in that database changes, what that link yields will change accordingly. The clue to this is the question mark in the HREF (Hypertext Reference) of the link. Everything after the question mark is part of something called a query string. That query string tells the CGI script what to do. In this case, since it is a search, the CGI runs a search for a variable named “g” and passes the value “jim+corce” to that variable.
CGI or Common Gateway Interface scripts can be used for all sorts of server-side processing such as accepting, checking and emailing or storing form input; adding form input to a database, searching a database and much, much more.
@flo Your search the other day did not have the “correct” results. You are not searching iTunes, you are searching the Apple dot com website. They are different things.
General searches of the Apple web site return different results on different days as they promote new or upgraded products.
I am speechless. Speechless I am.
When we make errors and Google asks “do you mean…” it must be acting ridiculous and ineffective.
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.