PDA

View Full Version : ASP code displaying on Search Page


claybinion
10-08-2008, 08:09 PM
I have put the code into one of the pages of my intranet. When I go to test it, pressing the submit button leads to just the raw code of the search.asp file. I have enabled ASP on my server as the FAQ said.

Any help would be appreciated.

Here is the code in my HTML

<form action="search.asp" method="get">
<fieldset>
<input name="zoom_query" type="text" id"s" style="width: 130px" />
<input type="submit" value="Search" id="x" />
</fieldset>
</form>

wrensoft
10-08-2008, 11:24 PM
See this FAQ
Q. I've indexed the site, uploaded the files, but I only see the search script code when I open the search page in my browser (or get a prompt asking if i want to download it) (http://www.wrensoft.com/zoom/support/faq_problems.html#seesource)

See also these past posts.
Beginners Question - ASP code showing in browser (http://www.wrensoft.com/forum/showthread.php?t=2805)
ASP version results in text of source code (http://www.wrensoft.com/forum/showthread.php?t=380)

In short, if you are seeing ASP source code, ASP is not correctly installed on the server.

claybinion
10-09-2008, 06:42 PM
I have gone into the server in IIS, enabled ASP, even made sure it wasn't ASP.NET that i was enabling. The same thing even happens when I try and use the java script version. Here are some screen shots.

http://img403.imageshack.us/img403/3617/intranetsearchendql1.th.jpg (http://img403.imageshack.us/my.php?image=intranetsearchendql1.jpg)
http://img133.imageshack.us/img133/9172/intranetfolderor3.th.jpg (http://img133.imageshack.us/my.php?image=intranetfolderor3.jpg)
http://img143.imageshack.us/img143/1083/intranetcodetb1.th.jpg (http://img143.imageshack.us/my.php?image=intranetcodetb1.jpg)

claybinion
10-09-2008, 07:31 PM
Figured everything out. Didn't put in the right Base URL when indexing. Thanks for the links.

Ray
10-10-2008, 12:20 AM
Glad you worked it out. But just to clarify for anyone else, the problem in the screenshots is not related to the base URL.

In the screenshots, you are using the JavaScript version, and you are opening and linking your form action to "search.js". This is incorrect.

You should be opening and linking your form to "search.html".

This is explained in the Users Guide (http://www.wrensoft.com/zoom/usersguide.html) (see the "Files required" chapter for Javascript).