Opened 13 years ago
Closed 10 years ago
#4908 closed feature (fixed)
Support cross-window use of plugins
Reported by: | DaveOnCode | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.10.0 |
Component: | [meta] ui.dev | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
One great jQuery's feature is that you can pass a context for a selector (ie: $("#target", top.document)) and this allows to use functions among different windows/iframes, anyway when jQuery UI attaches its own handlers, the context argument is ignored!
You can reproduce the problem creating an iframe inside a page and by placing into the iframe a code like:
$("#tabs", top.document).tabs();
You will see the tabs rendered in the page but, once you click on any tab you will get: "uncaught exception: jQuery UI Tabs: Mismatching fragment identifier."
These kind of errors are raised by all plugins.
Change History (10)
comment:1 Changed 13 years ago by
Component: | ui.core → [meta] ui.dev |
---|---|
Milestone: | TBD → 1.next |
Priority: | blocker → major |
Type: | bug → feature |
comment:2 Changed 13 years ago by
Summary: | jQuery UI doesn't take into account the context of selector when it binds events handlers → Support cross-window use of plugins |
---|
comment:3 Changed 13 years ago by
comment:4 Changed 12 years ago by
I believe this ticket is the key issue preventing use of jQuery UI in GreaseMonkey.
(I would provide a link but akismet doesn't seem to like me)
comment:8 Changed 10 years ago by
Milestone: | 1.9.0 → 1.10.0 |
---|
comment:9 Changed 10 years ago by
The widget factory provides window and document properties. Once all widgets make consistent use of those, this issue should resolved.
Places where document is accessed directly:
- jquery.ui.core: scrollParent() and zIndex() use document
- datepicker (no use of widget factory)
- draggable
- effect. and effect-transfer
- mouse
- position, for the fraction support test
- resizable
- sortable
Places where window is accessed directly:
- datepicker
- dialog, the position.of property defaults to window
- draggable
- position, for the default within:window
- sortable
- spinner, to access Globalize
comment:10 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Closing fixed as the majority of cases have been handled. The remaining should be covered in the remaining rewrites. Any other issues should be reported as individual bugs.
Can't apply 'sortable' plugin to elements in frame form the top frame. Example: 1.html
2.html
After the button is clicked I try to sort elements in 'frm' frame, but the behavoir of them is realy wierd. For example I need to drag items out of the frame's bounds to see that something is changed. (jqueryui is 1.7.2, jquery 1.3.2)