scriptsharp
scriptsharp copied to clipboard
jQuery.support.cors not supported
Hello,
please support the jQuery setting jQuery.support.cors (see http://api.jquery.com/jQuery.support). I need this to force Cross Domain Calls on certain IE browsers.
Cheers Andreas
Edit: Current workaround is Script.Eval("jQuery.support.cors = true;");
Better workaround:
Script.SetField(jQuery.Support, "cors", true)
Almost, never (pretty much a rule with very few exceptions) use Script.Eval. Even if you have to use Script.Eval, consider Script.Literal instead.
And finally, even better, make a change to the jQuery assembly to add the member, so you don't have to resort to late-bound code, and then submit a pull request.