By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

Using a popup menu and triggering an action when choosing an item?

P: n/a
Hello,

I'm a newbie in php.
I would like to show a popup menu on my website and update the page when
the user has changed its selection.
I have looked over the Internet but haven't found what I want
(apparently, "Popup menu" is not the correct term, but it's the one I
use in "desktop" programming).

Can someone point me in the right direction?
Aug 19 '08 #1
Share this Question
Share on Google+
9 Replies


P: n/a
On Aug 19, 3:26*pm, Anic297 <h...@nowhere.mkwrote:
I would like to show a popup menu on my website and update the page when
the user has changed its selection.
For the menu, you can try searching for "css menu" or "dhtml menu",
since the menu is all HTML, JavaScript and CSS.

When some item in the menu is clicked and a link is followed, then PHP
come into play. An item in the menu can link to your PHP page which
displays something.
Aug 19 '08 #2

P: n/a

Anic297 schreef:
Hello,

I'm a newbie in php.
I would like to show a popup menu on my website and update the page when
the user has changed its selection.
I have looked over the Internet but haven't found what I want
(apparently, "Popup menu" is not the correct term, but it's the one I
use in "desktop" programming).

Can someone point me in the right direction?
Try comp.lang.javascript

Regards,
Erwin Moller

--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 19 '08 #3

P: n/a
Sjoerd a écrit:
For the menu, you can try searching for "css menu" or "dhtml menu",
since the menu is all HTML, JavaScript and CSS.

When some item in the menu is clicked and a link is followed, then PHP
come into play. An item in the menu can link to your PHP page which
displays something.
Thanks, but I would like a simple popup menu like you can see in most
desktop applications.

For now, I have the following, but I don't receive any feedback when the
selection is changed:

<select name="cat" class="input" style="width:170px;font-size:12px;">
<option value="">Anywhere</option>
<option value="news" >News</option>
<option value="folders" >Special folders</option>
<option value="tips >Tips</option>
<option value="download" >Downloads</option>
<option value="processes" >Processes</option>
<option value="faqs" >FAQs</option>
<option value="help" selected="selected">Help</option>
</select>

(the main difference being that this menu can be placed anywhere on the
page). Unless if you have a better idea, I'd like to implement this
standard control. Thanks anyway.

So, now, how do I manage to get when the user changes my menu (made with
the code above) and display another page automatically?
Aug 19 '08 #4

P: n/a
Erwin Moller a écrit:
Anic297 schreef:
>Hello,

I'm a newbie in php.
I would like to show a popup menu on my website and update the page
when the user has changed its selection.
I have looked over the Internet but haven't found what I want
(apparently, "Popup menu" is not the correct term, but it's the one I
use in "desktop" programming).

Can someone point me in the right direction?

Try comp.lang.javascript
Wow, it seems someone just asked this today (and got an answer)!
Thank you!
Aug 19 '08 #5

P: n/a
Sjoerd a écrit:
For the menu, you can try searching for "css menu" or "dhtml menu",
since the menu is all HTML, JavaScript and CSS.

When some item in the menu is clicked and a link is followed, then PHP
come into play. An item in the menu can link to your PHP page which
displays something.
I would like to explain my thoughts about web programming, so, maybe,
you might tell me where I'm wrong.

I do "desktop" programming very often (the main thing I do on computers)
and I find this really easier than "web" programming.
For instance, it's easy to add any interface control on a window (like
popup menus, check boxes, and so on...) in a "desktop" program. In a
"web" script (program?), first it's really harder (you don't have events
when things happen) and the user has just to deactivate JavaScript
(which seems to be a common practice) to simply make a disaster on your
website (because JavaScript seems to be the only way to do things in
several areas).

Is this true?
Aug 19 '08 #6

P: n/a
On Aug 19, 12:02 pm, Anic297 <h...@nowhere.mkwrote:
Sjoerd a écrit:
For the menu, you can try searching for "css menu" or "dhtml menu",
since the menu is all HTML, JavaScript and CSS.
When some item in the menu is clicked and a link is followed, then PHP
come into play. An item in the menu can link to your PHP page which
displays something.

I would like to explain my thoughts about web programming, so, maybe,
you might tell me where I'm wrong.

I do "desktop" programming very often (the main thing I do on computers)
and I find this really easier than "web" programming.
For instance, it's easy to add any interface control on a window (like
popup menus, check boxes, and so on...) in a "desktop" program. In a
"web" script (program?), first it's really harder (you don't have events
when things happen) and the user has just to deactivate JavaScript
(which seems to be a common practice) to simply make a disaster on your
website (because JavaScript seems to be the only way to do things in
several areas).

Is this true?

I too am a desktop programmer transitioning to web based applications.
I believe this is the new paradigm and eventually desktop apps will
fall to the wayside. In the meantime, it is true that everything is
harder to do on the web. What I have discovered is that the world
divides into 2 parts client side and server side. You can get events
and components etc. for the client side but javascript is a must. On
the server side you use PHP...and then you have to know DHTML and CSS.
So it is a fragmented environment to say the least.

My best advice to you is to check out the jQuery library. It is by far
the best resource I have found. The user community is very active and
the library/plugins are everything you will need. As for users turning
off javascript, I do not see how anyone can expect to run a web app
without allowing javascript. If building an app without javascript is
your objective, I do not see how you can do it.

Just my 2 cents worth.

Joh
Aug 20 '08 #7

P: n/a
john6630 a écrit:
On Aug 19, 12:02 pm, Anic297 <h...@nowhere.mkwrote:
>Sjoerd a écrit:
>>For the menu, you can try searching for "css menu" or "dhtml menu",
since the menu is all HTML, JavaScript and CSS.
When some item in the menu is clicked and a link is followed, then PHP
come into play. An item in the menu can link to your PHP page which
displays something.
I would like to explain my thoughts about web programming, so, maybe,
you might tell me where I'm wrong.

I do "desktop" programming very often (the main thing I do on computers)
and I find this really easier than "web" programming.
For instance, it's easy to add any interface control on a window (like
popup menus, check boxes, and so on...) in a "desktop" program. In a
"web" script (program?), first it's really harder (you don't have events
when things happen) and the user has just to deactivate JavaScript
(which seems to be a common practice) to simply make a disaster on your
website (because JavaScript seems to be the only way to do things in
several areas).

Is this true?


I too am a desktop programmer transitioning to web based applications.
I believe this is the new paradigm and eventually desktop apps will
fall to the wayside. In the meantime, it is true that everything is
harder to do on the web. What I have discovered is that the world
divides into 2 parts client side and server side. You can get events
and components etc. for the client side but javascript is a must. On
the server side you use PHP...and then you have to know DHTML and CSS.
So it is a fragmented environment to say the least.

My best advice to you is to check out the jQuery library. It is by far
the best resource I have found. The user community is very active and
the library/plugins are everything you will need. As for users turning
off javascript, I do not see how anyone can expect to run a web app
without allowing javascript. If building an app without javascript is
your objective, I do not see how you can do it.

Just my 2 cents worth.
Yes, I agree with you.
Thank you.
Aug 20 '08 #8

P: n/a

Anic297 schreef:
john6630 a écrit:
>On Aug 19, 12:02 pm, Anic297 <h...@nowhere.mkwrote:
>>Sjoerd a écrit:

For the menu, you can try searching for "css menu" or "dhtml menu",
since the menu is all HTML, JavaScript and CSS.
When some item in the menu is clicked and a link is followed, then PHP
come into play. An item in the menu can link to your PHP page which
displays something.
I would like to explain my thoughts about web programming, so, maybe,
you might tell me where I'm wrong.

I do "desktop" programming very often (the main thing I do on computers)
and I find this really easier than "web" programming.
For instance, it's easy to add any interface control on a window (like
popup menus, check boxes, and so on...) in a "desktop" program. In a
"web" script (program?), first it's really harder (you don't have events
when things happen) and the user has just to deactivate JavaScript
(which seems to be a common practice) to simply make a disaster on your
website (because JavaScript seems to be the only way to do things in
several areas).

Is this true?


I too am a desktop programmer transitioning to web based applications.
I believe this is the new paradigm and eventually desktop apps will
fall to the wayside. In the meantime, it is true that everything is
harder to do on the web. What I have discovered is that the world
divides into 2 parts client side and server side. You can get events
and components etc. for the client side but javascript is a must. On
the server side you use PHP...and then you have to know DHTML and CSS.
So it is a fragmented environment to say the least.

My best advice to you is to check out the jQuery library. It is by far
the best resource I have found. The user community is very active and
the library/plugins are everything you will need. As for users turning
off javascript, I do not see how anyone can expect to run a web app
without allowing javascript. If building an app without javascript is
your objective, I do not see how you can do it.

Just my 2 cents worth.

Yes, I agree with you.
Thank you.
Anic, a warning about JQUERY: Most regulars in comp.lang.javascript
think it is a mess produced by inferior programmers.

Me myself never used it, so I cannot comment on it, but I know the
people that say Jquery is inferior DO know what they are talking about.
And comp.lang.javascript is filled with question concerning JQuery.

That is why I alway develop my own javascript: if you bumb into a
problem, you only have to find the bug in your own code, and not in a
100K lib.

Just a warning. You might get yourself into a bigger mess if you rely on
this package.

Regards,
Erwin Moller

--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 20 '08 #9

P: n/a
Erwin Moller a écrit:
>
Anic297 schreef:
>john6630 a écrit:
>>On Aug 19, 12:02 pm, Anic297 <h...@nowhere.mkwrote:
Sjoerd a écrit:

For the menu, you can try searching for "css menu" or "dhtml menu",
since the menu is all HTML, JavaScript and CSS.
When some item in the menu is clicked and a link is followed, then PHP
come into play. An item in the menu can link to your PHP page which
displays something.
I would like to explain my thoughts about web programming, so, maybe,
you might tell me where I'm wrong.

I do "desktop" programming very often (the main thing I do on
computers)
and I find this really easier than "web" programming.
For instance, it's easy to add any interface control on a window (like
popup menus, check boxes, and so on...) in a "desktop" program. In a
"web" script (program?), first it's really harder (you don't have
events
when things happen) and the user has just to deactivate JavaScript
(which seems to be a common practice) to simply make a disaster on your
website (because JavaScript seems to be the only way to do things in
several areas).

Is this true?
I too am a desktop programmer transitioning to web based applications.
I believe this is the new paradigm and eventually desktop apps will
fall to the wayside. In the meantime, it is true that everything is
harder to do on the web. What I have discovered is that the world
divides into 2 parts client side and server side. You can get events
and components etc. for the client side but javascript is a must. On
the server side you use PHP...and then you have to know DHTML and CSS.
So it is a fragmented environment to say the least.

My best advice to you is to check out the jQuery library. It is by far
the best resource I have found. The user community is very active and
the library/plugins are everything you will need. As for users turning
off javascript, I do not see how anyone can expect to run a web app
without allowing javascript. If building an app without javascript is
your objective, I do not see how you can do it.

Just my 2 cents worth.

Yes, I agree with you.
Thank you.

Anic, a warning about JQUERY: Most regulars in comp.lang.javascript
think it is a mess produced by inferior programmers.

Me myself never used it, so I cannot comment on it, but I know the
people that say Jquery is inferior DO know what they are talking about.
And comp.lang.javascript is filled with question concerning JQuery.

That is why I alway develop my own javascript: if you bumb into a
problem, you only have to find the bug in your own code, and not in a
100K lib.

Just a warning. You might get yourself into a bigger mess if you rely on
this package.
Thank you for your warning. I won't try packages for now, I thimk.
Aug 20 '08 #10

This discussion thread is closed

Replies have been disabled for this discussion.