[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.1

<CFdev bind="url:  ... need to use Javascript AFTER? to SetFocus on Menu Tabs

Asked by rcbuchanan in Cold Fusion Markup Language, JScript, Asynchronous Javascript and XML (AJAX)

I'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('tablink1').focus();
</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?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
<head>
  <body>
    <span>
 
::::: this below menu javascript is created dynamically by Coldfusion inside slow.cfm
 
      <div id="cf_div1242962771136">
        <div class="menu">
           <ul>
             <li>
               <a href="#" onmouseover="easytabs('1','1');" onfocus="easytabs('1','1');" onclick="return false;" title="" id="tablink1" class="tab1">arab</a>
[+][-]05/22/09 10:42 AM, ID: 24453390Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Cold Fusion Markup Language, JScript, Asynchronous Javascript and XML (AJAX)
Sign Up Now!
Solution Provided By: Zvonko
Participating Experts: 1
Solution Grade: B
 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625