Solved

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

Posted on 2002-03-25
4
641 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

635 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