Re: Webview and databases
Re: Webview and databases
- Subject: Re: Webview and databases
- From: Scott Ellsworth <email@hidden>
- Date: Sat, 15 Oct 2005 12:22:24 -0700
On Oct 15, 2005, at 10:03 AM, Sanri Parov wrote:
I have the goal to show all the results of a query to a database of
mine into an HTML document containing a table.
I don't know where to start to do this rather simple thing; have I
to deal with XML or DOMs ?
Please help me a little bit because I've no great experience in
HTML...
If you do not need this to be embedded into some other application,
and are willing to just browse to a server, you might want to look
into WebObjects. It has a quite cocoa-like feel, even though it is
written in Java. (If you are willing to write in Java, you have many
other options, like Spring/Hibernate, Tapestry/Cayenne, etc., but
that is not really an option for Cocoa folk.)
If you do want to show this output as part of a Cocoa program, then
you need to divide the problem into three steps: get data from
database, generate html from it, and show it to the user. The first
depends on your database - mysql has tools, and SqlLite's maker
offers a library for db access. The second is often best done via a
few routines to hand-roll the HTML. The third is best done by
putting together a webkit view, and pushing the data into a Webkit view.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden