"Andrew Urquhart" <reply RemoveThis @website.in.sig> schreef in bericht
news:LDXdc.131$aM2.3@newsfe5-gui.server.ntli.net...
> BillSpots wrote:
> > This is what I like to do:
> > I have an XML database and make a data binding in an HTML page to
> > show the data in a Table.
> > So far no problem.
> > But in that database record there is one field with a large
> > description. That I like to show in another part of the page or
> > another page.
> > I like to have one field of a record ("date" for instance) being a
> > hyperlink to open that datafield with the description.
> >
> > Is this possible in HTML and/or Javascript?
> > Can somebody give me some example code?
>
> The simplest option is to put the data in a title attribute on the tag
> containing your date information. It is possible to attach some
> javascript at this point to display the information somewhere else on
> the page, but the tooltip behaviour of the title attribute is probably
> sufficient.
>
> Alternatively the second page display is easy to do (put could be
> annoying for the end-user having to jump around between pages). How
> large is the 'large' description though? If the description is less than
> 1000 characters or so (after URL-encoding) then you could append it as a
> querystring to the URI of a "display description" page. The description
> page can then de-reference the querystring value and display it, this
> way saves you a database query. If the description is longer then use
> the primary key of the record as the querystring data and do a database
> lookup in the "display description" page and get the description data
> that way. The usual warnings about passing around bits of SQL
> information between client and server apply.
> --
> Andrew Urquhart
<font color=purple> > - FAQ: <a style='text-decoration: underline;' href="http://www.aww-faq.org/</font" target="_blank">www.aww-faq.org/</font</a>>
<font color=purple> > - Archive: <a style='text-decoration: underline;' href="http://www.google.com/groups?q=alt.www.webmaster</font" target="_blank">www.google.com/groups?q=alt.www.webmaster</font</a>>
<font color=purple> > - Contact: <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/</font" target="_blank">www.andrewu.co.uk/contact/</font</a>>
> - Employ me: Front/middle tier ASP developer with WAI & web standards
>
>
Thank you, Andrew,
I think that I can do it. (descritption < 1000 words!)
Wim<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: source code for XML/html