pcourterelle Posted January 12, 2001 Posted January 12, 2001 Having problems with frames... I've created a simple web search form that queiries a FMP 4.1 db and returns the information to a record page. The two web files work well and interact with the db fine. For ease-of-use, I would like to keep the search form on the left hand side of a frame and report the results in another frame. This would allow the user to have search and report functions without jumping back and forth between pages. However, I have yet to find a way to have the results enter the right hand portion of the frame. When a search is executed, the results show up in the same frame as the search page. I've searched through the Forum questions/answers and have not come up with anything that will work... The coding for the frames is below.. <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 transitional//EN" "http: //www.w3.org./TR/xhtml1/DTD/transitional.dtd"> <html> <head> <title>Production Webstie: Project Schedule</title> <link rel = "stylesheet" href = "schedule_stylesheet.css"> </head> <frameset rows = "15%,*" > <frame src = "head.html" name = "head" scrolling = "no" frameborder = "1"> <frameset cols = "20%,*"> <frame src = "search.html" name = "search" frameborder = "1"> <frame src = "main.html" name = "results" frameborder = "0"> </frameset> </frameset> </html>
Vaughan Posted January 14, 2001 Posted January 14, 2001 Make sure that each frame on the frameset has been given a unique name (preferably short and without spaces, like "menu" and "results"); then make sure that the links on the menu page all specify the target frame correctly.
pcourterelle Posted January 15, 2001 Author Posted January 15, 2001 figured it out...from the beginning I thought i would have to reference the frame in the CDML format tag somehow...CDML has nothing to do with it...after naming each frame with a unique identifier, (search for the search frame, head for the head frame and results for the frame where all search results would be shown) as normal in html, I added the <base target = "resutls"> tag between the <head>...</head> tags...worked like a charm... ...now all the results from the search show up in the rightside frame... Thanks pc
elvis_impersonating_penguin Posted January 17, 2001 Posted January 17, 2001 you could also do it like this if you wanted to.. you can actually target the frame from the form you are submiting <form action="fmpro" target="results"> ... </form> just thought you might like to know that as well.
Recommended Posts
This topic is 8779 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now