PDA

View Full Version : um.trigger and 'you are here' extension


logangreen
09-13-2007, 11:53 PM
I can't get the um.trigger to execute the javascript before the entire page loads. You can see the whole thing in action here http://www.sustainability.isc.ucsb.edu/built/green_buildings.php
Note: I added the huge pic, just for testing.


Here are the details.

I have the following code in the expanding-single.js file:
//initialization trigger element ["id"];
um.trigger = "brothercake";




The following code is the php/html that make up the header of every page:
<script type="text/javascript" src="<?=$base_url?>js/styleswitch.js"></script>

<!-- ULTIMATE DROP DOWN MENU Version 4.5 by Brothercake -->
<!-- http://www.udm4.com/ -->
<script type="text/javascript" src="<?=$base_url?>js/domFunction.js" ></script>
<!-- you are here extension -->
<script type="text/javascript" src="<?=$base_url?>js/udm-x-youarehere.js"></script>
<script type="text/javascript" src="<?=$base_url?>js/expanding-single.js"></script>
<script type="text/javascript" src="<?=$base_url?>js/udm-control.js"></script>
<script type="text/javascript" src="<?=$base_url?>js/udm-style.js" ></script>

</head>
<body class="<?=$body;?>">
<?php //include("navbar.php");?>
<!-- menu script -->
<script type="text/javascript" src="<?=$base_url?>js/udm-dom.js"></script>
<!-- keyboard navigation module -->
<script type="text/javascript" src="<?=$base_url?>js/udm-mod-keyboard.js"></script>





The following HTML comes after the menu:
<div id="brothercake"></div>

logangreen
09-20-2007, 06:40 PM
Any help would really be appreciated. Thanks.

The site has gone live, with a new URL: http://sustainability.ucsb.edu/

logangreen
10-01-2007, 10:44 PM
seriously, some help on this would be great.

bcarl314
10-02-2007, 01:55 PM
You probably shouldn't be including the domFunction script - that
functionality is already built into the menu.


<script type="text/javascript" src="<?=$base_url?>js/domFunction.js"></script>


What happens if you remove that?

logangreen
10-02-2007, 03:28 PM
I removed that script, but it still has the same issue. I setup a test page with a huge picture here...
http://sustainability.ucsb.edu/built/test.php

Thanks for the help!

bcarl314
10-02-2007, 04:41 PM
What browser / OS are you using? Seems to work for me. (although I'm on Linux w/ FF2.0 right now).

logangreen
10-02-2007, 05:23 PM
I'm using Firefox 2.0.0.7 on Windows XP. I added a few more pictures, to exaggerate the delay. Let me know what you think.

http://sustainability.ucsb.edu/built/test.php

Thanks for the help again!