0
autoComplete 용 grails 2.1.0과 grails richui plugin 8.0을 사용하고 있습니다. 파이어 폭스에서 방화 광구가 켜져 있으면 내 문제는 자동 완성 작업입니다. 다른 브라우저에서는 작동하지 않습니다. 결과를 인쇄 할 수있을 때까지 아약스 호출이 백엔드로 연결됩니다. 다음 richui autocomplete with firebug only
<resource:include components="autoComplete" autoComplete="[skin:'default']"/>
및 자동 완성을위한
이<richui:autoComplete name="searchCountry" id="searchCountry" delimChar="," class="countryBox" action="${createLinkTo('dir': 'controller/getCountryList')}"/></td>
이 내가 도움과 제안을 감사 할 것입니다
def getCountryList()
{
println("**********get country list*********")
def locations = Countrylist.findAllByCityLike("%${params.query.trim()}%")
render(contentType: "text/xml"){
results()
{
locations.each { location -> result(){
name(location.city + ", " + location.state)
println("**********get country list*********"+location.city + ", " + location.state)
}
}
}
}
}
내 컨트롤러에 코드 헤드 태그 내 GSP의 코드입니다 .
자바 스크립트 콘솔에 오류가 있습니까? 또한 어떤 console.log() 문도 확인하십시오 - 일부 브라우저에서는 오류가 발생하는 것을 보았습니다. 작동하지 않는 브라우저 버전도 제공하십시오. – aldrin
너무 늦게 회신 해 주셔서 죄송합니다. 콘솔에 오류가없고 ie8, ie9 및 FF (19)에서 테스트 한 모든 브라우저에서 작동하지 않습니다. – Mahi