English 中文(简体)
2. 在 Chrome不工作的搜索场
原标题:Search field not working in Chrome

我在现场有一个搜索文本,似乎在 Chrome和Fox没有适当操作,而是在IE(所有版本)工作。

我是否做过错? 我无法找到为何没有将价值传给“研究人员”的申请。

<div class="searchbox" id="searchbox"> 
    <script type="text/ecmascript"> 
        function RunSearch() { 
            window.location = "http://searcher.myexampledomain.com:8765/query.html?ql=&amp;col=web1&amp;qt=" + document.getElementById("search").value; 
        } 
    </script> 
        <div class="formSrchr"> 
            <input type="text" size="20" name="qt" id="search" value="Search" onfocus="if(this.value ==  Search ) {this.value=  }" onblur="if(this.value ==   ){this.value = Search }" />
            <input type="hidden" name="qlOld" id="qlOld" value="" /> 
            <input type="hidden" name="colOld" id="colOld" value="web1" /> 
            <input type="image" name="imageField" alt="search" src="/_images/search-mag.gif" onclick="RunSearch();" /> 
        </div> 
</div> <!-- /searchbox -->
最佳回答

页: 1

这足够了;

http://searcher.myexampledomain.com:8765/query.html?ql=&col=web1&qt=+ document.getElementById(“search”);。

问题回答
<script type="text/ecmascript"> 

Is maybe the problem, and cause the difference of reaction between browsers. Try to change it in :

<script type="text/javascript"> 




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签