Set Focus (?) on Specific CSS Element after AJAX event

Can you help?

I have a css-grid web page with a mix of javascript, coldfusion and ajax.
Midway through the page ... ajax calls a coldfusion component that takes 5 seconds to load ... (it works great!) ...

BUT I need the web page to return focus back to the Javascript EasyTabs rotating tabs function.

I don't have the true expertise to describe ... but the element I need to kick back into action is:
<head>
  <body>
    <span>
      <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>


This is the onmouseover event I need kicked off again ... post ajax'd load of object.

Any ideas?


rcbuchananAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David S.Commented:
Have you tried using this?

document.getElementById('tablink1').focus()
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rcbuchananAuthor Commented:
Krav,
Thanks.  Excuse stupidity ...

I've placed: (below my CF code that creates the tabbed menu items.

<script type="text/javascript">
document.getElementById('tablink1').focus();
</script>

and I get IE kicking back an error saying javascript incorrect.

Any ideas?
0
David S.Commented:
Are you still getting an error in IE or did you fix that?  I would probably need to see an example page to be able to debug such an error.
0
rcbuchananAuthor Commented:
Thanks.
No longer getting the error ... (I placed the above Javascript into the bottom of the AJAX'd code (that builds the javascript'ed menu items) ... and no error but no focus!

If you go to http://www.heaped.com/heap_index.cfm you'll see what I mean!
Middle of page ... (besides the ajax'd code taking 15 seconds (working on that!) to load!) ... you'll see a Tabbed Java menu load ... and the menu items stacked vertically down (ugly!)

IF you mouseover a Tabbed menu item ... it all pulls into place and works perfectly.

Richard
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.