473,387 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

force an event

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
2 5272
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: Curious Angel | last post by:
I have a resume in PDF format and I want anyone who LEFT-OR-RIGHT clicks the link to force the file to be saved, and in any event _not_ opened. Since the PDF will be in his cache in any event, I...
2
by: S P Arif Sahari Wibowo | last post by:
Hi! Do you know how to put a form's Access-Visual-Basic-code that will force the form to be inserted, while the user has not type anything in the form, without changing focus, selection, etc.? ...
8
by: MLH | last post by:
I have a textbox on a form into which an alpha-numeric string of data is entered. I wish to force the casual user, who would sometimes use upper case, sometimes not and sometimes MIX the case -...
3
by: Arulraja | last post by:
Hello, I have created 2 custom server controls, The parent custom control contains multiple child custom controls. The Child control has a button on it. If I Click the button control, it...
8
by: Amirallia | last post by:
Hello I want to force the Page.IsPostBack to false when I click an "asp:button" Is it possible ? -- Ceci est une signature automatique de MesNews. Site : http://www.mesnews.net
3
by: Steve Teeples | last post by:
I was wondering if there is a way to force a property within a property grid to update and then display a modified value when when a second property (true/false) is toggled? -- Steve
5
by: JohnR | last post by:
I have multiple controls set to the same database and, normally, when I change the record in one control the position is also changed in the other controls because I have "syncwithcurrencymanager'...
10
by: eedarley | last post by:
Is there a way to force the consumer of my object to handle events that I've fired off? I don't care how they handle the event, just that they do. I think in c# there is a way but not sure about...
4
by: anudu | last post by:
hi, im dveloping a web system using vs 2008. in my page i have a ajax page method wich is called by javascript function . in onsuceeded method i want to force the save button on my page to be...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.