Flash and Google Search

  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

I made this little script off of the google search script that they provide. I think it should work but it doesnt. anyone have any ideas?

Code: [ Select ]
<!-- Search Google -->
<center>
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=25 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
</td></tr></TABLE>
</FORM>
</center>
<!-- Search Google -->
  1. <!-- Search Google -->
  2. <center>
  3. <FORM method=GET action="http://www.google.com/search">
  4. <input type=hidden name=ie value=UTF-8>
  5. <input type=hidden name=oe value=UTF-8>
  6. <TABLE bgcolor="#FFFFFF"><tr><td>
  7. <A HREF="http://www.google.com/">
  8. <IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
  9. border="0" ALT="Google" align="absmiddle"></A>
  10. <INPUT TYPE=text name=q size=25 maxlength=255 value="">
  11. <INPUT type=submit name=btnG VALUE="Google Search">
  12. </td></tr></TABLE>
  13. </FORM>
  14. </center>
  15. <!-- Search Google -->



Heres my code
Code: [ Select ]
submitURL = "http://www.google.com/search";
function onSubmit() {
    // Create a new LoadVars instance for the form data
    formData = new LoadVars();
    // Initialize formData variables:
    formData.q = "";
    formData.ie = "UTF-8";
    formData.oe = "UTF-8";
    // Gather the information into a LoadVars instance.
    formData.q = q.getValue();
    // Create another LoadVars instance to receive the server's reply
    formData.send(submitURL, _new, "get");
}
  1. submitURL = "http://www.google.com/search";
  2. function onSubmit() {
  3.     // Create a new LoadVars instance for the form data
  4.     formData = new LoadVars();
  5.     // Initialize formData variables:
  6.     formData.q = "";
  7.     formData.ie = "UTF-8";
  8.     formData.oe = "UTF-8";
  9.     // Gather the information into a LoadVars instance.
  10.     formData.q = q.getValue();
  11.     // Create another LoadVars instance to receive the server's reply
  12.     formData.send(submitURL, _new, "get");
  13. }


I use the code
Code: [ Select ]
on (press) {
    onSubmit();
}
  1. on (press) {
  2.     onSubmit();
  3. }

On a button to exicute the function.

I think this should work but it doesnt any ideas?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

Google SOAP http://www.google.com/apis/
Using it http://www.flash-db.com/Google/
Somewhat related http://www.jibbering.com/2002/4/httprequest.html (bottom of page)
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

okay, thanks

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.