/    Sign up×
Community /Pin to ProfileBookmark

Popup Menu not working correctly??

Hello all,

I created a navbar in Fireworks and exported it to Dreamweaver to use on my website. This navbar includes one button that has a popup menu to it, but it doesnt seem to work. The rest of the navBar works. When I load the page, it says I have an error, that error being “object expected”. Go to [url]www.digitalonyxdesigns.com[/url] to see this. From there you can view the source code. I will also include the javaScript file mm_menu if anyone thinks that would help them figure out why this just wont work. Thanks for anyones help.

  • Moomancow
  • [upl-file uuid=e867729c-ce28-43a3-82e1-512172c7f56f size=30kB]mm_menu.txt[/upl-file]

    to post a comment
    JavaScript

    22 Comments(s)

    Copy linkTweet thisAlerts:
    @DrDaMourApr 19.2003 — i already answered this man, http://forums.webdeveloper.com/showthread.php?s=&threadid=8039

    you have to change that -17 it is popping up but off yoru screen.

    and the reason it's not wroking this time is you didn't upload the .js file to your webspace

    you have

    <script language="JavaScript1.2" src="mm_menu.js"></script>

    but http://www.digitalonyxdesigns.com/mm_menu.js

    is page not found that is probalby why what i posted earlier didn't work for you, but it did for me
    Copy linkTweet thisAlerts:
    @JonaApr 19.2003 — Yes, I agree. I get an error: "'Menu' is undefined." Uploading the .js file would help...
    Copy linkTweet thisAlerts:
    @MoomancowauthorApr 19.2003 — What is the .js file?? Is that the java script file?? I don't think I can post it here...I tried and it said that this forum doesn't support that type of file. So I copied everything in the mm_menu javascript file into notepad and pasted that .txt file in my first post (I did it for this post too). Thanks

  • - Ian


  • [upl-file uuid=52fe2975-674c-4582-8748-1a25826cb2e5 size=30kB]mm_menu.txt[/upl-file]
    Copy linkTweet thisAlerts:
    @DrDaMourApr 19.2003 — no dude, upload it to your WEBSPACE
    Copy linkTweet thisAlerts:
    @MoomancowauthorApr 19.2003 — oh man. that makes ALOTTA sense. I feel like a moron. Thanks man, ill try it.
    Copy linkTweet thisAlerts:
    @MoomancowauthorApr 20.2003 — Ok, I did upload it to my webspace, but it was already there. So I still have the same problem. Any other idas??

  • - Moomancow
  • Copy linkTweet thisAlerts:
    @JonaApr 20.2003 — Make sure it's in the same folder. I downloaded both of the files (by the way, I still get Error 404: File Not Found when I try to go to http://www.digitalonyxdesigns.com/mm_menu.js ) and put them on my computer. They work on my local disk! The error is, "Menu is undefined" which causes "Object Expected." Meaning, since Menu is undefined, it stops the JS which makes the event handler (onmouseover) call the function that was never read because the Menu didn't exist. In short, I know for a fact you didn't put the mm_menu.js file in the [i]same[/i] folder as the index.html file.
    Copy linkTweet thisAlerts:
    @MoomancowauthorApr 20.2003 — THANK YOU!! It works finally. It was in the images folder, not the main folder. Thank you once again!

  • - Moomancow
  • Copy linkTweet thisAlerts:
    @MoomancowauthorApr 20.2003 — welll..........lol....

    So it kinda worked, but what coordinates should i go with to make it pop up next to the button? right now it's 115,-17,null...but that is off the screen. Any ideas?

  • - Moomancow
  • Copy linkTweet thisAlerts:
    @JonaApr 20.2003 — -17 would probably be your y coordinate (since it's too high upwards). I say, try changing it till you get it right. Start with 60,90,null and change it till you get it aligned to how you want it.
    Copy linkTweet thisAlerts:
    @MoomancowauthorApr 20.2003 — Ya, I've been trying different numbers, but none seem to work. I tired 60,90 90,60 0,0, but none worked. I keep getting an error on the page when it loads, that says : 'jcontainer' is undefined. Where can I define this??
    Copy linkTweet thisAlerts:
    @JonaApr 20.2003 — Try 115,17 and if that doesn't work (wild guess) try 115,+17
    Copy linkTweet thisAlerts:
    @MoomancowauthorApr 20.2003 — Nope, still nothing. I am getting the error on line 106, which is above this href="#" line I've been missing with. Line 106 is as follows...

    <td rowspan="6"><img name="navBar1_r2_c3" src="images/navBar1_r2_c3.gif" width="13" height="170" border="0" alt=""></td>

    It says Char : 16, 'jcontainer' is undefiend. Does that help ya at all??
    Copy linkTweet thisAlerts:
    @JonaApr 20.2003 — Try changing it back to the default and see what happens.
    Copy linkTweet thisAlerts:
    @MoomancowauthorApr 21.2003 — Change what back to the default?? The HTML file?? See, when I view my navBar in Fireworks, and preview it in the browser in fireworks and look at the source code, it is 115 and -17. Why is my browser telling me the error is on line 106, the line that is pasted above?? See that line has nothing to do with the coordinates 115 and -17. Do I have to alter something in line 106??
    Copy linkTweet thisAlerts:
    @JonaApr 21.2003 — Yeah, change the coordinates back to the default. 155,-17. Make sure that works. If it doesn't, then you know your .js file is messed up and you need to re-upload it again or something. The debugger isn't right. It think that because somewhere else the code is messed up, and it can't see it. So it just figures the line... It's not the first time the debugger has lied... ?
    Copy linkTweet thisAlerts:
    @DrDaMourApr 21.2003 — Ok your JS file has changed since i last fixed this problem yo have two problems, both the same thing:

    it had icontainers.length

    it was supposed to be

    i < container.length


    i don't know why this happened, i don't care, just download this attached file, change the extension to .js and upload it to your webspace.

    as to line 106, that's referring to line 106 in your .js file, not the html file.

    And YES YOU DO DO DO DO have to change the -17, you do, ok just trust me, change it. It IS one of your problems.

    [upl-file uuid=a67fc6c3-1861-49fe-8337-612646b3b6e0 size=30kB]mm_menu.txt[/upl-file]
    Copy linkTweet thisAlerts:
    @MoomancowauthorApr 21.2003 — Still working away on this, but Jona....I went to your site, and I don't mean to be picky, but I found an error. If you go to FAQ -> Why do I need a website? and then mouseOver your navBar, I get a no image error thing. Just thought I would let ya know, since you probably would wanna fix it.
    Copy linkTweet thisAlerts:
    @JonaApr 21.2003 — Thanks for telling me, Moomancow... I didn't know you'd actually go to my site! ?

    Anyways, my page appears fine to me. If you're referring to the ALT attribute in it, I put it in there on purpose.
    Copy linkTweet thisAlerts:
    @DrDaMourApr 21.2003 — onMouseOver="MM_showMenu(window.mm_menu_0330231604_0,140,182,null,'images/navBar1_r3_c2'">

    and do i get any thanks?, hell no
    Copy linkTweet thisAlerts:
    @MoomancowauthorApr 21.2003 — Thank you for your help DaMour, but I tinkered with it and got those same coordinates before you posted that. But I do appreciate all your time and effort in solving this problem. Thank you.

  • - Moomancow
  • Copy linkTweet thisAlerts:
    @DrDaMourApr 21.2003 — i copied that directly from your source, what i was referring to was the fact that 10 posts ago (and a thread) i answered your question. Even though you told me many times i was wrong.
    ×

    Success!

    Help @Moomancow spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.17,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...