Lines Matching refs:options

1359   initialize: function(options) {  argument
1360 this.options = { class in AnonymousFunction87f8306d4200
1369 Object.extend(this.options, options || { });
1371 this.options.method = this.options.method.toLowerCase();
1373 if (Object.isString(this.options.parameters))
1374 this.options.parameters = this.options.parameters.toQueryParams();
1375 else if (Object.isHash(this.options.parameters))
1376 this.options.parameters = this.options.parameters.toObject();
1382 initialize: function($super, url, options) { argument
1383 $super(options);
1390 this.method = this.options.method;
1391 var params = Object.clone(this.options.parameters);
1409 if (this.options.onCreate) this.options.onCreate(response);
1413 this.options.asynchronous);
1415 if (this.options.asynchronous) this.respondToReadyState.bind(this).defer(1);
1420 this.body = this.method == 'post' ? (this.options.postBody || params) : null;
1424 if (!this.options.asynchronous && this.transport.overrideMimeType)
1447 headers['Content-type'] = this.options.contentType +
1448 (this.options.encoding ? '; charset=' + this.options.encoding : '');
1459 if (typeof this.options.requestHeaders == 'object') {
1460 var extras = this.options.requestHeaders;
1490 (this.options['on' + response.status]
1491 || this.options['on' + (this.success() ? 'Success' : 'Failure')]
1498 if (this.options.evalJS == 'force'
1499 || (this.options.evalJS && this.isSameOrigin() && contentType
1505 (this.options['on' + state] || Prototype.emptyFunction)(response, response.headerJSON);
1540 (this.options.onException || Prototype.emptyFunction)(this, exception);
1608 return json.evalJSON(this.request.options.sanitizeJSON ||
1616 var options = this.request.options;
1617 if (!options.evalJSON || (options.evalJSON != 'force' &&
1622 return this.responseText.evalJSON(options.sanitizeJSON ||
1631 initialize: function($super, container, url, options) { argument
1637 options = Object.clone(options);
1638 var onComplete = options.onComplete;
1639 options.onComplete = (function(response, json) { method
1644 $super(url, options);
1649 options = this.options;
1651 if (!options.evalScripts) responseText = responseText.stripScripts();
1654 if (options.insertion) {
1655 if (Object.isString(options.insertion)) {
1656 var insertion = { }; insertion[options.insertion] = responseText;
1659 else options.insertion(receiver, responseText);
1667 initialize: function($super, container, url, options) { argument
1668 $super(options);
1669 this.onComplete = this.options.onComplete;
1671 this.frequency = (this.options.frequency || 2);
1672 this.decay = (this.options.decay || 1);
1682 this.options.onComplete = this.updateComplete.bind(this);
1687 this.updater.options.onComplete = undefined;
1693 if (this.options.decay) {
1695 this.decay * this.options.decay : 1);
1703 this.updater = new Ajax.Updater(this.container, this.url, this.options);
1826 if (el.options && el.options[0]) {
1827 isBuggy = el.options[0].nodeName.toUpperCase() !== "OPTION";
2405 var options = Object.extend({
2430 if (options.setLeft) element.style.left = (p[0] - delta[0] + options.offsetLeft) + 'px';
2431 if (options.setTop) element.style.top = (p[1] - delta[1] + options.offsetTop) + 'px';
2432 if (options.setWidth) element.style.width = source.offsetWidth + 'px';
2433 if (options.setHeight) element.style.height = source.offsetHeight + 'px';
3924 serializeElements: function(elements, options) { argument
3925 if (typeof options != 'object') options = { hash: !!options };
3926 else if (Object.isUndefined(options.hash)) options.hash = true;
3927 var key, value, submitted = false, submit = options.submit;
3944 return options.hash ? data : Object.toQueryString(data);
3949 serialize: function(form, options) { argument
3950 return Form.serializeElements(Form.getElements(form), options);
4015 request: function(form, options) { argument
4016 form = $(form), options = Object.clone(options || { });
4018 var params = options.parameters, action = form.readAttribute('action') || '';
4020 options.parameters = form.serialize(true);
4024 Object.extend(options.parameters, params);
4027 if (form.hasAttribute('method') && !options.method)
4028 options.method = form.method;
4030 return new Ajax.Request(action, options);
4146 opt = element.options[i];
4161 return index >= 0 ? this.optionValue(element.options[index]) : null;
4169 var opt = element.options[i];
4800 clone: function(source, target, options) { argument
4801 options = options || { };
4802 return Element.clonePosition(target, source, options);