Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Bay_Ridah26 #1
Calling Javascript function using MM_Menu code
Hello All,
I am trying to call a javascript function in a drop-down menu create from
Fireworks the old "MM_Menu" code.
I want my javascript to make an Alert window pop open then have the users
e-mail client open up to send an e-mail. I have it working by just opening the
e-mail client, but when I try to get the javascript function to work, the
e-mail client opening doens't work. If anyone can help me I would greatly
appreciate it.
This is the javascript code I have on the page:
function emailAlert () {
alert ("Personal account numbers should not be sent through e-mail.");
}
This is the line of code I'm working on, currently it opens up my e-mail
client when you click on this option in the drop-down menu:
mm_menu_1115163200_2.addMenuItem("Contact Us" ,"location='mailto:info@test.c
om'");
I tried this and was able to get the javascript function to work, but then my
e-mail client wouldn't open up
mm_menu_1115163200_2.addMenuItem("Contact Us" ,"location='mailto:info@test.c
om'");
Bay_Ridah26 Guest
-
Calling Flash function from Javascript
Hi everyone, I am desperately trying to call a Flash function (myfunction) from javascript... I believe the function has to be made accessible by... -
Calling a javascript function from flash
Is it possible to call script functions from a flash object that the flash object will only be able to access once it is placed on an html page? ... -
calling a flash function from Javascript
Hello everybody I want to call an ActionScript from the Website maybe using fscommand, but I don't know how to do it. Can anybody help me to... -
Calling c# code from javascript
Hi, Can one call a c# function from within a javascript function ? I have a c# > function GetLanguageItem(title), how can I call the above... -
Calling Javascript function
Hi all, Can i call my javascript functions from the web controls.Any appropriate site which will be tell more on this will be helpfull. ... -
T.Pastrana - 4Level #2
Re: Calling Javascript function using MM_Menu code
<script language="javascript" type="text/javascript">
function emailAlert(){
alert ("Personal account numbers should not be sent through e-mail.");
document.location="mailto:admin@site.com";
}
</script>
mm_menu_1115163200_2.addMenuItem("Contact Us" ,"emailAlert()");
--
Regards,
...Trent Pastrana
[url]www.fourlevel.com[/url]
Dreamweaver Designer Tools
iFrameSuite | MiniMenus | Scroller Packages | More...
-----------------------------
"Bay_Ridah26" <webforumsuser@macromedia.com> wrote in message
news:dcolgl$ci4$1@forums.macromedia.com...> Hello All,
>
> I am trying to call a javascript function in a drop-down menu create from
> Fireworks the old "MM_Menu" code.
>
> I want my javascript to make an Alert window pop open then have the users
> e-mail client open up to send an e-mail. I have it working by just opening
> the
> e-mail client, but when I try to get the javascript function to work, the
> e-mail client opening doens't work. If anyone can help me I would greatly
> appreciate it.
>
> This is the javascript code I have on the page:
> function emailAlert () {
> alert ("Personal account numbers should not be sent through e-mail.");
> }
>
> This is the line of code I'm working on, currently it opens up my e-mail
> client when you click on this option in the drop-down menu:
>
> mm_menu_1115163200_2.addMenuItem("Contact Us" ,"location='mailto:info@test.c
> om'");
>
>
> I tried this and was able to get the javascript function to work, but then
> my
> e-mail client wouldn't open up
>
> mm_menu_1115163200_2.addMenuItem("Contact Us" ,"location='mailto:info@test.c
> om'");
>
T.Pastrana - 4Level Guest
-
Bay_Ridah26 #3
Re: Calling Javascript function using MM_Menu code
Thanks for all your help. it worked perfectly.
Bay_Ridah26 Guest



Reply With Quote

