Unread 09-14-2007, 12:53 AM
logangreen logangreen is offline
Junior Member
Join Date: Sep 2007
Posts: 5
  #1  
Wink um.trigger and 'you are here' extension

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.e..._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:
Code:
//initialization trigger element ["id"];
um.trigger = "brothercake";



The following code is the php/html that make up the header of every page:
PHP Code:
<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>
Reply With Quote
Unread 09-20-2007, 07:40 PM
logangreen logangreen is offline
Junior Member
Join Date: Sep 2007
Posts: 5
  #2  
Default help please

Any help would really be appreciated. Thanks.

The site has gone live, with a new URL: http://sustainability.ucsb.edu/
Reply With Quote
Unread 10-01-2007, 11:44 PM
logangreen logangreen is offline
Junior Member
Join Date: Sep 2007
Posts: 5
  #3  
Default

seriously, some help on this would be great.
Reply With Quote
Unread 10-02-2007, 02:55 PM
bcarl314 bcarl314 is offline
Senior Member
Join Date: Aug 2007
Posts: 141
  #4  
Default

You probably shouldn't be including the domFunction script - that
functionality is already built into the menu.

Code:
<script type="text/javascript" src="<?=$base_url?>js/domFunction.js"></script>
What happens if you remove that?
Reply With Quote
Unread 10-02-2007, 04:28 PM
logangreen logangreen is offline
Junior Member
Join Date: Sep 2007
Posts: 5
  #5  
Default

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!
Reply With Quote
Unread 10-02-2007, 05:41 PM
bcarl314 bcarl314 is offline
Senior Member
Join Date: Aug 2007
Posts: 141
  #6  
Default

What browser / OS are you using? Seems to work for me. (although I'm on Linux w/ FF2.0 right now).
Reply With Quote
Unread 10-02-2007, 06:23 PM
logangreen logangreen is offline
Junior Member
Join Date: Sep 2007
Posts: 5
  #7  
Default

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!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:44 PM.


Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.