#10135 closed defect (bug) (fixed)
JavaScript Error In post.js When Using Internet Explorer
| Reported by: | brianwhite | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.8.1 |
| Component: | JavaScript | Version: | 2.8 |
| Severity: | normal | Keywords: | has-patch reporter-feedback Internet Explorer JavaScript |
| Cc: | Focuses: |
Description
When using Internet Explorer (but not Firefox) I receive the dreaded error "Object doesn't support this property or method" I traced the error to line 217 of post.dev.js. Evidently, IE doesn't like the way the autosave function is declared inside of the if statement. The solution was to replace "autosave = function(){};" with "var autosave = function(){};" There were no problems in Firefox regardless of how autosave was declared. It was a simple change, however, I have still attached a patch with the above change.
Steps to reproduce. Access any admin page where post.js will be loaded and autosave.js is not using Internet Explorer.
Attachments (2)
Change History (9)
#3
@
17 years ago
- Keywords reporter-feedback added; commit removed
@brianwhite - andrew is having issues reproducing, and, please try this:
document.autosave = ...
#5
@
17 years ago
Using Internet Explore 8 on Windows Vista.
- Everything worked fine when using document.autosave.
- Everything also worked fine when using window.autosave.
I do not know why IE doesn't like autosave by itself. Neither prefix should be required.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch for post.dev.js