<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.10">
</HEAD>
<BODY>
On Fri, 2004-09-10 at 08:09, Ms Soo Chong wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#4115e0"><I>Hi,
I'm a current final year Uni student working on a
web browser that is able to perform a search on a
postgresql table (which is up and running) and
display the results. I'm working on a linux machine
using python and pg module. I'm very new to
programming but willing to learn so it will be very
nice if anyone can give me a hand by showing me some
relevant example that perform similar purposes as mine.
Currently, I'm able to perform a simple query
through the browser by providing a textbox which
allows user to key in the query and display the
result in a dict form. However, I need to do far
more than that, I wish to design a browser that have
some radiobuttons where users are able to select one
or more buttons and enter their keywords in a
textbox, and my script then perform a search
according to the input and display it.
I hope someone is getting what I'm trying to say and
is able to help me.
Thank you for any help, it is greatly appreciated.
Cheers
Shufen
_______________________________________________
PyGreSQL mailing list
PyGreSQL@Vex.Net</FONT>
<A HREF="http://mailman.vex.net/mailman/listinfo/pygresql"><U>http://mailman.vex.net/mailman/listinfo/pygresql</U></I></A></PRE>
</BLOCKQUOTE>
On a non-PyGreSQL note - could you not just process the query, and then filter it through a function that will turn it into some HTML that your rendering engine (Gecko?) can display, complete with buttons and textboxes and suchlike for changing the ordering, performing new queries, etc? Could even work as a plugin to Mozilla or Firefox, presumably (never written one, but it sounds plausible). Your buttons could work by registering a new protocol, which they can target. A URL (URI?) might look like "pgsql://SELECT * FROM my_table" - your buttons, links, etc can target URLs like that.<BR>
<BR>
Hope this helps,
<PRE><TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE><FONT COLOR="#f80000" SIZE="2"> _____</FONT><FONT COLOR="#0000f8" SIZE="2">__ ___ </FONT><FONT COLOR="#f80000" SIZE="2"> ___ </FONT><FONT SIZE="2"> </FONT>
<FONT COLOR="#f80000" SIZE="2"> / ___/</FONT><FONT COLOR="#0000f8" SIZE="2"> / ___ _____/ (_)__</FONT><FONT SIZE="2"> </FONT><FONT COLOR="#f80000" SIZE="2"> / _ \</FONT><FONT COLOR="#0000f8" SIZE="2">__ _____ ___ ___ </FONT>
<FONT COLOR="#f80000" SIZE="2">/ /__</FONT><FONT COLOR="#0000f8" SIZE="2">/ _ \/ _ `/ __/ / / -_)</FONT><FONT SIZE="2"> </FONT><FONT COLOR="#f80000" SIZE="2">/ // /</FONT><FONT COLOR="#0000f8" SIZE="2"> // (_-</ _ \/ _ \</FONT>
<FONT COLOR="#f80000" SIZE="2">\___/</FONT><FONT COLOR="#0000f8" SIZE="2">_//_/\_,_/_/ /_/_/\__/</FONT><FONT SIZE="2"> </FONT><FONT COLOR="#f80000" SIZE="2">/____/</FONT><FONT COLOR="#0000f8" SIZE="2">\_, /___/\___/_//_/</FONT>
<FONT SIZE="2"> </FONT><FONT COLOR="#0000f8" SIZE="2"> /___/ </FONT><FONT SIZE="2"> </FONT>
        <FONT COLOR="#000080">charlie at charlie dyson dot net</FONT></PRE>
</TD>
</TR>
</TABLE>
</PRE>
</BODY>
</HTML>