jQWidgets Forums
jQuery UI Widgets › Forums › Dialogs and Notifications › Window › Issue isModal with jqWidgets 2.9.0
This topic contains 5 replies, has 3 voices, and was last updated by stailer 12 years ago.
-
Author
-
Hello,
I think there is a problem with jqxWindow and jqWidgets 2.9 :
<div id=”windowId”>
<div></div>
<div></div>
</div>
<div id=”mId” ></div>$(“windowId”).jqxWindow(); -> OK
$(“windowId”).jqxWindow({ isModal: true }); -> Error Jquery Selector on mId!
Thanks for your response (or solution),
Jean-François
Hello Jean-François,
Please make sure all the ids in your HTML correctly correspond with the ones in your script. If everything is all right, please provide us with a larger code sample for local testing.
On a side note, please format your code as explained in the forum topic Code Formatting when you post in the future.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Ok, i forgot a precision : issue only on Internet Explorer < 9 (my production version is IE8) .
Then it's maybe normal ?Hi Jean-François,
No, there are not such known issue specific to Internet Explorer 8. We cannot be sure what the issue actually is unless you provide us with a larger code.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Stailer,
I have been experiencing similar problems. After much debugging I think I have found what was causing it, for me at least. There are a few possibilities:
1.) Somewhere you mistakenly set “isModal: false” and then proceeded to define “modalOpacity”. These two properties should not co-exist. “modalOpacity” should only be set for windows where “isModal: true”. Simple typo.
2.) invoked two windows that are MODAL at the same time. This could cause unexpected behavior.
3.) invoked a modal window (and opened) before all window bindings are complete….if you have a window that is modal, it might be a good idea to make sure that you don’t call/open that window until all of your bindings are completed. For example, in your code above:
<div id=”windowId”> <div></div> <div></div></div><div id=”mId” ></div>$(“windowId”).jqxWindow({ isModal: true, <strong>autoOpen: false</strong> });
Make sure to set autoOpen to false so it doesnt open before the rest of the code is executed.
-
AuthorPosts
You must be logged in to reply to this topic.