Jump to content

Google Custom Search - can't create Flash script that points to html results


Recommended Posts

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")}

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.