January 12, 200125 yr 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>
January 14, 200124 yr 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.
January 15, 200124 yr Author 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
January 17, 200124 yr 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.
Create an account or sign in to comment