yahoo.dataTable service

View: New views
17 Messages — Rating Filter:   Alert me  

yahoo.dataTable service

by Michael Mellinger-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can someone explain how to dynamically populate the rows: [] in the
Yahoo data table?

            <a:widget name="yahoo.dataTable" service="data.json"
                      value="{columns : [
                      { label : 'Title', id : 'title'},
                      { label :'Author', id : 'author'},
                      { label : 'ISBN', id : 'isbn'},
                      { label : 'Description', id : 'description'}
                      ],
                      rows : []}"
                      />

How should the data look in the data.json file?  Also, can I create a
simple data.jsp file that selects from a database and generate the
json data to populate the table?

All this should be doable in 5 minutes or less, right? No glue required?

-Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: yahoo.dataTable service

by Carla Mott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Look at my blog on paging data as it shows this very thing.

http://weblogs.java.net/blog/carlavmott/archive/2007/09/how_to_implemen.html

Yes, you can write a JSP which returns the data in JSON format which
gets loaded directly in a table.  If you are going to page through data
then you may have to write glue code.

Let me know if you still have questions after reading the blog.

Carla


Michael Mellinger wrote:

> Can someone explain how to dynamically populate the rows: [] in the
> Yahoo data table?
>
>             <a:widget name="yahoo.dataTable" service="data.json"
>                       value="{columns : [
>                       { label : 'Title', id : 'title'},
>                       { label :'Author', id : 'author'},
>                       { label : 'ISBN', id : 'isbn'},
>                       { label : 'Description', id : 'description'}
>                       ],
>                       rows : []}"
>                       />
>
> How should the data look in the data.json file?  Also, can I create a
> simple data.jsp file that selects from a database and generate the
> json data to populate the table?
>
> All this should be doable in 5 minutes or less, right? No glue required?
>
> -Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: yahoo.dataTable service

by Michael Mellinger-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Carla,
  The code is from your example!   I borrowed it.  Thanks. :-)  In
fact, your unmodified example gives the same error (changed the book
data to school data).

http://thespanishsite.com/dev.jsp

 It works perfectly on my machine.  I actually posted at the bottom of
the blog a couple of nights about having the table data initialized on
startup.
Anyway, I was hoping someone had seen this kind of initialization
error before.  Gotta be some server or build thing, right?
Maybe I screwed up something in the doAjax() thing?  I wanted to load
your data and mine.

jmaki.doAjax({
    url : "schools.json",
    callback : function(req) {
        books = eval(req.responseText);
        jmaki.log("Loaded DATA....... " + books);
        url : "school.json",
        schools = eval(req.responseText);
        jmaki.log("Loaded School Data....... " + schools);
    }

});

I'm new to JavaScript and JSON so I could have easily done something
wrong.  Stuff seems quite fragile.

-Mike

On Thu, Feb 14, 2008 at 2:24 PM, Carla Mott <Carla.Mott@...> wrote:

> Look at my blog on paging data as it shows this very thing.
>
>  http://weblogs.java.net/blog/carlavmott/archive/2007/09/how_to_implemen.html
>
>  Yes, you can write a JSP which returns the data in JSON format which
>  gets loaded directly in a table.  If you are going to page through data
>  then you may have to write glue code.
>
>  Let me know if you still have questions after reading the blog.
>
>  Carla
>
>
>
>
>  Michael Mellinger wrote:
>  > Can someone explain how to dynamically populate the rows: [] in the
>  > Yahoo data table?
>  >
>  >             <a:widget name="yahoo.dataTable" service="data.json"
>  >                       value="{columns : [
>  >                       { label : 'Title', id : 'title'},
>  >                       { label :'Author', id : 'author'},
>  >                       { label : 'ISBN', id : 'isbn'},
>  >                       { label : 'Description', id : 'description'}
>  >                       ],
>  >                       rows : []}"
>  >                       />
>  >
>  > How should the data look in the data.json file?  Also, can I create a
>  > simple data.jsp file that selects from a database and generate the
>  > json data to populate the table?
>  >
>  > All this should be doable in 5 minutes or less, right? No glue required?
>  >
>  > -Mike
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: users-unsubscribe@...
>  > For additional commands, e-mail: users-help@...
>  >
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: users-unsubscribe@...
>  For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: yahoo.dataTable service

by Carla Mott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mike,

Ok, I recreated the app using the blog and the info I could figure from
your page.  Yours has both a dojo and yahoo table so I have both too.  I
am able to create it and update both tables.  I have not tried applying
the change you have below to use schools just yet.

There seems to be a tag in the page for the fisheye widget but I can't
look at the web app so please look at the directory
<webroot>/resources/dojo/fisheye and see if there are component.js and
component.html files present (there should be a component.css and
widget.json too).  If you dragged the widget into the page using
Netbeans it should have been added.  If you used the ant task it should
have been added too.  If the files are not there then try deleting the
fisheye tag and dragging the widget in again.  You should have the files
in the webapp.

If the files are there and you are still getting this error try
undeplolying and deploying your app.

On to the other issue.  I created a new file called schools.json (which
contains the same data as books.jsp for now).  I updated the doAjax call
to get the data from there and it works.  So the call looks like:


jmaki.doAjax({
//  url : "books.jsp",
   url : "schools.json",
   callback : function(req) {
    books = eval(req.responseText);
    jmaki.log("Loaded Books " + books);
   }
});

This works fine.

I'm trying to figure out what you are trying to do with the doAjax call
you sent.  Do you want to get 2 sets of data (books and schools)?

Finally, to initialize the tables so they are not empty on load you can
add the following code to glue.js.


jmaki.subscribe("/jmaki/runtime/loadComplete", function(args){
    jmaki.publish("/datatable/addRows", { value : books[0]});
});

This will get called when the widgets are loaded and initializes the
tables to the first element in the array. I'll post this to the blog
for others to see.

Let me know if you are able to get things working.  I suggest you do
things in small steps so try to get the fisheye widget up even without
any code in the glue file for now.  Then add more functionality to the
app.  Once I hear back on the question above I can continue to look at this.

Thanks,
Carla




Michael Mellinger wrote:

> Hi Carla,
>   The code is from your example!   I borrowed it.  Thanks. :-)  In
> fact, your unmodified example gives the same error (changed the book
> data to school data).
>
> http://thespanishsite.com/dev.jsp
>
>  It works perfectly on my machine.  I actually posted at the bottom of
> the blog a couple of nights about having the table data initialized on
> startup.
> Anyway, I was hoping someone had seen this kind of initialization
> error before.  Gotta be some server or build thing, right?
> Maybe I screwed up something in the doAjax() thing?  I wanted to load
> your data and mine.
>
> jmaki.doAjax({
>     url : "schools.json",
>     callback : function(req) {
>         books = eval(req.responseText);
>         jmaki.log("Loaded DATA....... " + books);
>         url : "school.json",
>         schools = eval(req.responseText);
>         jmaki.log("Loaded School Data....... " + schools);
>     }
>
> });
>
> I'm new to JavaScript and JSON so I could have easily done something
> wrong.  Stuff seems quite fragile.
>
> -Mike
>
> On Thu, Feb 14, 2008 at 2:24 PM, Carla Mott <Carla.Mott@...> wrote:
>> Look at my blog on paging data as it shows this very thing.
>>
>>  http://weblogs.java.net/blog/carlavmott/archive/2007/09/how_to_implemen.html
>>
>>  Yes, you can write a JSP which returns the data in JSON format which
>>  gets loaded directly in a table.  If you are going to page through data
>>  then you may have to write glue code.
>>
>>  Let me know if you still have questions after reading the blog.
>>
>>  Carla
>>
>>
>>
>>
>>  Michael Mellinger wrote:
>>  > Can someone explain how to dynamically populate the rows: [] in the
>>  > Yahoo data table?
>>  >
>>  >             <a:widget name="yahoo.dataTable" service="data.json"
>>  >                       value="{columns : [
>>  >                       { label : 'Title', id : 'title'},
>>  >                       { label :'Author', id : 'author'},
>>  >                       { label : 'ISBN', id : 'isbn'},
>>  >                       { label : 'Description', id : 'description'}
>>  >                       ],
>>  >                       rows : []}"
>>  >                       />
>>  >
>>  > How should the data look in the data.json file?  Also, can I create a
>>  > simple data.jsp file that selects from a database and generate the
>>  > json data to populate the table?
>>  >
>>  > All this should be doable in 5 minutes or less, right? No glue required?
>>  >
>>  > -Mike
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: users-unsubscribe@...
>>  > For additional commands, e-mail: users-help@...
>>  >
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: users-unsubscribe@...
>>  For additional commands, e-mail: users-help@...
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: yahoo.dataTable service

by Michael Mellinger-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok. Everythings seems to work when I restart the server.  However, it
only works fine for the first browser in.  Then I launch
Firefox/Safari and the jMaki stuff no longer works in the 2nd browser.
 Still works in the first browser until I quit and restart that
browser.

Also, the doAjax() routine is called on every page load for my site.

> jmaki.doAjax({
> //  url : "books.jsp",
>    url : "schools.json",
>    callback : function(req) {
>     books = eval(req.responseText);
>     jmaki.log("Loaded Books " + books);
>    }
> });

This means that I'm loading the data even if I don't need it.  In
theory, this is not going to scale well.  Also, if I want to load
books.json and schools.json in this routine, how is it done?

-Mike

On Feb 15, 2008 2:46 PM, Carla Mott <Carla.Mott@...> wrote:

> Hi Mike,
>
> Ok, I recreated the app using the blog and the info I could figure from
> your page.  Yours has both a dojo and yahoo table so I have both too.  I
> am able to create it and update both tables.  I have not tried applying
> the change you have below to use schools just yet.
>
> There seems to be a tag in the page for the fisheye widget but I can't
> look at the web app so please look at the directory
> <webroot>/resources/dojo/fisheye and see if there are component.js and
> component.html files present (there should be a component.css and
> widget.json too).  If you dragged the widget into the page using
> Netbeans it should have been added.  If you used the ant task it should
> have been added too.  If the files are not there then try deleting the
> fisheye tag and dragging the widget in again.  You should have the files
> in the webapp.
>
> If the files are there and you are still getting this error try
> undeplolying and deploying your app.
>
> On to the other issue.  I created a new file called schools.json (which
> contains the same data as books.jsp for now).  I updated the doAjax call
> to get the data from there and it works.  So the call looks like:
>
>
> jmaki.doAjax({
> //  url : "books.jsp",
>    url : "schools.json",
>    callback : function(req) {
>     books = eval(req.responseText);
>     jmaki.log("Loaded Books " + books);
>    }
> });
>
> This works fine.
>
> I'm trying to figure out what you are trying to do with the doAjax call
> you sent.  Do you want to get 2 sets of data (books and schools)?
>
> Finally, to initialize the tables so they are not empty on load you can
> add the following code to glue.js.
>
>
> jmaki.subscribe("/jmaki/runtime/loadComplete", function(args){
>     jmaki.publish("/datatable/addRows", { value : books[0]});
> });
>
> This will get called when the widgets are loaded and initializes the
> tables to the first element in the array. I'll post this to the blog
> for others to see.
>
> Let me know if you are able to get things working.  I suggest you do
> things in small steps so try to get the fisheye widget up even without
> any code in the glue file for now.  Then add more functionality to the
> app.  Once I hear back on the question above I can continue to look at this.
>
> Thanks,
> Carla
>
>
>
>
>
> Michael Mellinger wrote:
> > Hi Carla,
> >   The code is from your example!   I borrowed it.  Thanks. :-)  In
> > fact, your unmodified example gives the same error (changed the book
> > data to school data).
> >
> > http://thespanishsite.com/dev.jsp
> >
> >  It works perfectly on my machine.  I actually posted at the bottom of
> > the blog a couple of nights about having the table data initialized on
> > startup.
> > Anyway, I was hoping someone had seen this kind of initialization
> > error before.  Gotta be some server or build thing, right?
> > Maybe I screwed up something in the doAjax() thing?  I wanted to load
> > your data and mine.
> >
> > jmaki.doAjax({
> >     url : "schools.json",
> >     callback : function(req) {
> >         books = eval(req.responseText);
> >         jmaki.log("Loaded DATA....... " + books);
> >         url : "school.json",
> >         schools = eval(req.responseText);
> >         jmaki.log("Loaded School Data....... " + schools);
> >     }
> >
> > });
> >
> > I'm new to JavaScript and JSON so I could have easily done something
> > wrong.  Stuff seems quite fragile.
> >
> > -Mike
> >
> > On Thu, Feb 14, 2008 at 2:24 PM, Carla Mott <Carla.Mott@...> wrote:
> >> Look at my blog on paging data as it shows this very thing.
> >>
> >>  http://weblogs.java.net/blog/carlavmott/archive/2007/09/how_to_implemen.html
> >>
> >>  Yes, you can write a JSP which returns the data in JSON format which
> >>  gets loaded directly in a table.  If you are going to page through data
> >>  then you may have to write glue code.
> >>
> >>  Let me know if you still have questions after reading the blog.
> >>
> >>  Carla
> >>
> >>
> >>
> >>
> >>  Michael Mellinger wrote:
> >>  > Can someone explain how to dynamically populate the rows: [] in the
> >>  > Yahoo data table?
> >>  >
> >>  >             <a:widget name="yahoo.dataTable" service="data.json"
> >>  >                       value="{columns : [
> >>  >                       { label : 'Title', id : 'title'},
> >>  >                       { label :'Author', id : 'author'},
> >>  >                       { label : 'ISBN', id : 'isbn'},
> >>  >                       { label : 'Description', id : 'description'}
> >>  >                       ],
> >>  >                       rows : []}"
> >>  >                       />
> >>  >
> >>  > How should the data look in the data.json file?  Also, can I create a
> >>  > simple data.jsp file that selects from a database and generate the
> >>  > json data to populate the table?
> >>  >
> >>  > All this should be doable in 5 minutes or less, right? No glue required?
> >>  >
> >>  > -Mike
> >>  >
> >>  > ---------------------------------------------------------------------
> >>  > To unsubscribe, e-mail: users-unsubscribe@...
> >>  > For additional commands, e-mail: users-help@...
> >>  >
> >>
> >>
> >>  ---------------------------------------------------------------------
> >>  To unsubscribe, e-mail: users-unsubscribe@...
> >>  For additional commands, e-mail: users-help@...
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@...
> > For additional commands, e-mail: users-help@...
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: yahoo.dataTable service

by Michael Mellinger-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The insansity of it all...  I created my own server and my war file
works fine.  Is there some kind of caching issue with Apache?  The
only problem is with DOJO widgets.  All the other widgets seem to work
fine.

My production site (running from eatj.com) doesn't work with the DOJO
widgets doesn't more than once after the inital restart, while my
little Dell laptop running Fedora has no problem.

http://thespanishsite.com/noticia.jsp
http://67.85.3.219:8084/noticia.jsp

http://thespanishsite.com/escuelas.jsp
http://67.85.3.219:8084/escuelas.jsp

The .war is identical.  I even replaced the version of Apache on my
host provider to match what's on my Dell.  Had to keep the same conf/
dir because there were too many differences.  For some reason, the
dtd43.js is not liking something.  Tomorrow, I'll try to find a
readable version of this.  This has to be some kind of caching or
configuration problem on the server.

-Mike

On Feb 15, 2008 5:20 PM, Michael Mellinger <mmellinger66@...> wrote:

> Ok. Everythings seems to work when I restart the server.  However, it
> only works fine for the first browser in.  Then I launch
> Firefox/Safari and the jMaki stuff no longer works in the 2nd browser.
>  Still works in the first browser until I quit and restart that
> browser.
>
> Also, the doAjax() routine is called on every page load for my site.
>
> > jmaki.doAjax({
> > //  url : "books.jsp",
> >    url : "schools.json",
> >    callback : function(req) {
> >     books = eval(req.responseText);
> >     jmaki.log("Loaded Books " + books);
> >    }
> > });
>
> This means that I'm loading the data even if I don't need it.  In
> theory, this is not going to scale well.  Also, if I want to load
> books.json and schools.json in this routine, how is it done?
>
> -Mike
>
>
> On Feb 15, 2008 2:46 PM, Carla Mott <Carla.Mott@...> wrote:
> > Hi Mike,
> >
> > Ok, I recreated the app using the blog and the info I could figure from
> > your page.  Yours has both a dojo and yahoo table so I have both too.  I
> > am able to create it and update both tables.  I have not tried applying
> > the change you have below to use schools just yet.
> >
> > There seems to be a tag in the page for the fisheye widget but I can't
> > look at the web app so please look at the directory
> > <webroot>/resources/dojo/fisheye and see if there are component.js and
> > component.html files present (there should be a component.css and
> > widget.json too).  If you dragged the widget into the page using
> > Netbeans it should have been added.  If you used the ant task it should
> > have been added too.  If the files are not there then try deleting the
> > fisheye tag and dragging the widget in again.  You should have the files
> > in the webapp.
> >
> > If the files are there and you are still getting this error try
> > undeplolying and deploying your app.
> >
> > On to the other issue.  I created a new file called schools.json (which
> > contains the same data as books.jsp for now).  I updated the doAjax call
> > to get the data from there and it works.  So the call looks like:
> >
> >
> > jmaki.doAjax({
> > //  url : "books.jsp",
> >    url : "schools.json",
> >    callback : function(req) {
> >     books = eval(req.responseText);
> >     jmaki.log("Loaded Books " + books);
> >    }
> > });
> >
> > This works fine.
> >
> > I'm trying to figure out what you are trying to do with the doAjax call
> > you sent.  Do you want to get 2 sets of data (books and schools)?
> >
> > Finally, to initialize the tables so they are not empty on load you can
> > add the following code to glue.js.
> >
> >
> > jmaki.subscribe("/jmaki/runtime/loadComplete", function(args){
> >     jmaki.publish("/datatable/addRows", { value : books[0]});
> > });
> >
> > This will get called when the widgets are loaded and initializes the
> > tables to the first element in the array. I'll post this to the blog
> > for others to see.
> >
> > Let me know if you are able to get things working.  I suggest you do
> > things in small steps so try to get the fisheye widget up even without
> > any code in the glue file for now.  Then add more functionality to the
> > app.  Once I hear back on the question above I can continue to look at this.
> >
> > Thanks,
> > Carla
> >
> >
> >
> >
> >
> > Michael Mellinger wrote:
> > > Hi Carla,
> > >   The code is from your example!   I borrowed it.  Thanks. :-)  In
> > > fact, your unmodified example gives the same error (changed the book
> > > data to school data).
> > >
> > > http://thespanishsite.com/dev.jsp
> > >
> > >  It works perfectly on my machine.  I actually posted at the bottom of
> > > the blog a couple of nights about having the table data initialized on
> > > startup.
> > > Anyway, I was hoping someone had seen this kind of initialization
> > > error before.  Gotta be some server or build thing, right?
> > > Maybe I screwed up something in the doAjax() thing?  I wanted to load
> > > your data and mine.
> > >
> > > jmaki.doAjax({
> > >     url : "schools.json",
> > >     callback : function(req) {
> > >         books = eval(req.responseText);
> > >         jmaki.log("Loaded DATA....... " + books);
> > >         url : "school.json",
> > >         schools = eval(req.responseText);
> > >         jmaki.log("Loaded School Data....... " + schools);
> > >     }
> > >
> > > });
> > >
> > > I'm new to JavaScript and JSON so I could have easily done something
> > > wrong.  Stuff seems quite fragile.
> > >
> > > -Mike
> > >
> > > On Thu, Feb 14, 2008 at 2:24 PM, Carla Mott <Carla.Mott@...> wrote:
> > >> Look at my blog on paging data as it shows this very thing.
> > >>
> > >>  http://weblogs.java.net/blog/carlavmott/archive/2007/09/how_to_implemen.html
> > >>
> > >>  Yes, you can write a JSP which returns the data in JSON format which
> > >>  gets loaded directly in a table.  If you are going to page through data
> > >>  then you may have to write glue code.
> > >>
> > >>  Let me know if you still have questions after reading the blog.
> > >>
> > >>  Carla
> > >>
> > >>
> > >>
> > >>
> > >>  Michael Mellinger wrote:
> > >>  > Can someone explain how to dynamically populate the rows: [] in the
> > >>  > Yahoo data table?
> > >>  >
> > >>  >             <a:widget name="yahoo.dataTable" service="data.json"
> > >>  >                       value="{columns : [
> > >>  >                       { label : 'Title', id : 'title'},
> > >>  >                       { label :'Author', id : 'author'},
> > >>  >                       { label : 'ISBN', id : 'isbn'},
> > >>  >                       { label : 'Description', id : 'description'}
> > >>  >                       ],
> > >>  >                       rows : []}"
> > >>  >                       />
> > >>  >
> > >>  > How should the data look in the data.json file?  Also, can I create a
> > >>  > simple data.jsp file that selects from a database and generate the
> > >>  > json data to populate the table?
> > >>  >
> > >>  > All this should be doable in 5 minutes or less, right? No glue required?
> > >>  >
> > >>  > -Mike
> > >>  >
> > >>  > ---------------------------------------------------------------------
> > >>  > To unsubscribe, e-mail: users-unsubscribe@...
> > >>  > For additional commands, e-mail: users-help@...
> > >>  >
> > >>
> > >>
> > >>  ---------------------------------------------------------------------
> > >>  To unsubscribe, e-mail: users-unsubscribe@...
> > >>  For additional commands, e-mail: users-help@...
> > >>
> > >>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@...
> > > For additional commands, e-mail: users-help@...
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@...
> > For additional commands, e-mail: users-help@...
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: yahoo.dataTable service

by Carla Mott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI Michael,

Have you resolved this?  What version of Apache are you running and on
what platform?

We have apps deployed in very similar configurations but details matter.
  We have run into the same problem when running Apache 2.x on Windows
using Dojo .4.3.  Is that your config?

If so can you try Apache 1.x?

Carla

Michael Mellinger wrote:

> The insansity of it all...  I created my own server and my war file
> works fine.  Is there some kind of caching issue with Apache?  The
> only problem is with DOJO widgets.  All the other widgets seem to work
> fine.
>
> My production site (running from eatj.com) doesn't work with the DOJO
> widgets doesn't more than once after the inital restart, while my
> little Dell laptop running Fedora has no problem.
>
> http://thespanishsite.com/noticia.jsp
> http://67.85.3.219:8084/noticia.jsp
>
> http://thespanishsite.com/escuelas.jsp
> http://67.85.3.219:8084/escuelas.jsp
>
> The .war is identical.  I even replaced the version of Apache on my
> host provider to match what's on my Dell.  Had to keep the same conf/
> dir because there were too many differences.  For some reason, the
> dtd43.js is not liking something.  Tomorrow, I'll try to find a
> readable version of this.  This has to be some kind of caching or
> configuration problem on the server.
>
> -Mike
>
> On Feb 15, 2008 5:20 PM, Michael Mellinger <mmellinger66@...> wrote:
>> Ok. Everythings seems to work when I restart the server.  However, it
>> only works fine for the first browser in.  Then I launch
>> Firefox/Safari and the jMaki stuff no longer works in the 2nd browser.
>>  Still works in the first browser until I quit and restart that
>> browser.
>>
>> Also, the doAjax() routine is called on every page load for my site.
>>
>>> jmaki.doAjax({
>>> //  url : "books.jsp",
>>>    url : "schools.json",
>>>    callback : function(req) {
>>>     books = eval(req.responseText);
>>>     jmaki.log("Loaded Books " + books);
>>>    }
>>> });
>> This means that I'm loading the data even if I don't need it.  In
>> theory, this is not going to scale well.  Also, if I want to load
>> books.json and schools.json in this routine, how is it done?
>>
>> -Mike
>>
>>
>> On Feb 15, 2008 2:46 PM, Carla Mott <Carla.Mott@...> wrote:
>>> Hi Mike,
>>>
>>> Ok, I recreated the app using the blog and the info I could figure from
>>> your page.  Yours has both a dojo and yahoo table so I have both too.  I
>>> am able to create it and update both tables.  I have not tried applying
>>> the change you have below to use schools just yet.
>>>
>>> There seems to be a tag in the page for the fisheye widget but I can't
>>> look at the web app so please look at the directory
>>> <webroot>/resources/dojo/fisheye and see if there are component.js and
>>> component.html files present (there should be a component.css and
>>> widget.json too).  If you dragged the widget into the page using
>>> Netbeans it should have been added.  If you used the ant task it should
>>> have been added too.  If the files are not there then try deleting the
>>> fisheye tag and dragging the widget in again.  You should have the files
>>> in the webapp.
>>>
>>> If the files are there and you are still getting this error try
>>> undeplolying and deploying your app.
>>>
>>> On to the other issue.  I created a new file called schools.json (which
>>> contains the same data as books.jsp for now).  I updated the doAjax call
>>> to get the data from there and it works.  So the call looks like:
>>>
>>>
>>> jmaki.doAjax({
>>> //  url : "books.jsp",
>>>    url : "schools.json",
>>>    callback : function(req) {
>>>     books = eval(req.responseText);
>>>     jmaki.log("Loaded Books " + books);
>>>    }
>>> });
>>>
>>> This works fine.
>>>
>>> I'm trying to figure out what you are trying to do with the doAjax call
>>> you sent.  Do you want to get 2 sets of data (books and schools)?
>>>
>>> Finally, to initialize the tables so they are not empty on load you can
>>> add the following code to glue.js.
>>>
>>>
>>> jmaki.subscribe("/jmaki/runtime/loadComplete", function(args){
>>>     jmaki.publish("/datatable/addRows", { value : books[0]});
>>> });
>>>
>>> This will get called when the widgets are loaded and initializes the
>>> tables to the first element in the array. I'll post this to the blog
>>> for others to see.
>>>
>>> Let me know if you are able to get things working.  I suggest you do
>>> things in small steps so try to get the fisheye widget up even without
>>> any code in the glue file for now.  Then add more functionality to the
>>> app.  Once I hear back on the question above I can continue to look at this.
>>>
>>> Thanks,
>>> Carla
>>>
>>>
>>>
>>>
>>>
>>> Michael Mellinger wrote:
>>>> Hi Carla,
>>>>   The code is from your example!   I borrowed it.  Thanks. :-)  In
>>>> fact, your unmodified example gives the same error (changed the book
>>>> data to school data).
>>>>
>>>> http://thespanishsite.com/dev.jsp
>>>>
>>>>  It works perfectly on my machine.  I actually posted at the bottom of
>>>> the blog a couple of nights about having the table data initialized on
>>>> startup.
>>>> Anyway, I was hoping someone had seen this kind of initialization
>>>> error before.  Gotta be some server or build thing, right?
>>>> Maybe I screwed up something in the doAjax() thing?  I wanted to load
>>>> your data and mine.
>>>>
>>>> jmaki.doAjax({
>>>>     url : "schools.json",
>>>>     callback : function(req) {
>>>>         books = eval(req.responseText);
>>>>         jmaki.log("Loaded DATA....... " + books);
>>>>         url : "school.json",
>>>>         schools = eval(req.responseText);
>>>>         jmaki.log("Loaded School Data....... " + schools);
>>>>     }
>>>>
>>>> });
>>>>
>>>> I'm new to JavaScript and JSON so I could have easily done something
>>>> wrong.  Stuff seems quite fragile.
>>>>
>>>> -Mike
>>>>
>>>> On Thu, Feb 14, 2008 at 2:24 PM, Carla Mott <Carla.Mott@...> wrote:
>>>>> Look at my blog on paging data as it shows this very thing.
>>>>>
>>>>>  http://weblogs.java.net/blog/carlavmott/archive/2007/09/how_to_implemen.html
>>>>>
>>>>>  Yes, you can write a JSP which returns the data in JSON format which
>>>>>  gets loaded directly in a table.  If you are going to page through data
>>>>>  then you may have to write glue code.
>>>>>
>>>>>  Let me know if you still have questions after reading the blog.
>>>>>
>>>>>  Carla
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>  Michael Mellinger wrote:
>>>>>  > Can someone explain how to dynamically populate the rows: [] in the
>>>>>  > Yahoo data table?
>>>>>  >
>>>>>  >             <a:widget name="yahoo.dataTable" service="data.json"
>>>>>  >                       value="{columns : [
>>>>>  >                       { label : 'Title', id : 'title'},
>>>>>  >                       { label :'Author', id : 'author'},
>>>>>  >                       { label : 'ISBN', id : 'isbn'},
>>>>>  >                       { label : 'Description', id : 'description'}
>>>>>  >                       ],
>>>>>  >                       rows : []}"
>>>>>  >                       />
>>>>>  >
>>>>>  > How should the data look in the data.json file?  Also, can I create a
>>>>>  > simple data.jsp file that selects from a database and generate the
>>>>>  > json data to populate the table?
>>>>>  >
>>>>>  > All this should be doable in 5 minutes or less, right? No glue required?
>>>>>  >
>>>>>  > -Mike
>>>>>  >
>>>>>  > ---------------------------------------------------------------------
>>>>>  > To unsubscribe, e-mail: users-unsubscribe@...
>>>>>  > For additional commands, e-mail: users-help@...
>>>>>  >
>>>>>
>>>>>
>>>>>  ---------------------------------------------------------------------
>>>>>  To unsubscribe, e-mail: users-unsubscribe@...
>>>>>  For additional commands, e-mail: users-help@...
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@...
>>>> For additional commands, e-mail: users-help@...
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: yahoo.dataTable service

by Michael Mellinger-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No Windows here.  My war works everywhere except on my production box
on http://eatj.com.  Apache Tomcat 6.14 and it looks like Fedora Core
4 (FC4 - a bit old).  It works after a server restart but only for the
first person.

I'm developing on a MacBook Pro and I've also deployed to a Fedora
Core 7 box.  Both are fine.

Here's my prod server.
[mmellinger66@s41 mmellinger66]$ uname -a
Linux s41.eatj.com 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT
2005 i686 i686 i386 GNU/Linux

Always dies early the djd43.js script.  The code is still in
production.  Firebox will show you the line.

http://thespanishsite.com/escuelas.jsp

I expanded out this, so the line # will no longer match the shipped
version (not enough obviously).

39 return {obj:_9,prop:_b};};djd43.evalObjPath=function(_e,_f){if(typeof
_e!="string"){return djd43.global();}if(_e.indexOf(".")==-1){return
djd43.evalProp(_e,djd43.global(),_f);}var
_f=djd43.parseObjPath(_e,djd43.global(),_f);if(_f){return
djd43.evalProp(_f.prop,_f.obj,_f);}return
null;};djd43.errorToString=function(_11){if(!dj_undef("message",_11)){return
_11.message;}else{if(!dj_undef("description",_11)){return
_11.description;}else{return
_11;}}};djd43.raise=function(_12,_13){if(_13){_12=_12+":
"+djd43.errorToString(_13);}else{_12=djd43.errorToString(_12);}try{if(djConfig.isDebug){djd43.hostenv.println("FATAL
exception raised: "+_12);}}catch(e){}throw
_13||Error(_12);};djd43.debug=function(){};djd43.debugShallow=function(obj){};djd43.profile={start:function(){},end:function(){},stop:function(){},dump:function(){}};function
dj_eval(_15){return
dj_global.eval?dj_global.eval(_15):eval(_15);}djd43.unimplemented=function(_16,_17){var
_18="'"+_16+"' not implemented";if(_17!=null){_18+="
"+_17;}djd43.raise(_18);};djd43.deprecated=function(_19,_1a,_1b){var
_1c="DEPRECATED: "+_19;if(_1a){_1c+=" "+_1a;}if(_1b){_1c+=" -- will be
removed in version:
"+_1b;}djd43.debug(_1c);};djd43.render=(function(){function
vscaffold(_1d,_1e){var
tmp={capable:false,support:{builtin:false,plugin:false},prefixes:_1d};for(var
i=0;i<_1e.length;i++){tmp[_1e[i]]=false;}return tmp;}return
{name:"",ver:djd43.version,os:{win:false,linux:false,osx:false},html:vscaffold(["html"],["ie","opera","khtml","safari","moz"]),svg:vscaffold(["svg"],["corel","adobe","batik"]),vml:vscaffold(["vml"],["ie"]),swf:vscaffold(["Swf","Flash","Mm"],["mm"]),swt:vscaffold(["Swt"],["ibm"])};})();djd43.hostenv=(function(){var
_21={isDebug:false,allowQueryConfig:false,baseScriptUri:"",baseRelativePath:"",libraryScriptUri:"",iePreventClobber:false,ieClobberMinimal:true,preventBackButtonFix:true,delayMozLoadingFix:false,searchIds:[],parseWidgets:true};if(typeof
djConfig=="undefined"){djConfig=_21;}else{for(var _22 in
_21){if(typeof djConfig[_22]=="undefined"){djConfig[_22]=_21[_22];}}}return
{name_:"(unset)",version_:"(unset)",getName:function(){return
this.name_;},getVersion:function(){return
this.version_;},getText:function(uri){djd43.unimplemented("getText","uri="+uri);}};})();djd43.hostenv.getBaseScriptUri=function(){if(djConfig.baseScriptUri.length){return
djConfig.baseScriptUri;}var uri=new
String(djConfig.libraryScriptUri||djConfig.baseRelativePath);if(!uri){djd43.raise("Nothing
returned by getLibraryScriptUri(): "+uri);}var
_25=uri.lastIndexOf("/");djConfig.baseScriptUri=djConfig.baseRelativePath;return
djConfig.baseScriptUri;};(function(){var
_26={pkgFileName:"__package__",loading_modules_:{},loaded_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modulePrefixes_:{djd43:{name:"djd43",value:"src"}},setModulePrefix:function(_27,_28){this.modulePrefixes_[_27]={name:_27,value:_28};},moduleHasPrefix:function(_29){var
mp=this.modulePrefixes_;return
Boolean(mp[_29]&&mp[_29].value);},getModulePrefix:function(_2b){if(this.moduleHasPrefix(_2b)){return
this.modulePrefixes_[_2b].value;}return
_2b;},getTextStack:[],loadUriStack:[],loadedUris:[],post_load_:false,modulesLoadedListeners:[],unloadListeners:[],loadNotifying:false};for(var
_2c in _26){djd43.hostenv[_2c]=_26[_2c];}})();djd43.hostenv.loadPath=function(_2d,_2e,cb){var
uri;if(_2d.charAt(0)=="/"||_2d.match(/^\w+:/)){uri=_2d;}else{uri=this.getBaseScriptUri()+_2d;}if(djConfig.cacheBust&&djd43.render.html.capable){uri+="?"+String(djConfig.cacheBust).replace(/\W+/g,"");}try{return
!_2e?this.loadUri(uri,cb):this.loadUriAndCheck(uri,_2e,cb);}catch(e){djd43.debug(e);return
false;}};djd43.hostenv.loadUri=function(uri,cb){if(this.loadedUris[uri]){return
true;}var _33=this.getText(uri,null,true);if(!_33){return
false;}this.loadedUris[uri]=true;if(cb){_33="("+_33+")";}var
_34=dj_eval(_33);if(cb){cb(_34);}return
true;};djd43.hostenv.loadUriAndCheck=function(uri,_36,cb){var
ok=true;try{ok=this.loadUri(uri,cb);}catch(e){djd43.debug("failed
loading ",uri," with error: ",e);}return
Boolean(ok&&this.findModule(_36,false));};djd43.loaded=function(){};djd43.unloaded=function(){};djd43.hostenv.loaded=function(){this.loadNotifying=true;this.post_load_=true;var
mll=this.modulesLoadedListeners;for(var
x=0;x<mll.length;x++){mll[x]();}this.modulesLoadedListeners=[];this.loadNotifying=false;djd43.loaded();};djd43.hostenv.unloaded=function(){var
mll=this.unloadListeners;while(mll.length){(mll.pop())();}djd43.unloaded();};djd43.addOnLoad=function(obj,_3d){var
dh=djd43.hostenv;if(arguments.length==1){dh.modulesLoadedListeners.push(obj);}else{if(arguments.length>1){dh.modulesLoadedListeners.push(function(){obj[_3d]();});}}if(dh.post_load_&&dh.inFlightCount==0&&!dh.loadNotifying){dh.callLoaded();}};djd43.addOnUnload=function(obj,_40){var
dh=djd43.hostenv;if(arguments.length==1){dh.unloadListeners.push(obj);}else{if(arguments.length>1){dh.unloadListeners.push(function(){obj[_40]();});}}};djd43.hostenv.modulesLoaded=function(){if(this.post_load_){return;}if(this.loadUriStack.length==0&&this.getTextStack.length==0){if(this.inFlightCount>0){djd43.debug("files
still in flight!");return;}djd43.hostenv.callLoaded();}};djd43.hostenv.callLoaded=function(){if(typeof
setTimeout=="object"||(djConfig["useXDomain"]&&djd43.render.html.opera)){setTimeout("djd43.hostenv.loaded();",0);}else{djd43.hostenv.loaded();}};djd43.hostenv.getModuleSymbols=function(_42){var
_43=_42.split(".");for(var i=_43.length;i>0;i--){var
_45=_43.slice(0,i).join(".");if((i==1)&&!this.moduleHasPrefix(_45)){_43[0]="../"+_43[0];}else{var
_46=this.getModulePrefix(_45);if(_46!=_45){_43.splice(0,i,_46);break;}}}return
_43;};djd43.hostenv._global_omit_module_check=false;djd43.hostenv.loadModule=function(_47,_48,_49){if(!_47){return;}_49=this._global_omit_module_check||_49;var
_4a=this.findModule(_47,false);if(_4a){return
_4a;}if(dj_undef(_47,this.loading_modules_)){this.addedToLoadingCount.push(_47);}this.loading_modules_[_47]=1;var
_4b=_47.replace(/\./g,"/")+".js";var _4c=_47.split(".");var
_4d=this.getModuleSymbols(_47);var
_4e=((_4d[0].charAt(0)!="/")&&!_4d[0].match(/^\w+:/));var
_4f=_4d[_4d.length-1];var
ok;if(_4f=="*"){_47=_4c.slice(0,-1).join(".");while(_4d.length){_4d.pop();_4d.push(this.pkgFileName);_4b=_4d.join("/")+".js";if(_4e&&_4b.charAt(0)=="/"){_4b=_4b.slice(1);}ok=this.loadPath(_4b,!_49?_47:null);if(ok){break;}_4d.pop();}}else{_4b=_4d.join("/")+".js";_47=_4c.join(".");var
_51=!_49?_47:null;ok=this.loadPath(_4b,_51);if(!ok&&!_48){_4d.pop();while(_4d.length){_4b=_4d.join("/")+".js";ok=this.loadPath(_4b,_51);if(ok){break;}_4d.pop();_4b=_4d.join("/")+"/"+this.pkgFileName+".js";if(_4e&&_4b.charAt(0)=="/"){_4b=_4b.slice(1);}ok=this.loadPath(_4b,_51);if(ok){break;}}}if(!ok&&!_49){djd43.raise("Could
not load '"+_47+"'; last tried
'"+_4b+"'");}}if(!_49&&!this["isXDomain"]){_4a=this.findModule(_47,false);if(!_4a){djd43.raise("symbol
'"+_47+"' is not defined after loading '"+_4b+"'");}}return
_4a;};djd43.hostenv.startPackage=function(_52){var _53=String(_52);var
_54=_53;var _55=_52.split(/\./);if(_55[_55.length-1]=="*"){_55.pop();_54=_55.join(".");}var
_56=djd43.evalObjPath(_54,true);this.loaded_modules_[_53]=_56;this.loaded_modules_[_54]=_56;return
_56;};djd43.hostenv.findModule=function(_57,_58){var
lmn=String(_57);if(this.loaded_modules_[lmn]){return
this.loaded_modules_[lmn];}if(_58){djd43.raise("no loaded module named
'"+_57+"'");}return null;};djd43.kwCompoundRequire=function(_5a){var
_5b=_5a["common"]||[];var
_5c=_5a[djd43.hostenv.name_]?_5b.concat(_5a[djd43.hostenv.name_]||[]):_5b.concat(_5a["default"]||[]);for(var
x=0;x<_5c.length;x++){var
_5e=_5c[x];if(_5e.constructor==Array){djd43.hostenv.loadModule.apply(djd43.hostenv,_5e);}else{djd43.hostenv.loadModule(_5e);}}};djd43.require=function(_5f){djd43.hostenv.loadModule.apply(djd43.hostenv,arguments);};djd43.requireIf=function(_60,_61){var
_62=arguments[0];if((_62===true)||(_62=="common")||(_62&&djd43.render[_62].capable)){var
_63=[];for(var i=1;i<arguments.length;i++){_63.push(arguments[i]);}djd43.require.apply(djd43,_63);}};djd43.requireAfterIf=djd43.requireIf;

-Mike


On Wed, Feb 20, 2008 at 6:56 PM, Carla Mott <Carla.Mott@...> wrote:

> HI Michael,
>
>  Have you resolved this?  What version of Apache are you running and on
>  what platform?
>
>  We have apps deployed in very similar configurations but details matter.
>   We have run into the same problem when running Apache 2.x on Windows
>  using Dojo .4.3.  Is that your config?
>
>  If so can you try Apache 1.x?
>
>  Carla
>
>
>
>  Michael Mellinger wrote:
>  > The insansity of it all...  I created my own server and my war file
>  > works fine.  Is there some kind of caching issue with Apache?  The
>  > only problem is with DOJO widgets.  All the other widgets seem to work
>  > fine.
>  >
>  > My production site (running from eatj.com) doesn't work with the DOJO
>  > widgets doesn't more than once after the inital restart, while my
>  > little Dell laptop running Fedora has no problem.
>  >
>  > http://thespanishsite.com/noticia.jsp
>  > http://67.85.3.219:8084/noticia.jsp
>  >
>  > http://thespanishsite.com/escuelas.jsp
>  > http://67.85.3.219:8084/escuelas.jsp
>  >
>  > The .war is identical.  I even replaced the version of Apache on my
>  > host provider to match what's on my Dell.  Had to keep the same conf/
>  > dir because there were too many differences.  For some reason, the
>  > dtd43.js is not liking something.  Tomorrow, I'll try to find a
>  > readable version of this.  This has to be some kind of caching or
>  > configuration problem on the server.
>  >
>  > -Mike
>  >
>  > On Feb 15, 2008 5:20 PM, Michael Mellinger <mmellinger66@...> wrote:
>  >> Ok. Everythings seems to work when I restart the server.  However, it
>  >> only works fine for the first browser in.  Then I launch
>  >> Firefox/Safari and the jMaki stuff no longer works in the 2nd browser.
>  >>  Still works in the first browser until I quit and restart that
>  >> browser.
>  >>
>  >> Also, the doAjax() routine is called on every page load for my site.
>  >>
>  >>> jmaki.doAjax({
>  >>> //  url : "books.jsp",
>  >>>    url : "schools.json",
>  >>>    callback : function(req) {
>  >>>     books = eval(req.responseText);
>  >>>     jmaki.log("Loaded Books " + books);
>  >>>    }
>  >>> });
>  >> This means that I'm loading the data even if I don't need it.  In
>  >> theory, this is not going to scale well.  Also, if I want to load
>  >> books.json and schools.json in this routine, how is it done?
>  >>
>  >> -Mike
>  >>
>  >>
>  >> On Feb 15, 2008 2:46 PM, Carla Mott <Carla.Mott@...> wrote:
>  >>> Hi Mike,
>  >>>
>  >>> Ok, I recreated the app using the blog and the info I could figure from
>  >>> your page.  Yours has both a dojo and yahoo table so I have both too.  I
>  >>> am able to create it and update both tables.  I have not tried applying
>  >>> the change you have below to use schools just yet.
>  >>>
>  >>> There seems to be a tag in the page for the fisheye widget but I can't
>  >>> look at the web app so please look at the directory
>  >>> <webroot>/resources/dojo/fisheye and see if there are component.js and
>  >>> component.html files present (there should be a component.css and
>  >>> widget.json too).  If you dragged the widget into the page using
>  >>> Netbeans it should have been added.  If you used the ant task it should
>  >>> have been added too.  If the files are not there then try deleting the
>  >>> fisheye tag and dragging the widget in again.  You should have the files
>  >>> in the webapp.
>  >>>
>  >>> If the files are there and you are still getting this error try
>  >>> undeplolying and deploying your app.
>  >>>
>  >>> On to the other issue.  I created a new file called schools.json (which
>  >>> contains the same data as books.jsp for now).  I updated the doAjax call
>  >>> to get the data from there and it works.  So the call looks like:
>  >>>
>  >>>
>  >>> jmaki.doAjax({
>  >>> //  url : "books.jsp",
>  >>>    url : "schools.json",
>  >>>    callback : function(req) {
>  >>>     books = eval(req.responseText);
>  >>>     jmaki.log("Loaded Books " + books);
>  >>>    }
>  >>> });
>  >>>
>  >>> This works fine.
>  >>>
>  >>> I'm trying to figure out what you are trying to do with the doAjax call
>  >>> you sent.  Do you want to get 2 sets of data (books and schools)?
>  >>>
>  >>> Finally, to initialize the tables so they are not empty on load you can
>  >>> add the following code to glue.js.
>  >>>
>  >>>
>  >>> jmaki.subscribe("/jmaki/runtime/loadComplete", function(args){
>  >>>     jmaki.publish("/datatable/addRows", { value : books[0]});
>  >>> });
>  >>>
>  >>> This will get called when the widgets are loaded and initializes the
>  >>> tables to the first element in the array. I'll post this to the blog
>  >>> for others to see.
>  >>>
>  >>> Let me know if you are able to get things working.  I suggest you do
>  >>> things in small steps so try to get the fisheye widget up even without
>  >>> any code in the glue file for now.  Then add more functionality to the
>  >>> app.  Once I hear back on the question above I can continue to look at this.
>  >>>
>  >>> Thanks,
>  >>> Carla
>  >>>
>  >>>
>  >>>
>  >>>
>  >>>
>  >>> Michael Mellinger wrote:
>  >>>> Hi Carla,
>  >>>>   The code is from your example!   I borrowed it.  Thanks. :-)  In
>  >>>> fact, your unmodified example gives the same error (changed the book
>  >>>> data to school data).
>  >>>>
>  >>>> http://thespanishsite.com/dev.jsp
>  >>>>
>  >>>>  It works perfectly on my machine.  I actually posted at the bottom of
>  >>>> the blog a couple of nights about having the table data initialized on
>  >>>> startup.
>  >>>> Anyway, I was hoping someone had seen this kind of initialization
>  >>>> error before.  Gotta be some server or build thing, right?
>  >>>> Maybe I screwed up something in the doAjax() thing?  I wanted to load
>  >>>> your data and mine.
>  >>>>
>  >>>> jmaki.doAjax({
>  >>>>     url : "schools.json",
>  >>>>     callback : function(req) {
>  >>>>         books = eval(req.responseText);
>  >>>>         jmaki.log("Loaded DATA....... " + books);
>  >>>>         url : "school.json",
>  >>>>         schools = eval(req.responseText);
>  >>>>         jmaki.log("Loaded School Data....... " + schools);
>  >>>>     }
>  >>>>
>  >>>> });
>  >>>>
>  >>>> I'm new to JavaScript and JSON so I could have easily done something
>  >>>> wrong.  Stuff seems quite fragile.
>  >>>>
>  >>>> -Mike
>  >>>>
>  >>>> On Thu, Feb 14, 2008 at 2:24 PM, Carla Mott <Carla.Mott@...> wrote:
>  >>>>> Look at my blog on paging data as it shows this very thing.
>  >>>>>
>  >>>>>  http://weblogs.java.net/blog/carlavmott/archive/2007/09/how_to_implemen.html
>  >>>>>
>  >>>>>  Yes, you can write a JSP which returns the data in JSON format which
>  >>>>>  gets loaded directly in a table.  If you are going to page through data
>  >>>>>  then you may have to write glue code.
>  >>>>>
>  >>>>>  Let me know if you still have questions after reading the blog.
>  >>>>>
>  >>>>>  Carla
>  >>>>>
>  >>>>>
>  >>>>>
>  >>>>>
>  >>>>>  Michael Mellinger wrote:
>  >>>>>  > Can someone explain how to dynamically populate the rows: [] in the
>  >>>>>  > Yahoo data table?
>  >>>>>  >
>  >>>>>  >