473,395 Members | 2,222 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

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
9 1762
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

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
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
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
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
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
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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Moon | last post by:
Seems I still haven't got the hang of all those window generating code in Javascript. I've got a page with about 15 photo thumbnails. When you click on a thumbnail a new window pops up which shows...
5
by: Bunny | last post by:
Is there a way to automatically load a page, after the user selects a menu item from a form?
4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
2
by: ouech | last post by:
hi, i finally tryied with a popup menu but i have a problem. i popup it with TrackMenuPopup and i create it from a ressource. but it doesn't look as it should. i d'ont have the names of the...
0
by: Dino M. Buljubasic | last post by:
I have several context menu added to my forms. The forms are displaying items in a list view. When I click on an item in a list view, a popup context menu shows allowing me to chese between...
2
by: SamSpade | last post by:
I use to get popup events when I checked out the menu coding. That was a while ago. Something I did in the interim must have suppressed those events because I just noticed I don't get them any...
3
by: RahimAsif | last post by:
I am writing an application that requires the a portion of the main menu to be dynamic. The menu has file, panels, view files and help across the top. The view files sub menu needs to be...
9
by: john | last post by:
In Paradox I was able to create popup menu's in which some of the items had popup menu's themselves. I've looked for threads on popup menu's and access but I can't find how to make a simple popup...
0
by: benfly08 | last post by:
Hi, I used SWT to develop an windows application. In the application there is a dynamic created popup menu. The dynamic part is that i will pass a list of name to be a submenu of one menu item....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.