473,320 Members | 1,862 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,320 software developers and data experts.

How do I call javascript functions from a menu when the user clicks on an option?

Hello,
I have a webpage, and I need to display a menu of 4 items...when one
of the items is selected, I want it to call a script that creates the
related pop-up window. I currently have the pop-ups working when the
user clicks on a link on the page, however I need to display it as a
menu instead...

I am using a combination of javascript, html, and lisp.

So currently there are links displayed to the webpage like
Tutorial 1
and when clicked, it calls a script from the lisp code via
(format stream <a href=~ajavascript:ShowTut1('http://blah.edu/tut1.html')~a\;>Tutorial
1</a> #\" #\")
The script to create the popups uses 'this.open'

The actual language isn't of much concern...I'm just not sure how to
call a javascript function from a menu selection using onChange or
something similar. Anyone have an example of how to do that?

Thanks,
Christine
Jul 23 '05 #1
3 1676
wi*********@yahoo.com (Christine) wrote in message news:<26*************************@posting.google.c om>...
Hello,
I have a webpage, and I need to display a menu of 4 items...when one
of the items is selected, I want it to call a script that creates the
related pop-up window. I currently have the pop-ups working when the
user clicks on a link on the page, however I need to display it as a
menu instead...

I am using a combination of javascript, html, and lisp.

So currently there are links displayed to the webpage like
Tutorial 1
and when clicked, it calls a script from the lisp code via
(format stream <a href=~ajavascript:ShowTut1('http://blah.edu/tut1.html')~a\;>Tutorial
1</a> #\" #\")
The script to create the popups uses 'this.open'

The actual language isn't of much concern...I'm just not sure how to
call a javascript function from a menu selection using onChange or
something similar. Anyone have an example of how to do that?

Thanks,
Christine


Christine,

Do you want to perform a function on the: onMouseOver event?

-Charlie
Jul 23 '05 #2
Hi,
I don't think that mouseover will do it...I want to have a dropdown
menu with approx 4 choices. When the user selects one of the choices,
it should trigger the corresponding script. I looked for an example
of this, but the only thing that seems to be anywhere online is using
links as the choices and opening that link in the window using
location.href....I need to call a script that creates a popup window
with static html and times out after a certain period of time. I've
got the other stuff (popup and timer) working, I just need to figure
out the dropdown menu/script part of it. Any ideas?

--Christine
Jul 23 '05 #3
wi*********@yahoo.com (Christine) wrote in message news:<26************************@posting.google.co m>...
Hi,
I don't think that mouseover will do it...I want to have a dropdown
menu with approx 4 choices.
--Christine


Try: http://www.brainjar.com/dhtml/menubar/demo.html
or look for menu stuff here: http://www.alistapart.com/
or here (read this site through): http://www.quirksmode.org/
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
5
by: Mike | last post by:
In my previous post, I wrote: > ... > GOAL: (very simple) Provide a hyperlink which, when clicked, > calls a javascript function which opens a new URL. > ... > PROBLEM: The following code...
4
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage...
8
by: rn5a | last post by:
I have gone through a no. of posts in this NewsGroup regarding my problem but alas, couldn't come across one which would have helped me in resolving the issue. My problem is this: An ASPX Form...
2
by: harishdixit1 | last post by:
Hello friends i developed a tollbar for Firefox browser. Now This toolbar contains a menu item. A web page will be opened by the user of the Toolbar. This Web page source code has included many .JS...
1
by: rmat | last post by:
Hi, I'm an engineering student who's just started working with ASP.NET as part of a training program. The language I am to work with is Javascript, and though I do know how to work with HTML, I...
5
by: sindhu | last post by:
Hello, I want to use Images as menu and menu items using javascript.The aim is that i have images with the menu items. when i click the image on that perticular mmenu item i want an image to be...
7
by: Omicron | last post by:
Hello, I'm lost. Can some one go to the following site and click on the right-hand menu option named, Geneology. It is a Javascript link and will NOT do anything when my friend (who is running...
1
by: Mike | last post by:
Here is my scenario. I just took over an existing asp site that is using a treeview menu on the pages. The treeview is an include file that is an include that is on every page. The issue is, when...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.