Solved

Submit button and search box

Posted on 2002-05-01
9
148 Views
Last Modified: 2010-04-03
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
Comment
Question by:Zantis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 6

Expert Comment

by:rootdir
ID: 6984358
I donot understand what you are trying to do here with flash?

Cheers
RootDir
0
 

Author Comment

by:Zantis
ID: 6984428
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
 
LVL 6

Expert Comment

by:rootdir
ID: 6984733
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:rootdir
ID: 6984736
Are you checking your other question?
0
 
LVL 2

Accepted Solution

by:
thor918 earned 100 total points
ID: 6985652
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
 
LVL 2

Expert Comment

by:thor918
ID: 6985660
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
 
LVL 2

Expert Comment

by:thor918
ID: 6985664
0
 
LVL 6

Expert Comment

by:rootdir
ID: 6986276
thor918,

That waht I am asking to Zantis. What exactly he is looking.
0
 
LVL 2

Expert Comment

by:thor918
ID: 6986325
Zantis, Glad to have helped :D
Thanks for the points
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Youtube video error 30 862
I'm running a risk by using Adobe Flash in my site ? 9 123
flash in chrome 4 138
PDF edit software 2 57
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question