SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    May 2004
    Location
    houston
    Posts
    176
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript Dynamic Content...sort of.

    Alright, what I want to do is have a select menu, with 3 usernames... when one of them is selected, I want it to grab information from a database and display it in a textarea or another area like a text field, or what not... can this be done? Thanks for any help.

  2. #2
    SitePoint Zealot tss68nl's Avatar
    Join Date
    Nov 2002
    Location
    Netherlands
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Set up an onclick eventy for the menu, and trigger a javascript function: 1) apply a new style to the selected item, 2) fill a div's innerText or whatnot with the data.

    You can ofcourse use a request with a xmlhttp object (IE only), or a hidden frame (IE & mozilla) to get the data, but it might be easier loading data into a hidden div in the page at the start already. You then just have to find the correct data.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •