Commit Graph

23 Commits

Author SHA1 Message Date
Tobie Langel 07a16464e8 prototype: use Object.isUndefined where possible. 2007-11-15 21:53:15 +00:00
Tobie Langel b058e24a05 prototype: Make String#isJSON return false for empty or blank strings. Make Ajax.Response#responseJSON null when Ajax.Response#responseText is empty or blank. 2007-11-15 19:37:26 +00:00
Tobie Langel f8ffe7b40f prototype: Make Ajax.Response#_getResponseJSON use Ajax.Response#responseText. 2007-11-15 14:02:25 +00:00
Tobie Langel f870fba94f prototype: Avoid the try..catch block in Ajax.Response#_getResponseJSON unless required. 2007-10-22 12:04:06 +00:00
Tobie Langel 44c9d8937a prototype: Make the Ajax.Response#headerJSON property correctly decode unicode characters. Closes #9285 2007-10-22 11:20:21 +00:00
Tobie Langel db371ddb5a Make Ajax.Response#getHeaderJSON and Ajax.Response#getResponseJSON pseudo private instance methods. 2007-10-13 11:37:26 +00:00
Tobie Langel d25b863c9a Complete rewrite of the Hash class. 2007-10-13 10:55:52 +00:00
Sam Stephenson 5d3fd6f3b7 prototype: Fix Ajax.PeriodicalUpdater for compatibility with Ajax.Response. Closes #9321. 2007-08-21 16:18:07 +00:00
Sam Stephenson 6086db40a7 prototype: Update Template, Selector, Ajax.*, and ObjectRange classes to use the new class system. 2007-08-18 23:21:29 +00:00
Sam Stephenson df71a6b54f prototype: Add Object.isString, Object.isNumber, and Object.isUndefined, and clean up the source to make use of Object.isXXX where possible. 2007-08-08 23:19:45 +00:00
Sam Stephenson c9a0485b60 prototype: Add some missing semicolons to the source tree. Closes #9140. 2007-08-07 19:41:13 +00:00
Sam Stephenson 52cf3f2550 prototype: Merge -r7016:HEAD from ../branches/ajax. Add Ajax.Response object which supports the following methods: responseJSON, headerJSON, getHeader, getAllHeaders and handles browser discrepancies in the other response methods. Add sanitizeJSON, evalJS and evalJSON to Ajax.Request. Closes #8122, #8006, #7295. 2007-08-04 04:40:22 +00:00
Thomas Fuchs ae8d11d819 Prototype: make new insertion syntax work again on Ajax.Updater 2007-06-02 16:32:43 +00:00
Thomas Fuchs d4d4fddc7c Prototype: Change Element.insert syntax to allow multiple positions. 2007-06-02 15:08:50 +00:00
Sam Stephenson 83b4b337e1 Merge -r6634:HEAD from ../branches/dom.
* Make Element#update and Element#insert work for SELECT tags in IE and Opera. [Tobie Langel]

* Make Element#insert and Element#update better handle TABLE related elements in IE and Opera. Closes #7776, #8040, #7550, #7776, #7938. [Tobie Langel]

* Make Element#readAttribute('title') work in Opera. [Tobie Langel]

* Make Element#replace work with form elements in Firefox and Safari. Closes #8010, #7989. [dsl239, Tobie Langel]

* Add Element#wrap which wraps the element inside a new one. Closes #5732. [P. Vande, Tobie Langel]

* Make Element into a constructor: new Element(tagName, attributes). Add Element#writeAttribute which accepts a hash of attributes or a name/value pair. Closes #7476. [Mislav Marohnić, haraldmartin, Tobie Langel]

* Insertion overhaul: Add Element.insert(content[, position = 'Bottom']). Deprecate Insertion (kept for backwards compatibility). Make Ajax.Updater option.insertion accept both Insertion.Top or the now preferred 'Top'. Closes #7907. [Tobie Langel]
2007-05-12 05:01:56 +00:00
Sam Stephenson 562e61fc8c prototype: Add Function#curry, Function#delay, Function#defer, and Function#wrap. Closes #8134. 2007-04-29 05:37:07 +00:00
Sam Stephenson 7a324b859c prototype: Add support for per-request onCreate callbacks to Ajax.Request. Closes #8011. 2007-04-24 03:58:34 +00:00
Sam Stephenson 4174060d5b prototype: Don't call evalResponse() when an Ajax response has no Content-type header. Closes #7827. 2007-04-24 03:34:30 +00:00
Sam Stephenson fea6bc1a21 prototype: Automatically strip security delimiter comments from JSON strings before evaling them. The default delimiter is '/*-secure- ... */' or you can specify your own with the Prototype.JSONFilter regular expression. If you wrap your JSON response bodies in this delimiter on the server side, rogue external sites can't hijack potentially sensitive data via <script> tags. Closes #7910. 2007-04-24 03:31:14 +00:00
Sam Stephenson 225bf0e6ec prototype: remove redundant conditional 2007-01-28 07:34:43 +00:00
Sam Stephenson 343eae8bfc prototype: Add Form.Methods.request as a convenience method for serializing and submitting a form via Ajax.Request to the URL in the form's action attribute. 2007-01-28 07:30:04 +00:00
Sam Stephenson 5345085b33 prototype: Add String.prototype.startsWith, String.prototype.endsWith, and String.prototype.include. Closes #7075. 2007-01-27 18:45:54 +00:00
Sam Stephenson bb4d189b37 prototype: Reorganize the source tree. 2007-01-18 22:24:27 +00:00