저는 FF3와 Safari에서 잘 작동하는 Gears를 사용하고 있습니다. IE6/7 모두 gears_init.js에 나타나는 페이지로드시 "google is undefined"오류를보고합니다. 빠른 웹 검색 결과 Google에서 제공하는 Javascripts가 실제로 IE7에서 문제를 일으키는 것으로 나타났습니다. 아무도 해결 방법에 대한 아이디어가 있습니까?"google is undefined"
0
A
답변
2
IE6/7에는 기어가 설치되어 있지 않기 때문일 수 있습니다. 즉, Google 관련 코드를 사용할 수 없게됩니다.
if (!window.google) {
alert("please install google gears");
}
else {
// gears is available
}
비록 현실에서 당신은 기어를 다운로드하는 사용자에게 경고를 보여주는보다 약간 더 좋은 무언가를하고 싶어 :
당신은 아마 그런 짓을하고 싶습니다.
0
나는 IE8을 사용하고 난 모질라 파이어 폭스에서 잘 작동하지만
if (!window.google || !google.gears) {
if (confirm("This application requires Gears to be installed. Install now?")) {
location.href = "http://code.google.com/apis/gears/install.html"
return;
} else {
addStatus('Gears is not installed', 'error');
return;
}
}
!window.google
잘하지만 두 번째 조건 !google.gears
작동되는 첫 번째 조건은 작동하지 않았다
관련 문제
- 1. $ wnd.google.visualization is undefined
- 2. "this"is undefined
- 3. dojo.data is undefined Fliterering select
- 4. Facebooker + Devise = "like_it"버튼 : "b is undefined"
- 5. jQuery History Plugin Error : $ .history is undefined
- 6. .next is undefined, jquery plugin problem
- 7. jQuery ajaxForm "h is undefined"문제
- 8. yui3 위젯 오류 "this.constructor.NAME is undefined"
- 9. Node.js watchFile 오류입니다. "Undefined is a function"
- 10. javascript 객체를 사용할 때 "G is undefined"
- 11. 표에서 표를 렌더링하는 경우 : "this.mainBody is undefined"
- 12. ShareThis를 사용한 사회 북마크 : javascript error 'SHARETHIS is undefined'
- 13. Facebook : FB.apiClient TypeError : $ wnd.FB.Facebook is undefined "이 오류가 발생하는 이유
- 14. WebResource.axd가 잘못된 내용을 반환하기 때문에 "Sys is undefined"오류가 발생합니다.
- 15. settings.py에서 설정 파일을 가져 오면 ImportException이 발생합니다. 'DJANGO_SETTINGS_MODULE is undefined'
- 16. IE8에서 Google지도 API로드 실패 (''google 'undefined' ')
- 17. markercluster 및 google maps v3 오류 "a undefined"
- 18. javascript undefined
- 19. data.success undefined
- 20. findViewById undefined
- 21. jquery autocomplete : this.menu undefined
- 22. .attr ('href') returns undefined
- 23. jquery scrollto 플러그인을 사용할 수 없습니다 - "targ is undefined ..."오류가 발생합니다.
- 24. Page throwing Undefined
- 25. PHP Undefined Index
- 26. jQuery ajax responseText 'undefined'
- 27. color-theme-install undefined
- 28. MASM StrCmp Undefined?
- 29. jQuery Ajax returns undefined
- 30. Javascript style.opacity undefined
html로 이 있습니까? – Nosredna
@Nosredna, 내 답변이 지연되어 죄송합니다. 예, 내 html로 –