Sorry, the variable in the Request should have also been ajaxOptions.
I screwed up while stripping down the code to show you.  Should be var
req = new Request(ajaxOptions).send();

Thanks,
Rob

On Apr 25, 1:40 pm, robarb <[email protected]> wrote:
> 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