Oh ... I was trying to figure out if I am receiving the JSON data
correctly or not. I have removed it and it still does not work.
Unfortunately IE is not giving any error either. It just skips over
the part of the code. I want to add a div and then add a dynamically
generated table in it. One set of json data will provide the table
headings and another set will provide the data itself and then I will
generate the table dynamically. However, I am stuck at inserting the
first div only.

Thanks
Sudheer

On Jul 31, 9:32 am, Ryan Florence <[email protected]> wrote:
> I really doubt this has anything to do with it ... but what's up with:
>
> responseText.each(function(game,index) {
>
> });
>
> On Jul 31, 2009, at 10:24 AM, Sudheer wrote:
>
>
>
> > Hi Friends,
>
> > I am a newbie to Mootools and to this group. I am learning Mootools
> > and it has been a good ride so far. However I am stuck and would
> > appreciate any help on this matter. Here is a small piece of code that
> > is not working in IE6 & 7 (works fine with Firefox). I can create the
> > elements in IE using createElement and appendChild methods.
>
> >    var ajaxRequest = new Request.JSON({
> >        url: url,
> >        method: 'get',
> >        onSuccess: function(responseText) {
> >            responseText.each(function(game,index) {
> >            });
> >            // Lets build the table
> >            var gameLayout = new Element('div', {
> >                'id': 'gameLayout'
> >                });
> >            gameLayout.inject($('rghtWrkCntnr'));
> >        });
> >    });
>
> > Am I missing something? Please help
>
> > Thanks and Cheers
> > Sudheer

Reply via email to