View Full Version : ?Google Search?
skidpanda
January 5th, 2003, 05:57 PM
Is there anyway of having a input text file submit information to the google search engine automatically.
User would enter the info, press a button, a new window would open showing search results..
If not is there anyway of entering search data, then loading the google window with the search criteria already entered into the google text field?
I saw a.fla on flashkit that did the first thing ^ but it doesnt seem to work anymore - it just comes up with a blank google window.
Thanks for any help,
Skid :eye: :crazy:
senocular
January 5th, 2003, 06:42 PM
on(release){
getURL("http://www.google.com/search?q=" + escape(inputField.text), "_blank")
}
where inputField is the instance name of the input field you wish to give a google search for
skidpanda
January 5th, 2003, 07:24 PM
Thanks very much thats just what I needed.
:) SKid
pom
January 5th, 2003, 07:39 PM
rate rate rate rate... :crazy:
FlashSwimmer
January 5th, 2003, 09:09 PM
on(release){
getURL("http://www.google.com/search?q=" + escape(inputField.text), "_blank")
}
it's good ..... :P
but can anyone explain to me what does it means?
?q=" + escape(inputField.text), "
thanx =)
pom
January 5th, 2003, 09:13 PM
a="I'm @ home";
trace (escape(a));returns I%27m%20%40%20home.
It's just formatting.
pom :+)
FlashSwimmer
January 5th, 2003, 09:20 PM
oooooo
thanx Pom, long time to see your Pom in one of my Question...:beam: .
anyway i think i got now.
thanx =)
FlashSwimmer
pom
January 5th, 2003, 09:42 PM
I'm never too far, don't worry :P
Macro-design
January 21st, 2005, 03:15 PM
Is there anyway I can make it use the google images seach instead of the normal seach?
Macro-design
January 21st, 2005, 03:18 PM
I just figured out how to do that, just had to look at the url... I've changed the path, and then I've also made it release on keyPress, so if you press enter it seaches to.
on(release, keyPress"<Enter>"){
getURL("http://images.google.dk/images?q=" + escape(inputField.text), "_blank")
}
egoldy
January 30th, 2005, 11:11 AM
how to do a flash search like above kirupa site header .
when I seach I found the url is "search/atomz.........."
I like google.how can I do a search like kirupa's flash search.and only search my domain name.
Thanks a lot.
Ben H
January 30th, 2005, 12:03 PM
Well, you need your site to be indexed in google, then you do this:
on(release){
getURL("http://www.google.com/search?q=" + escape(inputField.text+" site:www.yoursite.com"), "_blank")
}
Lewwy
February 14th, 2005, 11:13 AM
Thanks for the info :) Very very useful to know !
Lewwy
February 23rd, 2005, 02:54 PM
hmm, for some reason.. when I try to do this, whatever I type in the input box, google searches 'undefined' :(
anyone know why?
hl
February 23rd, 2005, 03:32 PM
why is this in the best of kirupa?
Lewwy
February 23rd, 2005, 04:23 PM
Cause its a problem thats been solved, and its quite cool..
But google still comes up as 'undefined'?
Macro-design
May 18th, 2005, 12:40 PM
If you could post either you AS or .fla file, it would be a big help.
But check the instance name, that's - I guess - would be the most likely error.
MEvsYOU
June 29th, 2005, 01:07 AM
Google Flash (http://www.productbeta.com/google/index.php)
Bokke
June 29th, 2005, 04:35 AM
i have'nt read the tread but:
that google thing looks great :)
TheMaxExp
July 19th, 2005, 12:07 PM
Wow, MEvsYOU thats awesome. You should tell people that you have a tutorial for it.
x_polar
February 21st, 2006, 07:51 AM
Off subject, hey TheMaxExp fellow, your site is a joke :thumb:
I love the hardcore AS.
jeckx2
April 11th, 2007, 01:20 PM
its what the thread says hehehe ;) but anyway good topic maybe i can use this google search at my flash site.
arianhafezi
March 7th, 2008, 12:36 PM
I past this script , but i receive undifind message form google search page.
please somebody let me know, where is my mistake!
take
3pepe3
August 14th, 2009, 11:02 PM
why is this in the best of kirupa?
i was thinking the same thing.... but well it's a post from 2005.
Actually for searchs using google we can use the google ajax api where we can search:
Web Search
Local Search
Video Search
Blog Search
News Search
Book Search
Image Search
Patent Search
Here you can find a class that implements this services (added the posibility to get the weather with google).
http://www.actionscript.org/forums/showpost.php3?p=822475&postcount=34
______________________________
http://www.pepemagana.com
orphicpixel
September 15th, 2009, 03:09 AM
wooh! what happened, i already made it to work, then when as i added more component and button to the flash movie, the keypress"Enter" is no longer working, what could be the problem
Dariusz
August 27th, 2010, 02:01 PM
on(release){
getURL("http://www.google.nl/cse?q=" + (input.text+"&sa=Zoeken&cx=partner-pub-000000000000000%3Am27l5o-wrqt&ie=ISO-8859-1"),"_blank"
)}
This is working foor me get yours link from oppes serch window of your website.
Greetings from Amsterdam
philipashton
October 18th, 2010, 11:54 AM
That's great post you have there...Giving some great information like that.
dann123
December 2nd, 2010, 10:19 AM
Not working :(
When I try to find a pdf file using this format it says no result :(
Or this trick works only for text files ?
segunoguns
January 7th, 2011, 09:06 AM
Well, you need your site to be indexed in google, then you do this:
on(release){
getURL("http://www.google.com/search?q=" + escape(inputField.text+" site:www.yoursite.com"), "_blank")
}
thanks for this, but i want to use an input text box to load what to search in my site. But it keeps saying undefined.
tlv
April 6th, 2011, 10:15 AM
I was wondering is there any way to make this on the other way?
Like somehow to fetch what user searched over google and insert that query in banner?
bommelnazi
July 11th, 2011, 02:52 AM
Hello hl ,because in this site have more information.
cumhuriyetim
August 4th, 2011, 05:39 AM
This article is useful for beginner flasher. thanks.
http://www.kral--oyun.com
Joddyrots
November 6th, 2011, 05:03 AM
Thanks a lot buddy..
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.