Professional Web Applications Themes

Newbie Question: Disclosure Triangle? - PHP Development

I'd like to have a screen with a list of items, for example, a list of folder names. There would be a triangle on the left of each folder name pointing to it. When the user clicks the triangle, the list opens up to reveal a sub-list of filenames contained in that folder. For the purposes of my project, I don't have to deal with sub-folders. I know how to get PHP to handle the database end of things, and produce HTML that shows the list, and then later, the sublist. I just need to figure out how to get ...

  1. #1

    Default Newbie Question: Disclosure Triangle?

    I'd like to have a screen with a list of items, for example, a list of
    folder names. There would be a triangle on the left of each folder name
    pointing to it. When the user clicks the triangle, the list opens up to
    reveal a sub-list of filenames contained in that folder.

    For the purposes of my project, I don't have to deal with sub-folders.

    I know how to get PHP to handle the database end of things, and produce
    HTML that shows the list, and then later, the sublist. I just need to
    figure out how to get the info about which triangle was clicked, to a
    PHP app, that can then send the updated HTML screen to the user's
    browser.

    What's the correct way to have PHP respond to the click on the triangle?
    Should the triangle be a submit button, or some other type of button?

    Thanks in advance to all for any thoughts on this!


    -Vik
    Vik Rubenfeld Guest

  2. #2

    Default Re: Newbie Question: Disclosure Triangle?

    Why not use the query string for this? I.e. the "triangles" are normal
    links (or linked images or whatever) in the form of
    yourscript.php?folder=foldername
    You can get the value of folder in your PHP script by accessing
    $_GET['folder']

    Or did I understand something wrong? :-)

    Regards,
    johannes

    johannes m.r. Guest

  3. #3

    Default Re: Newbie Question: Disclosure Triangle?

    johannes m.r. <psychososgmx.at> wrote:
    > Why not use the query string for this? I.e. the "triangles" are normal
    > links (or linked images or whatever) in the form of
    > yourscript.php?folder=foldername
    > You can get the value of folder in your PHP script by accessing
    > $_GET['folder']
    This sounds really good. I'm going to research this and post further if
    I have more questions. Thanks very much!


    -Vik
    Vik Rubenfeld Guest

Similar Threads

  1. Newbie Question: Biz Card Template Question
    By Thomas_Porter@adobeforums.com in forum Adobe Indesign Windows
    Replies: 4
    Last Post: May 30th, 08:08 AM
  2. hide the triangle in the tree
    By tansht@gmail.com in forum Macromedia Flex General Discussion
    Replies: 5
    Last Post: February 13th, 09:52 AM
  3. Triangle
    By Andrew Parker in forum Macromedia Freehand
    Replies: 2
    Last Post: June 16th, 04:57 PM
  4. Pen Tool Use Question. (Embarrassingly Newbie Question)
    By Bozo Schmozo in forum Macromedia Flash
    Replies: 0
    Last Post: November 12th, 10:00 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139