JTapp Posted December 31, 2009 Share Posted December 31, 2009 Anybody into Google search code? I created a Custom Search - where they provide the html search code and the html results code. I'm trying to convert their html search code to a getURL function in flash that points to my html results page. Here is the customized search code Google provided for searching my own site: <form action="http://www.gloklahoma.com/searchresults.com" id="cse-search-box"> <div> <input type="hidden" name="cx" value="008521448308629498442:k9ew4jiha1c" /> <input type="hidden" name="cof" value="FORID:10" /> <input type="hidden" name="ie" value="UTF-8" /> <input type="text" name="q" size="31" /> <input type="submit" name="sa" value="Search" /> </div> </form> <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script> Here is the customized search results code Google provided: <div id="cse-search-results"></div> <script type="text/javascript"> var googleSearchIframeName = "cse-search-results"; var googleSearchFormName = "cse-search-box"; var googleSearchFrameWidth = 600; var googleSearchDomain = "www.google.com"; var googleSearchPath = "/cse"; </script> <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> I am trying to do something like this in flash - geez I'm all screwed up at this point: on(release) {getURL("http://www.google.com/search?q= " + escape(inputField.text+" site:www.gloklahoma.com"), "_blank")} Link to comment https://forums.phpfreaks.com/topic/186764-google-custom-search-cant-create-flash-script-that-points-to-html-results/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.