By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,795 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,795 IT Pros & Developers. It's quick & easy.

force an event

P: n/a
is there anyway to force an event, like mouseover? I have a page that
loads, and due to some complex js code (not mine) it fails to write
labels to tabs until the user does a mouseover on the tabs. the page
load event happens beforre the tabs are loaded. Once the user
mouseovers the tabs, the labels of the tabs appear, and stay there. it
is irritating. i would like to force a mouseover so the tab names
appear.
thanks

Nov 7 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
co*****@gmail.com said the following on 11/7/2006 4:23 PM:
is there anyway to force an event, like mouseover?
You don't "force" anything on the web.
I have a page that loads, and due to some complex js code (not mine)
it fails to write labels to tabs until the user does a mouseover on
the tabs.
Then get better code.
the page load event happens beforre the tabs are loaded.
The page onload even fires before the tabs in the page are loaded? No it
doesn't. The onload event doesn't fire until the page is loaded - and
that includes "tabs" - whatever that is.
Once the user mouseovers the tabs, the labels of the tabs appear,
and stay there.
call the function programatically that shows the tabs. If it is
showTab() then onload of the "tabs" (whatever you are referring to as a
tab) you call that function via script.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 7 '06 #2

P: n/a
Thanks to Randy for his insightful comments. But there still is a bit
of miscommunication....

"You don't "force" anything on the web."
Not understood. What I wanted to do was to put a statement
in my javascript code that said "here be dragons---so make a
mouseclick". Anyway, I force things all the time on the web. This is
called "programming".

"Then get better code."
Not an option.

"The onload event doesn't fire until the page is loaded..."
No, I inserted all sorts of alert boxes and response.flush
commands to be sure. The page is loaded first, and then the tabs
appear.

In any event (no pun intended) the solution was to insert a tab.focus()
command into the script.

Thanks
joe
On Nov 7, 5:35 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
cott...@gmail.com said the following on 11/7/2006 4:23 PM:
is there anyway to force an event, like mouseover?You don't "force" anything on the web.
I have a page that loads, and due to some complex js code (not mine)
it fails to write labels to tabs until the user does a mouseover on
the tabs. Then get better code.
the page load event happens beforre the tabs are loaded. The page onload even fires before the tabs in the page are loaded? No it
doesn't. The onload event doesn't fire until the page is loaded - and
that includes "tabs" - whatever that is.
Once the user mouseovers the tabs, the labels of the tabs appear,
and stay there. call the function programatically that shows the tabs. If it is
showTab() then onload of the "tabs" (whatever you are referring to as a
tab) you call that function via script.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
Nov 8 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.