rivet Posted April 10, 2003 Posted April 10, 2003 To start, my client would the image of a query result in a horizontal manor, with a horz. scroll. At first I wanted to avoid frames so I found that I could get a layer to hold the results but it did not display correctly in all browsers. So here I am at frames. Do you think there is a way to get one query to show results in multiple frames. So after the user comes to the home page and clicks begin which will trigger the query. I need the top frames to show movie theatres and the bottom to show movie titles.
Leb i Sol Posted April 10, 2003 Posted April 10, 2003 well...no gurus are answering so I will dare to try: I don't think you can do it with a one submit since you can declare only one -format page. I think you could do with some JavaScript and Pop-ing of the windows but that negates your purpose of frames. Perhaps, if you know the search criteria and it doesn't change...such as "show me all the movies in this year" kind of a thing you could then generate some querries by using links: Syntax example(s) Find any one record using a link, and display that record in "results.htm" <a href="FMPro?-DB=db.fp5&-Format=results.htm&-FindAny">Return any record in the database</a> so for you maybe something like this would apply <a href="FMPro?-DB=DB_NAME.fp5&-lay=LAYOUT_NAME&-Format=RESULTS.html&-Field_Name="action movie"&-max=all&-find" target="frame_name1">ACTION MOVIES</a> <a href="FMPro?-DB=DB_NAME.fp5&-lay=LAYOUT_NAME&-Format=RESULTS.html&-Field_Name="comedy movie"&-max=all&-find" target="frame_name2">COMEDY MOVIES</a> where these links are perhaps in left frame and results pages are on the right. This is not the greatest soluton since it requires user to click on both links in order to generate it! I saw a JavaScript discussion that you might want to follow: http://www.experts-exchange.com/Web/Q_20513461.html#1 - bottom links sorry I am not much of a help...look/post for "JavaScript Submit 1 Form to multiple frames" and see if that topic brings you more luck. There are few people in here that are JS gurus ( for me anyway) maybe they will be kind enough to write up a few lines of code for you! this is as good as I can offer right now on this topic.... good luck
Leb i Sol Posted April 10, 2003 Posted April 10, 2003 ok here is my second attempt: I did some reserach and found this code and changed it a bit....I don't know JS enought to troubleshoot it but you might: <html> <head> <title>GO to FRAMES</title> <script> function doit() { document.searchform.target='topFrame'; document.searchform.action='page1.html'; document.searchform.submit(); document.searchform.target='bottomFrame'; document.searchform.action='page2.html'; document.searchform.submit(); } </script> </head> <body bgcolor="#FFFFFF"> <form method="post" action="" name="searchform" target=""> <input type="text" name="tf1"> <input type="text" name="tf2"> <input type="button" name="Submit" value="button" onClick="javascript:doit()"> </form> </body> </html> good luck with it all...
Recommended Posts
This topic is 7926 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