Lines Matching refs:options

1158   initialize: function(options) {  argument
1159 this.options = { class in AnonymousFunction15cb1ccb8c00
1168 Object.extend(this.options, options || { });
1170 this.options.method = this.options.method.toLowerCase();
1172 if (Object.isString(this.options.parameters))
1173 this.options.parameters = this.options.parameters.toQueryParams();
1174 else if (Object.isHash(this.options.parameters))
1175 this.options.parameters = this.options.parameters.toObject();
1182 initialize: function($super, url, options) { argument
1183 $super(options);
1190 this.method = this.options.method;
1191 var params = Object.clone(this.options.parameters);
1211 if (this.options.onCreate) this.options.onCreate(response);
1215 this.options.asynchronous);
1217 if (this.options.asynchronous) this.respondToReadyState.bind(this).defer(1);
1222 this.body = this.method == 'post' ? (this.options.postBody || params) : null;
1226 if (!this.options.asynchronous && this.transport.overrideMimeType)
1249 headers['Content-type'] = this.options.contentType +
1250 (this.options.encoding ? '; charset=' + this.options.encoding : '');
1262 if (typeof this.options.requestHeaders == 'object') {
1263 var extras = this.options.requestHeaders;
1293 (this.options['on' + response.status]
1294 || this.options['on' + (this.success() ? 'Success' : 'Failure')]
1301 if (this.options.evalJS == 'force'
1302 || (this.options.evalJS && this.isSameOrigin() && contentType
1308 (this.options['on' + state] || Prototype.emptyFunction)(response, response.headerJSON);
1344 (this.options.onException || Prototype.emptyFunction)(this, exception);
1404 return json.evalJSON(this.request.options.sanitizeJSON ||
1412 var options = this.request.options;
1413 if (!options.evalJSON || (options.evalJSON != 'force' &&
1418 return this.responseText.evalJSON(options.sanitizeJSON ||
1427 initialize: function($super, container, url, options) { argument
1433 options = Object.clone(options);
1434 var onComplete = options.onComplete;
1435 options.onComplete = (function(response, json) { method
1440 $super(url, options);
1445 options = this.options;
1447 if (!options.evalScripts) responseText = responseText.stripScripts();
1450 if (options.insertion) {
1451 if (Object.isString(options.insertion)) {
1452 var insertion = { }; insertion[options.insertion] = responseText;
1455 else options.insertion(receiver, responseText);
1463 initialize: function($super, container, url, options) { argument
1464 $super(options);
1465 this.onComplete = this.options.onComplete;
1467 this.frequency = (this.options.frequency || 2);
1468 this.decay = (this.options.decay || 1);
1478 this.options.onComplete = this.updateComplete.bind(this);
1483 this.updater.options.onComplete = undefined;
1489 if (this.options.decay) {
1491 this.decay * this.options.decay : 1);
1499 this.updater = new Ajax.Updater(this.container, this.url, this.options);
2116 var options = Object.extend({
2147 if (options.setLeft) element.style.left = (p[0] - delta[0] + options.offsetLeft) + 'px';
2148 if (options.setTop) element.style.top = (p[1] - delta[1] + options.offsetTop) + 'px';
2149 if (options.setWidth) element.style.width = source.offsetWidth + 'px';
2150 if (options.setHeight) element.style.height = source.offsetHeight + 'px';
3381 serializeElements: function(elements, options) { argument
3382 if (typeof options != 'object') options = { hash: !!options };
3383 else if (Object.isUndefined(options.hash)) options.hash = true;
3384 var key, value, submitted = false, submit = options.submit;
3402 return options.hash ? data : Object.toQueryString(data);
3407 serialize: function(form, options) { argument
3408 return Form.serializeElements(Form.getElements(form), options);
3468 request: function(form, options) { argument
3469 form = $(form), options = Object.clone(options || { });
3471 var params = options.parameters, action = form.readAttribute('action') || '';
3473 options.parameters = form.serialize(true);
3477 Object.extend(options.parameters, params);
3480 if (form.hasAttribute('method') && !options.method)
3481 options.method = form.method;
3483 return new Ajax.Request(action, options);
3597 opt = element.options[i];
3612 return index >= 0 ? this.optionValue(element.options[index]) : null;
3620 var opt = element.options[i];
4143 clone: function(source, target, options) { argument
4144 options = options || { };
4145 return Element.clonePosition(target, source, options);