<!--- Grab the google search results. ---> <cfhttp url="http://www.google.com/search?hl=en&lr=&q=Cold+Fusion+Google&btnG=Search" useragent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; FDM)" result="objGoogleGrab" method="GET" resolveurl="true" /> <!--- Output the search results. ---> <cfoutput> #objGoogleGrab.FileContent# </cfoutput>
So I admit I am a cold fusion newbie, as my name suggests, but I have worked with ASP.net. If the two even close to comparable capabilities, I will just create two string variables. One will contain the user input, one will be the final google search. I know how I would do this in asp.net, just make the final google search equal to "http://www.google.com/search?hl=en&lr=&q=" + userinput + "&btnG=Search" and have that all run when they click a search button. I don't even have to parse the input because google takes spaces in the url and automatically converts them.
However the issue I can't seem to resolve is this: How do I limit the results to just 10. I can alter the google search parameters to just show 10 results per page, but I can't seem to find out how to remove the pagination altogether and just get the 10 results.
Any help would be appreciated.
This post has been edited by coldfusionnewbie: 09 August 2011 - 08:41 AM