FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » getting file from <option>
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
getting file from <option> [message #171736] Wed, 19 January 2011 21:02 Go to next message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma: 0
Senior Member
Is it possible from within a listbox to load a file based upon what was
selected?
I have a rather long list of options, 100, and got to thinking, that
instead of having 100 corresponding divisions on the page, why not just one
section?
The options are broken down alphabetically. e.g., A through E.
If a user clicks on something in "C" then load only that file for the "C"
listings.
What are some ways of doing this?
Re: getting file from <option> [message #171908 is a reply to message #171736] Thu, 20 January 2011 19:57 Go to previous message
Leonardo Azpurua is currently offline  Leonardo Azpurua
Messages: 46
Registered: December 2010
Karma: 0
Member
"richard" <member(at)newsguy(dot)com> wrote:
> Is it possible from within a listbox to load a file based upon what
> was
> selected?
> I have a rather long list of options, 100, and got to thinking, that
> instead of having 100 corresponding divisions on the page, why not
> just one
> section?
> The options are broken down alphabetically. e.g., A through E.
> If a user clicks on something in "C" then load only that file for
> the "C"
> listings.
> What are some ways of doing this?

PHP is a server side scripting language (or at least that is its
common usage).

To react to events triggered by the browser user, you need to use a
client side scripting language.

You may get some help if you post your question in a Javascript forum.

--
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: DOS newlines (CR/LF) to Unix format
Next Topic: fatal error: cannot redeclare
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 10:59:54 GMT 2024

Total time taken to generate the page: 0.02207 seconds