Dojo onchange和IE8兼容性问题

时间:2015-08-27 13:11:24

标签: javascript internet-explorer-8 dojo spring-roo

我很高兴我继承了一个用Spring Roo(版本1.3.1)制作的网络应用程序项目,我正在努力完成让它在多个浏览器中兼容的繁琐任务。

更具体地说,我试图让以下几条JS线在IE8下工作:

Traceback (most recent call last):
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 372, in _make_request
    httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 544, in urlopen
    body=body, headers=headers)
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 374, in _make_request
    httplib_response = conn.getresponse()
  File "D:\Program Files (x86)\python343\lib\http\client.py", line 1171, in getresponse
    response.begin()
  File "D:\Program Files (x86)\python343\lib\http\client.py", line 351, in begin
    version, status, reason = self._read_status()
  File "D:\Program Files (x86)\python343\lib\http\client.py", line 321, in _read_status
    raise BadStatusLine(line)
http.client.BadStatusLine: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\adapters.py", line 370, in send
    timeout=timeout
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 597, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\packages\urllib3\util\retry.py", line 245, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\packages\urllib3\packages\six.py", line 309, in reraise
    raise value.with_traceback(tb)
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 544, in urlopen
    body=body, headers=headers)
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 374, in _make_request
    httplib_response = conn.getresponse()
  File "D:\Program Files (x86)\python343\lib\http\client.py", line 1171, in getresponse
    response.begin()
  File "D:\Program Files (x86)\python343\lib\http\client.py", line 351, in begin
    version, status, reason = self._read_status()
  File "D:\Program Files (x86)\python343\lib\http\client.py", line 321, in _read_status
    raise BadStatusLine(line)
requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', BadStatusLine("''",))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\stuff\Mdict\dict by me\odoa\newahktest\CrawlTest2.py", line 14, in <module>
    r=s.get(downurl,headers=header_info,timeout=30) 
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\sessions.py", line 477, in get
    return self.request('GET', url, **kwargs)
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "D:\Program Files (x86)\python343\lib\site-packages\requests\adapters.py", line 415, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', BadStatusLine("''",))

每次特定输入框中的值更改时,都会计算第二个字段的新值。这真的很基本。

该功能在Firefox,Chrome和IE9-11下完美运行,但不使用IE8(原生或兼容模式)。

我不会称自己为JS专家,这是我第一次使用Dojo库,但即使进行了广泛的搜索,我也无法找到其背后的原因。 #34; mulfunctioning&#34;在IE8中。

使用的Dojo版本是1.5。该库包含在spring-js-resources-2.2.1-RELEASE.jar

有人偶然发现了类似问题吗?

感谢任何提示!

0 个答案:

没有答案