#8424 closed bug (notabug)
Datepicker error with IE9 and swf object tag
Reported by: | deopard | Owned by: | deopard |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.datepicker | Version: | 1.8.21 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi I a using a datepicker and swfupload component.
Don't know if I should it right it in jquery core ticket. So this is when the bug happens
- Open the datepicker
- Click on the swfUplad's upload button (Which is an object tag with several param tags inside which looks like this.)
<object id="SWFUpload_0" type="application/x-shockwave-flash" data="/Content/swfupload.swf?preventswfcaching=1341379483354" width="109" height="22" class="swfupload"> <param name="wmode" value="transparent"> <param name="movie" value="/Content/swfupload.swf?preventswfcaching=1341379483354"> <param name="quality" value="high"><param name="menu" value="false"> <param name="allowScriptAccess" value="always"> .... others </object>
An exception "Missing instance data for this datepicker" occurs when I click on the object. It doesn't happen in ff, chrome, ie 7 and ie 8. When I debug the source, it looks like the errors happen when it tries to return the data value binded to the object by using $.data.
Change History (9)
comment:1 Changed 11 years ago by
Owner: | set to deopard |
---|---|
Status: | new → pending |
comment:2 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
comment:4 follow-up: 5 Changed 11 years ago by
We are also experiencing this bug using jquery-1.8.3.min.js jquery-ui-1.9.2.custom.min.js jquery.uploadify-3.1.min.js
comment:5 Changed 11 years ago by
Replying to richalger:
We are also experiencing this bug using jquery-1.8.3.min.js jquery-ui-1.9.2.custom.min.js jquery.uploadify-3.1.min.js
Please provide a reduced test case if you'd like us to look into this. You can use this to get started http://jsfiddle.net/tj_vantoll/tRdpr/.
comment:6 follow-up: 7 Changed 9 years ago by
I have created a simplified test case in JSFiddle to replicate this problem in IE9. http://jsfiddle.net/Hpkuw/
To replicate:
- Load the JSFiddle
- Click on SELECT FILES
- Note that a file browser shows up
- Click Cancel
- Click on the datepicker
- Click off of the datepicker
- Click on SELECT FILES again
Expected: The file browser shows up
Actual: The file browser does not show up and instead, the console shows the following error: "SCRIPT5022: Missing instance data for this datepicker".
Note that the duplicate ticket #8993 may have already provided an answer as to why this is happening.
comment:7 follow-up: 8 Changed 9 years ago by
Replying to wmwong:
I have created a simplified test case in JSFiddle to replicate this problem in IE9. http://jsfiddle.net/Hpkuw/
To replicate:
- Load the JSFiddle
- Click on SELECT FILES
- Note that a file browser shows up
- Click Cancel
- Click on the datepicker
- Click off of the datepicker
- Click on SELECT FILES again
Expected: The file browser shows up
Actual: The file browser does not show up and instead, the console shows the following error: "SCRIPT5022: Missing instance data for this datepicker".
Note that the duplicate ticket #8993 may have already provided an answer as to why this is happening.
I'm trying to recreate this, but when I click on "Browse" on that fiddle in IE9 nothing happens. The script works fine in Chrome.
comment:8 follow-up: 9 Changed 9 years ago by
Do you see Browse or SELECT FILES?
When you say nothing happens, are you referring to step 2 or step 7?
Are you seeing anything in the console log?
If it helps, I'm using Browser Mode IE9 and Document Mode IE9 standards, version 9.0.8112.16421 on a Windows 7 machine.
comment:9 Changed 9 years ago by
Replying to wmwong:
Do you see Browse or SELECT FILES?
When you say nothing happens, are you referring to step 2 or step 7?
Are you seeing anything in the console log?
If it helps, I'm using Browser Mode IE9 and Document Mode IE9 standards, version 9.0.8112.16421 on a Windows 7 machine.
Ok I see it now. Thanks for clarifying. To look into this we'd need an example that doesn't use an external plugin, because I'm not sure what would delete the datepicker's data, but the external plugin seems like the most likely culprit. Regardless, this won't be a problem in the rewrite (which is in progress now), so we're unlikely to do anything about this until then. If this is adversely affecting you I'd use some sort of monkey patch technique like the one from #8993.
Can you please provide a reduced test case showing the problem?