Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

source code for XML/html

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  SEO Query  
Author Message
wimvlekken

External


Since: Apr 06, 2004
Posts: 3



(Msg. 1) Posted: Sat Apr 10, 2004 11:28 pm
Post subject: source code for XML/html
Archived from groups: alt>www>webmaster (more info?)

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?

Wim Vlekken

 >> Stay informed about: source code for XML/html 
Back to top
Login to vote
reply3

External


Since: Mar 26, 2004
Posts: 13



(Msg. 2) Posted: Sat Apr 10, 2004 11:28 pm
Post subject: Re: source code for XML/html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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
- FAQ: <a style='text-decoration: underline;' href="http://www.aww-faq.org/" target="_blank">www.aww-faq.org/</a>
- Archive: <a style='text-decoration: underline;' href="http://www.google.com/groups?q=alt.www.webmaster" target="_blank">www.google.com/groups?q=alt.www.webmaster</a>
- Contact: <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/" target="_blank">www.andrewu.co.uk/contact/</a>
- Employ me: Front/middle tier ASP developer with WAI & web standards<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: source code for XML/html 
Back to top
Login to vote
wimvlekken

External


Since: Apr 06, 2004
Posts: 3



(Msg. 3) Posted: Sun Apr 11, 2004 10:31 pm
Post subject: Re: source code for XML/html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"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 
Back to top
Login to vote
reply3

External


Since: Mar 26, 2004
Posts: 13



(Msg. 4) Posted: Sun Apr 11, 2004 10:39 pm
Post subject: Re: source code for XML/html [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

BillSpots wrote:
 > Andrew Urquhart wrote:
  >> 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.
 >
 > Thank you, Andrew,
 > I think that I can do it. (descritption < 1000 words!)

Hopefully you mean <1000 characters after URL-encoding, not <1000 words!
Smile
--
Andrew Urquhart
- Contact: <a style='text-decoration: underline;' href="http://www.andrewu.co.uk/contact/" target="_blank">www.andrewu.co.uk/contact/</a>
- Employ me: Front/middle tier ASP developer with WAI & web standards<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: source code for XML/html 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
source code - I write my HTML code and upload it through FTP. But sometimes I'm at work and feel like working on my page but dont have FTP so i go to my page on the web, do a "save as HTML file" and work on it from there and then take it home and then upload...

View Source Code Disabled in I.E.6 - I cannot view the source code for any sites via my I.E.6 and am unable to figure how to enable it. I have tried the help guide within I.E and cannot find a suitable explanation. Any tips for trouble-shooting this would be greatly appreciated.

Free Internal Search Engine in Java with source code - There is a search engine applet that can be used for free at the following address: http://www.in2reach.com/download/java.html The applet also comes with the Java source code that can be downloaded at : http://www.in2reach.com/software.html The source....

Using PHP to rotate HTML code/iframes? - I have something I want to try on my site. But I don't know how to do it, so I was wondering if anyone did if they'd share. I have an account with Amazon Associates and would like to put a dynamic banner on a page. Amazon provides the code that will..

HTML code to show a static pic if Flash not installed - Hi Guys Wonder if you could help. I hate sites that show a bit of swf and simply expect the user to click the ominous looking 'install flash' window. I know quite a few browsers already have flash installed by default now so I'm looking for some..
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]