• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 152
  • Last Modified:

Submit button and search box

I currently have a search box on a page in html with the following code...

<FORM ACTION="/search.asp" METHOD=POST>

INPUT TYPE="TEXT" NAME="SearchString" SIZE="30" MAXLENGTH="100" VALUE="">
 <INPUT TYPE="SUBMIT" NAME="Action" VALUE="Search">
</FORM>

I have created a text box with input as a function, now I need the code to make it use the search.asp page in the main frame, this is probably an easy question for you experienced flashers out there for actionscript.    
0
Zantis
Asked:
Zantis
  • 4
  • 4
1 Solution
 
rootdirCommented:
I donot understand what you are trying to do here with flash?

Cheers
RootDir
0
 
ZantisAuthor Commented:
I would like a search box that you can type into and then hit a submit button and then it will post to search.asp page in the html frameset name "main".
0
 
rootdirCommented:
Are you trying to do this search with flash or html? post your search.asp code, So that I can find what's going on?

RootDir
0
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
rootdirCommented:
Are you checking your other question?
0
 
thor918Commented:
I'm not sure on what you are trying to do either.
You can make a flash that works just like the html form,inputs and submit.
try this :
hammar.no/users/thor/submit/search.fla

what is done->
start with a new flash
make a text with the "text tool" (shortcut T)
while the textfield is in focus->goto the main menu and select->window->panels->text options
then in the "text options panel" select "input text" and "Border/Bg" and in the variable field write "SearchString"(this is the same as name attribute in html)
then create a button->rigthclick it and select actions->
then paste this code in

on (release) {
     getURL ("search.asp", "main", "POST");
}

this code will submit information to search.asp and target it to the main frame.
0
 
thor918Commented:
or if you just want to know how to submit using html to another frame. Just add in the form tag a target attribute with the frame you are submitting to
like this ->
<FORM target="main" ACTION="/search.asp" METHOD=POST>

INPUT TYPE="TEXT" NAME="SearchString" SIZE="30" MAXLENGTH="100" VALUE="">
<INPUT TYPE="SUBMIT" NAME="Action" VALUE="Search">
</FORM>
0
 
thor918Commented:
0
 
rootdirCommented:
thor918,

That waht I am asking to Zantis. What exactly he is looking.
0
 
thor918Commented:
Zantis, Glad to have helped :D
Thanks for the points
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now