• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 653
  • Last Modified:

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:
      <div id="cf_div1242962771136">
        <div class="menu">
               <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?

  • 2
  • 2
1 Solution
David S.Commented:
Have you tried using this?

rcbuchananAuthor Commented:
Thanks.  Excuse stupidity ...

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

<script type="text/javascript">

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

Any ideas?
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.
rcbuchananAuthor Commented:
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now