Request's URL not set #2344

mbaluta opened this Issue Mar 31, 2012 · 1 comment


None yet
2 participants

mbaluta commented Mar 31, 2012

Hi, I have a Request.HTML instance that handle many onClick events by 'send()' function with additional options provided. I don't set default URL property. My problem is that I can't access URL of the last request in onSuccess or onComplete event. It would be a nice change if one of the arguments of the onSuccess event would be 'options' object which would contain main request options object with options from send function appended. Here is example code:

var changepage = new Request.HTML({
    data: {'some': 'data'},
    method: 'post',
    update: $('content'),
    onSuccess: function() {
        alert(this.options.url); // this alerts empty string

link.addEvent('click', function(event, element) {
    changepage.send({url: element.get('href')});

This comment has been minimized.

Show comment Hide comment

arian Aug 8, 2012


Basically duplicated of #2353


arian commented Aug 8, 2012

Basically duplicated of #2353

@arian arian closed this Aug 8, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment