![]() ![]() What you wish to do is create a single web page which wraps the search results within an IFRAME, and have search forms on your other (non-IFRAMES based) webpages send the query to the search.php script VIA your custom search page. This can be achieved with the frames-related solutions detailed above. Then you simply need to pass the search query to the search page (which will be loaded within the IFRAME). It would (and already does) depend on many factors regarding your specific website as opposed to a general usage scenario.Īs explained above, a more typical example would be a site where you would have all the content pages loaded within an IFRAME, and the search form is outside the IFRAME. Unfortunately no, the details you require would be closer to a web development tutorial than one that is directly in regards to the generic use of Zoom. However, obviously this comes down to your web design decision.If I went the CSS route, how would I continue to limit the results to, say 4? It is one thing to start out with 4 results, but then the user can change it with the "Results per page" drop down menu.Īlso, would you be willing to go into more detail as to exactly how to set up the search with an iframe, given the details in this thread that I have already shared? A step by step explanation would be tremendous and you could add it to your manual. in which case the typical frames-based method as described earlier would apply. If your site has a consistent layout all the way around it, then it would seem to make sense that the rest of the pages can load within that IFRAME. it would actually be alot easier if your whole site uses the same IFRAME. However, obviously this comes down to your web design decision. Another is by using client-side Javascript (less preferable since the client may have this disabled). One possibility is if your IFRAME page is actually a server-side script (eg. To achieve this, you will most likely need some extra scripting in your iframe page ("search.html" in your above example) to pass the HTTP GET parameters in the URL ("?zoom_query=test&." etc.) to the target of your iframe (which should be "search.php" as opposed to "search_template.html"). I want them to be able to submit a search from any page on my site. I don't want them to have to come to a search page that has the iframe and perform the search from there. That's the scenario that I want to work out. How do I get them from services.html to search.html that has an iframe on it and is loading search_template.html into the iframe with the results displayed. They enter their keywords and click the "SEARCH" button. There is a search option on services.html. A site visitor is on services.html and they are looking at different services. 10 results coming back in the search result is too much even. However, the length of the page is going to be too long for the text area that I am dealing with. Frames in general can get pretty messy if you are not familiar with them.I agree that CSS is very powerful and I know about the wrapping. ![]() Just be prepared to do more fiddling when you are trying to have a search form outside the iframe, and then results inside. On the other hand, creating a search page where the content loads within an iframe is definitely possible. Here's a previous thread with some pointers on adjusting word-wrap with CSS: It will be much simpler to get the search results to wrap to your required width, than to use frames (or in this case, iframes) to achieve the same result. Personally, I would look into the aforementioned word-wrap CSS approach instead. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |