Thanks Arlan.  Here's a stripped down look at what I'm trying to do...

var Ajax = new Class({

        get: function(ajaxOptions) {
                var req = new Request(ajaxObj).send();
        }

});


On Apr 25, 1:03 pm, Arian Stolwijk <[email protected]> wrote:
> Are you trying to do something like:
>
> new Class({
>    request: new Request
>
> });
>
> because that probably won't work (you should pass a request instance later
> to the initialized class instance)
>
> if not could you share some code so we can help you?
>
>
>
> On Mon, Apr 25, 2011 at 9:56 PM, robarb <[email protected]> wrote:
> > Hi. I'm trying to create a class to handle AJAX calls. As soon as I get to
> > the 'new Request' line, Firefox (Firebug) says 'Browser.Request is not a
> > constructor'. If I do the same exact Request outside of my class definition,
> > all is fine. This is probably something simple for an advanced user, but I'm
> > stuck. All help would be appreciated.
>
> > Thanks,
> > Rob

Reply via email to