Yes, but instead of completely overriding them (and, thus, deleting
the existing settings) you should extend them with your new settings -
which is what ajaxSetup is designed for.
$.ajaxSetup({ ... your settings ... })
--John
On Thu, Jun 25, 2009 at 2:54 PM, Etienne
Robillard<[email protected]> wrote:
> Hi John,
>
> I think I've seen that part. As I said in my earlier post, I think
> the problem is because I'm overriding $.ajaxSettings (not ajaxSetup),
> which has the effect of making that constructor useless in my use case.
>
> Thus, is it still possible (or allowed) to override $.ajaxSettings in
> 1.3.2 ?
>
> Best regards,
> Etienne
>
>
>
> John Resig wrote:
>> You can see the default implementation here:
>> http://dev.jquery.com/browser/trunk/jquery/src/ajax.js#L158
>>
>> --John
>>
>>
>>
>> On Thu, Jun 25, 2009 at 2:29 PM, Etienne
>> Robillard<[email protected]> wrote:
>>> Hi flesler,
>>>
>>> Well if you do provide a fallback then please show me the relevant
>>> part in the code cause I didn't find it anywhere.
>>>
>>> Thank you,
>>>
>>> Etienne
>>>
>>>
>>> jQuery wrote:
>>>> #4820: fallback xhr transport missing in 1.3.2
>>>> ----------------------+-----------------------------------------------------
>>>> Reporter: erob | Owner:
>>>> Type: bug | Status: closed
>>>> Priority: minor | Milestone: 1.3.3
>>>> Component: ajax | Version: 1.3.2
>>>> Resolution: invalid | Keywords: xhr
>>>> Need: Review |
>>>> ----------------------+-----------------------------------------------------
>>>> Changes (by flesler):
>>>>
>>>> * cc: erob (added)
>>>> * status: new => closed
>>>> * resolution: => invalid
>>>>
>>>>
>>>> Comment:
>>>>
>>>> We do provide a default implementation (obviously!).
>>>> The settings passed to $.ajax are extended with $.ajaxSettings which
>>>> contains the default implementation.
>>>>
>>>
>>> --
>>> Etienne Robillard <[email protected]>
>>> Green Tea Hackers Club <http://gthc.org/>
>>> Blog: <http://gthc.org/blog/>
>>> PGP Fingerprint: AED6 B33B B41D 5F4F A92A 2B71 874C FB27 F3A9 BDCC
>>>
>>
>
>
> --
> Etienne Robillard <[email protected]>
> Green Tea Hackers Club <http://gthc.org/>
> Blog: <http://gthc.org/blog/>
> PGP Fingerprint: AED6 B33B B41D 5F4F A92A 2B71 874C FB27 F3A9 BDCC
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---