SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Populate a dynamicaly built dropdown from a text file

    Similar to the post, Populate a dropdown with text file and dynamically update the second drop down, I am looking to dynamically build a dropdown and have it populated with options from a .txt file. The .txt contains the html coded <options>, so I just need to be able to pull each line from the file and append it to the <select>.

    Thank you,
    BGronli

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,684
    Mentioned
    99 Post(s)
    Tagged
    4 Thread(s)
    The code example from Chapter 5 of Bulletproof Ajax shows how to retrieve HTML content from a file, and is the technique that I suggest that you use.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •