1
dukehen
Using a flash search feature
  • 2003/12/27 19:39

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Hello all, for those who know about Flash - this should be a very easy question to answer.

I have added a flash search section to my header, to take the place of the standard HTML search input box.

Anyway, I have made these in the past without problem, but for whatever reason my flash search input text box is not passing along the proper information to the search.php page.

I have named the instance of the input box "query" (which is what search.php is looking for), and have ensured that the flash actionscript is pointing to the right page. This is the flash code I have in effect:

on (press, keyPress "<Enter>") {
getURL("../../search.php", "", "POST");
}

(very simple, if you press the go button, or hit enter after typing in your text, it posts your text to search.php).

I should note that when you run the search, it does bring up a blank search.php page - so I believe the only problem is that the search parameter(s) are not being passed to search.php properly...

I hope I have been relatively clear...

2
dukehen
Re: Using a flash search feature
  • 2003/12/29 3:27

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


I have also tried a LOADVARS variant, with even less success.

Hrm, not a big deal - just an annoying little flash-ism. I admit, I am not great at using Flash...

Thanks

3
wrtbooks
Re: Using a flash search feature
  • 2003/12/30 7:03

  • wrtbooks

  • Just popping in

  • Posts: 77

  • Since: 2003/3/8 1


Quote:
so I believe the only problem is that the search parameter(s) are not being passed to search.php properly...

does anyone know the proper parameters so it will pass the data to the search.php page?

4
dukehen
Re: Using a flash search feature
  • 2003/12/31 1:27

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Alright, progress has been made.

I made up a simple PHP page that would retrieve $_POST['name'] (and also assigning "name" to the text box) and it worked like a dream. Meaning, I was able to output the "name" value, and so that is super. It worked just as it is supposed to.

However, if I use the same method to output to search.php, it fails miserably.

1. First off, I have been using "query" as the var name for the text box. Is this somehow wrong?

2. Second, does anyone know why it wouldn't accept this variable name (assuming the name is right)? Some sort of security feature of xoops?

Thanks

5
wrtbooks
Re: Using a flash search feature
  • 2003/12/31 2:55

  • wrtbooks

  • Just popping in

  • Posts: 77

  • Since: 2003/3/8 1


yea I am trying to get this to work with the search.php page so that I can have an entire url to query that page.

here is the other forum I have running with alot of good stuff and thoughts about this subject:
https://xoops.org/modules/newbb/viewtopic.php?topic_id=15108&forum=3

I am using XOOPS 1.3.x check the last post of the thread above I think he kinda figured it out for XOOPS version 2

6
dukehen
Re: Using a flash search feature
  • 2003/12/31 3:06

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


Ahh, that does give me some ideas.

Cheers!

7
wrtbooks
Re: Using a flash search feature
  • 2003/12/31 3:08

  • wrtbooks

  • Just popping in

  • Posts: 77

  • Since: 2003/3/8 1


do you run XOOPS v2 or v1.3.x?

8
dukehen
Re: Using a flash search feature
  • 2003/12/31 3:10

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


v2. I have never used 1.3.....

9
wrtbooks
Re: Using a flash search feature
  • 2003/12/31 3:14

  • wrtbooks

  • Just popping in

  • Posts: 77

  • Since: 2003/3/8 1


Quote:
I have never used 1.3.....

If you get a chance come byhttp://www.sermonindex.net/search.php and test a query for that page :)

10
dukehen
Re: Using a flash search feature
  • 2003/12/31 3:16

  • dukehen

  • Just popping in

  • Posts: 91

  • Since: 2003/12/9


I entered in "test" and I received results...

Is there anything you want me to do specifically?

Login

Who's Online

232 user(s) are online (131 user(s) are browsing Support Forums)


Members: 0


Guests: 232


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits