Solved

I have a question on Entropy search engine? (cgi scripting)

Posted on 2002-03-25
4
638 Views
Last Modified: 2013-12-25
Hello Experts,

I have a question on a cgi search engine.  This is a sample of the script that I put in my webpage for a search engine.


<form action="/cgi-sys/entropysearch.cgi" target=searchwindow>
Search for <input type="text" name="query" value="">
<input type="hidden" name="user" value="whatevername">
<input type="hidden" name="basehref" value="http://domainname.com">
<input type="hidden" name="template" value="default">
<input type="submit" value="Search">
</form>

It works fine, but there are a few problems.  First is, that it opens a new window with the results.  Just want it to go to a different page without opening a new window.

The other thing is that when I changed the template (to look like my site)of the new window that pops up with the search results none of the graphics show up.

Could use some input and thanks!
0
Comment
Question by:Tallone
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 16

Accepted Solution

by:
maneshr earned 150 total points
ID: 6895621
Tallone,

"..This is a sample of the script that I put in my webpage for  a search engine...."

Can you pl post the exact copy of the entropysearch.cgi script here?

"..  First is, that it opens a new window with the results. .."

To fix this i would suggest you REPLACE....

<form action="/cgi-sys/entropysearch.cgi" target=searchwindow>

WITH...

<form action="/cgi-sys/entropysearch.cgi">


"..The other thing is that when I changed the template ..."

Can you pl. post the template and any other relevant files here?

That will help you get a more accurate answer, faster.
0
 
LVL 5

Expert Comment

by:Peewee
ID: 6896036
Tallone,

two things:
A:
as maneshr suggested removing the target attribute will cure your first problem, ie the script will run in the current window.

B:

The other thing is that when I changed the template (to look like my site)of the new window that pops
up with the search results none of the graphics show up.

Answer:
you are not pointing at the right location for the relevant graphic:
you can harcode each of the image location ie http://yourhost.com/mages/bg.gif or use a simple <base href="http://yourhost.com/"> and use each link relative from there.. ie background="images/bg.gif"..

you can actually put this in the browser to see if a file exists: ie http://yourhost.com/mages/bg.gif.

let me know if you need more help.

regards
Peewee

regards
Peewee
0
 

Author Comment

by:Tallone
ID: 6898617
Thanks both of you gave answers that were correct.  This question was in two parts. Is there a way to give both equal points.

Tallone
0
 

Expert Comment

by:ComTech
ID: 6899119
Hi Guys, Tallone has requested a point split between the two of you at 150 points each.

I will reduce the points to 150 to allow for the split.

Tallone, all you have to do here is accept one of the comments, that will award one of the two experts, and then you will need to create a new question for the other Expert.  

In this same Topic Area, open a new question, in the title of the question type, *Points for <expert name>* In the Text Box, type *For your help in my question number 20281432*

The move down to the points area, and choose the blank box and type in 150 and SUBMIT.

This will complete the split you desire.

Kind reagards,
ComTech
CS Admin @ EE
0

Featured Post

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question