PDA

View Full Version : Javascript method troubles


designer22
10-24-2008, 01:42 PM
Basically the problem is this:

I do not have the base url of the site and will not have it as it resides on a intranet behind a firewall, so I used "./" as documented in the Help files. The search button code seems to be correct:

<form method="GET" action="../search.js"> (in the DW template, so the resulting code in the linked pages is "search.js")
<input type="text" name="zoom_query" size="14" />
<input type="submit" value="Search" />
</form>

When I test the button, I get a security dialog asking me if I want to open the file search.js instead of showing me the results page. If I look at the search results page directly, it works fine. The issue seems to be the path to the file...any thoughts?

wrensoft
10-24-2008, 09:37 PM
See this FAQ to create a search form (http://www.wrensoft.com/zoom/support/faq_howto.html#searchform).

The form action should point to search.html and not search.js.

designer22
10-24-2008, 09:52 PM
See this FAQ to create a search form (http://www.wrensoft.com/zoom/support/faq_howto.html#searchform).

The form action should point to search.html and not search.js.

I changed the search button code to search.html from search.js - when I enter a word and click on search button I go to the html search results page but it has no entries....what am I missing here? My brains are getting scrambled.

wrensoft
10-26-2008, 07:36 AM
What exactly was on the results pages?
Was it totally empty with no text at all?
Was there a message about no results being found?
What happens if you search for **, as search for ** should match all words and all pages.
If you still have a problem can you zip up your files and E-mail us (http://www.wrensoft.com/contactus.html)the zip file.