-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Ajax features and add ajax setting in nmObj
- Loading branch information
Showing
3 changed files
with
16 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why specify
dateType
as "text" instead of letting the default jquery behavior of guessing type based on MIME type of response?Specifying dataType causes jquery to also set the
accepts
accordingly, "text/plain" in case ofdataType = "text"
. This caused me problems as my application does different things based onAccept
header.If found that I could override the dataType using the
ajax
key in nyromodal options (which btw is not listed on nyromodal.nyrodev.com) which solved my problem. But it would be better to not specify the dataType by default.