|  | Posted by WhiteJediGuy on 06/08/05 07:11 
OK!!!! I, with your great patience and help, finally got the flash portion to work.. All I needed was _root.search.text and now it works great!!!!
 Thank you so much.. Now I will work on the portion for the main php of the
 search.
 
 
 "Daedalus.OS" <arsenault.daniel@gmail.com> wrote in message
 news:42a65732$0$1809$892e7fe2@authen.white.readfreenews.net...
 > ok, if you have the event handler directly on the button then it's a
 > little different.
 >
 > the way I use it was for actionscript written on the timeline frames...
 > (but onClick was a mistake, it's javascript. Sorry, there is so much
 > languages in that head that sometimes I mixed them all)
 >
 > Anyway since the script is directly attached to the button, it should be
 > something like that:
 >
 > on(release){
 >
 > getURL('http://catalog.playersmusic.com/catalog/search.php?q='+search.text,
 > '_self');
 > }
 >
 > _self need to quoted, '_self'
 >
 > And for the GET thing. In this case, this is that part '?q='+search.text'
 > that says it's a GET. Get is a method that passes parameters throught the
 > URL. HTTP GET in fact is what the browser use to request any web page. It
 > make a GET request for /index.html at a server and the server 'serves' the
 > page to the browser. But what is after a question mark ? in a url is
 > considered as parameters for a script. So all you have to make a get
 > request is passing the parameters in the url. It's the same in flash.
 >
 >
 > Dae
 >
 >
 > "WhiteJediGuy" <Blader18x2005@cox.net> wrote in message
 > news:V7spe.4566$7s.3027@fed1read01...
 >>I have for the actionscript on go_btn:
 >> on(release){
 >>    go_btn.onClick = function()[
 >>
 >> getURL('http://catalog.playersmusic.com/catalog/search.php?q='+search.text,
 >> _self);
 >>    }
 >> }
 >>
 >> For some reason though it does not work. If I put quotes around
 >> +search.text it puts a search in for search but not what the person
 >> typed. Such as
 >> http://catalog.playersmusic.com/catalog/search.php?q=search
 >> Also, for some odd reason, it is replacing, "Search Here" in the input
 >> box with level0 stuff.
 >> And I thought "GET" was suppose to be somewhere in the syntax.. Thanks
 >>
 >>> If i'm right, forget about the LoadVars, it's not what you want.
 >>> (I'll pretend you called your go button go_btn):
 >>>
 >>> go_btn.onClick = function(){
 >>>    // You can add some sort of form validation code here
 >>>
 >>> getURL('http://catalog.playersmusic.com/catalog/search.php?q='+search.text,
 >>> _self);
 >>> }
 >>>
 >>> This would bring your visitors to search.php?q=(what was in the flash
 >>> input box)
 >>
 >>
 >
 >
  Navigation: [Reply to this message] |