473,471 Members | 4,629 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CGI and Frames

17 New Member
Hi

1. I found a website "http://www.gahooyoogle.com" which is a search engine and fetches result from both yahoo and google.

2. I tried to develop a similar one but with more simpler and i choose(Hakia, AltaVista and Google) as my search engines. I developed a html(MySearchPage.html) with textbox and submit button, when search term entered and clicking on submit button it calls a perl file.

3. In perl file the window is first separated to two rows, first row again calls the html file(MySearchPage.html) and second row is separated to three columns.
These three columns contains the results of the search engines.

4. Now i am entering the new search term in the first frame which contains the html file(MySearchPage.html) and the results are displayed in the same frame. But i need the results to be displayed in the second set of three frames without affecting the first frame, the first frame should always contain the html file only

HTMLCode(MySearchPage.html):
<html>
<body>
<form method="post" action="http://localhost:8080/cgi-bin/Searchengines.pl">
<input type="text" name="q" size="50"/>
<input type="submit" name="sbm" text="Submit"/>
</form>
</body>
</html>

PerlCode(Searchengines.pl):
#!C:/Perl/bin/perl -wT
use strict;
use CGI qw/:standard/;
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
my $searchterm;
if(param('q'))
{
$searchterm = param('q');
}
print header;
print "<html>";
print "<frameset rows='10%,*'>";
print "<frame src='http://localhost:8080/MySearchPage.html' scrolling='no' noresize/>";
print "<frameset cols='35%,35%,*'>";
print "<frame src='http://www.hakia.com/?q=".$searchterm."'/>";
print "<frame src='http://www.altavista.com/sites/search/web?q=".$searchterm."'/>";
print "<frame src='http://www.google.com/search?q=".$searchterm."'/>";
print "</frameset>";
print "</frameset>";
print "</html>";

I am using WindowsXP and perl5.8.8


- Freedolen
Aug 16 '07 #1
2 2755
KevinADC
4,059 Recognized Expert Specialist
Try using the correct html code for a frameset and see if that helps.
Aug 16 '07 #2
numberwhun
3,509 Recognized Expert Moderator Specialist
Agreed!

Try taking the HTML code you have here and plug it into a file called whatever.html. Then, open it with your browser and see if it loads.

It is always best to get your HTML code perfected before plugging it into your Perl script, that way, it is one less thing that you have to troubleshoot.

If you need help with the HTML, then there is an HTML/CSS group in the forum. Of course, I would just go over to w3schools and look up the correct syntax.


Regards,

Jeff
Aug 16 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: les | last post by:
Hello, I just wonder what are the implications to use frames to build portal. I've seen some sites that are quite fast with frames but I just wonder if there are hidden "costs". I've tried to...
40
by: JohnnyCJohnny | last post by:
Is it pretty safe to say that almost all web surfers now use browsers that are Frames compatible? What are most people using these days? IE? Thanks
7
by: David Hayes | last post by:
I tried finding an answer on http://www.quirksmode.org/ without success. I am attempting a complicated Frames structure. I have made it work in IE, but not Netscape. I begin with three...
95
by: Neal | last post by:
Of course, every frame site I've ever seen has reduced usability and all. We've been through this before. But as frameset is still a part of HTML, there must be some legitimate use for it, hmm?...
25
by: Steal | last post by:
Hi at all I try to validate this page using the link: http://validator.w3.org/ but it return that this is not a valid HTML 4.01 page please where is it error? Steil <!DOCTYPE HTML PUBLIC...
5
by: Dfenestr8 | last post by:
Hi. I'm designing a site, and I'm trying find a way of browsing it without using frames, so I can test the <noframes> </noframes> tags. I use a linux mandrake 10 system, with KDE 3.2. Is there...
7
by: dj Bass | last post by:
simple, they don't like things that restrict the server-side controls... and when it comes to frames, you need client side stuff and that stuff's up the asp.net strategy. right or wrong?
3
by: Nish | last post by:
Is HTML frame is an old technology? Will the modern web application are developed using the HTML frames? Does all the browsers support them? Thank you for your suggestion, Nish
56
by: Deepan HTML | last post by:
Hi All, Currently i am working in a framed environment where i have divided the window as 20% and 80% and the 20% is used for navigation purpose and right frame for displaying the orignal content....
14
by: Mark | last post by:
Hi Guys, I am very new to ASP.NET world. I need to create three frames. One at the top, one on the left and another on the right side. I don't know how to do it. So please help me with it. ...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.