- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI'm using <CFdiv bind="url:mycode.cfm"> to load some particularly slow coldfusion code into the middle of my web page ...
It works great.
BUT ... the inserted code (mycode.cfm) creates a CF-build javascript menu system (populated with menu line items from mysql) ...
Once the <CFdiv completes and my slow code slides into the web page (nicely) ... the Javscript'd menu system is very slight hacked up. The tabbed menu contents are not hidden (waiting to be revealed by a 'mouseover') - and they are instead vertically output stacked in order of loading.
IF I THEN mouse over the tabbed menu items ... the javascript then behaves and all the stacked menu items hide themselves properly and life continues!
SO - I thought (in my amateurish deduction) that if - after the <CFdiv completes - I insert a javascript instruction to setFocus on the first menu tabbed item ... all would be well.
It is not.
SO; ..
suppose my MAIN web page is 'main.cfm' and my <CFdev slow code is 'slow.cfm'
I load main.cfm ... and show the easy top of the page stuff.
Then I use the <CFdev to insert the slow tabbed menu item code
{it loads ok}
THEN I'm using:
<script type="text/javascript">
document.getElementById('t
</script>
In effort to force focus on to the Javascripted Tabbed menu system's first tab called 'tablink1'
IF I run the above javascript inside and at the bottom of the slow.cfm ... I get a javascript error by IE.
IF I run the above javascript below the <CFdev ... and within the mycode.cfm page ... I get nothing! No error and no refocused menu ... just the incorrecly stacked menu items.
AGAIN - ... if I mouseover any of the tabbed menu items in this <CFdev created menu system then everything pulls nicely back into place and life continues.
ANY IDEAS?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: ZvonkoPosted on 2009-05-22 at 10:42:27ID: 24453390
Put inside body tag of your slow.cfm the call:
tById('tab link1').on focus();" >
<body onLoad="document.getElemen