Jump to content

Problem with a <form action...> for a search box


Johann

Recommended Posts

Dear W3S friends and supporters, I currently have a problem with a searchbox code. It works perfect on firefox but seems to cause troubles with internet explorer as the page, as soon this code is included, does not work and the browser strikes suddenly. The code looks like this:

<form action="http://www.zugangzureinsicht.org/seek/search.php" method="get"><input type="text" name="query" id="query" size="35" value="" action="http://www.zugangzureinsicht.org/seek/include/js_suggest/suggest.php" columns="2" autocomplete="off" delay="1500"><input type="submit" value="Search"><br></br><div id="querySuggestList" class="SuggestFramework_List" style="position: absolute; z-index: 1; width: 174px; word-wrap: break-word; cursor: default; display: none;"></div><input type="hidden" name="search" value="1"></form>

Maybe it's a php issue, but I am not sure and really not used to use MS internet explorer.The pop up menu for suggestion does also not work within both, but I guess that is a different problem. Do anybody have an idea? Thanks a lot in advanced! sadhu_sangham_sw.gif

Link to comment
Share on other sites

One thing that pops out is 'action' in input element, <input type="text" name="query" id="query" size="35" value="" action ="http://www.zugangzureinsicht.org/seek/include/js_suggest/suggest.php" columns="2" autocomplete="off" delay="1500">that is reserved for 'form' element, 'formaction' is reserved for type 'submit' and 'image' only and not type 'text', also columns ?, delay? where do they come from?

Link to comment
Share on other sites

I thought that is a usual way to integrate such boxes. It really worked fine with the old search engine as well. Here the code look(ed still in use and well also on MS internet explorer) like that:

<form action="http://www.zugangzureinsicht.org/search/search.php" method="post"><input name="query_string" value="" type="text" /><input name="search" value="Suche" type="submit" /></form>

This code was provided by the contribute of the software and the first was shared by a user of another software.This one works well (on both, firefox and MS IE)but the search engine is out of run (so no results but still a request).If you know a different, maybe more proper way how to do such it would be really great to know.sadhu_sangham_sw.gif

Link to comment
Share on other sites

Google does it in that way:

<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">  google.load('search', '1');  google.setOnLoadCallback(function() {    google.search.CustomSearchControl.attachAutoCompletion(	  xxxxxxxxxxxxxxxxxxxxxx',	  document.getElementById('q'),	  'cse-search-box');  });</script>

But here the "old" javascript - problems, aside form special knowledge in all its detail functions. So I would somehow prefer a simple HTML solution like those above seems to be.sadhu_sangham_sw.gif

Link to comment
Share on other sites

I have simply delete the part with "action" in the input element:

<form action="http://www.zugangzureinsicht.org/seek/search.php" method="get"><input type="text" name="query" id="query" size="35" value="" ><input type="submit" value="Search"><br></br><input type="hidden" name="search" value="1"></form>

Works fine and well on firefox but still the same problem with MS I Explorer. So that seems to be not having been the final reason. Do somebody have any Idea? Thanks a lot!

Link to comment
Share on other sites

Okidok, that was all not the issue:If you use Internet Explorer 8 and experience unacceptably slow browser performance when viewing these large files, try switching to "Compatibility View". According to an article on the IE Blog: "A new UI button located in the navigation bar just to the right of the address bar (next to the refresh button) controls the Compatibility View featureā€¦"The code works fine, but its size "problem" and performance of the browser settings.Thanks a lot anyway!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...