try the the following code with Opera 9.01 (Windows). when clicked
slightly faster than normal clicking, the toggler checkbox and other
checkboxes displays differently although event method works fine to
update the checkboxes. there is not any problem with IE 6 or FireFox
1.5. also, i used the double click event method to see if its the
source but that does not help even. Opera 9.01 seems to be slow at
updating checkboxes visually. am i missing something or are there any
work arounds, solutions for this problem.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9"
/>
<title>Untitl ed Document</title>
</head>
<body>
<br />
<span id="span1"></span>
<br />
<span id="span2"></span>
<br />
<br />
<script>
var
clickCount = 0;
function toggleChecks(to ggler)
{
clickCount++;
var oSpan1 = document.getEle mentById("span1 ");
oSpan1.innerHTM L = "click : " + clickCount;
var
o = document.getEle mentsByName("se lRow"),
chk = toggler.checked ;
var len = o.length;
for (i = 0; i < len; i++)
{
o[i].checked = chk;
// check if really checked.
if (o[i].checked != chk)
alert("not set");
}
}
var
dblclickCount = 0;
function dblClick(toggle r)
{
toggleChecks(to ggler);
dblclickCount++ ;
var oSpan2 = document.getEle mentById("span2 ");
oSpan2.innerHTM L = "double click : " + dblclickCount;
}
</script>
<input type="checkbox" id="chkToggle" onclick="toggle Checks(this);"
ondblclick="dbl Click(this);" />
<label for="chkToggle" >Toggle CheckBoxes (Rapidly click this within
Opera 9.01 and observe how check sync. loosed.)</label>
<br />
<input type="checkbox" name="selRow" value="114">
<br />
<input type="checkbox" name="selRow" value="115">
<br />
<input type="checkbox" name="selRow" value="116">
<br />
<input type="checkbox" name="selRow" value="117">
<br />
<input type="checkbox" name="selRow" value="118">
<br />
<input type="checkbox" name="selRow" value="118">
<br />
<input type="checkbox" name="selRow" value="119">
</body>
</html> 1 4014
spolsky wrote:
try the the following code with Opera 9.01 (Windows). when clicked
slightly faster than normal clicking, the toggler checkbox and other
checkboxes displays differently although event method works fine to
update the checkboxes.
Yeah, I noticed that too with the Opera 9.x series. :-(
BTW, Opera 8.54 doesn't seem to have this problem.
<snip>
am i missing something or are there any work arounds, solutions for
this problem.
<snip>
As such, for the time being, the work-arounds seem to be either:
a) Swap-out your onclick event with either onmousedown or onmouseup
b) Click slowly
c) Revert back to 8.54
d) Use an alternate browser.
Cheers. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dan R Brown |
last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to
break up this form into several "tabbed" sections, I break up the form using <div>
tags. Each <div style="display:none"> can be displayed by setting the style attribute
to "display:", or hidden with "display:none". This gives the illusion that the person
filling out the form is switching from page to page...without the overhead of extra
hits on the server,...
|
by: PhiSYS |
last post by:
I want to know what's wrong with this code (I'm an amateur programmer).
I'm trying to check if every field has a value or if checkboxes/radios
have at least one item checked on each group (yes, you know, with the
same name in the HTML tag).
I want to have a generic code which I can fit to every document.
The problem is that it never got into the line:
if(elm.type == "checkbox" || elm.type == "radio")
I've put an alert(elm.type)
|
by: F. Da Costa |
last post by:
Hi,
Does the following indeed imply that this event is NOT called when an <input type="checkbox" is toggled?
This would thus imply the usage of the onClick handler instead (assuming an action needs to be invoked on check/ uncheck).
W3C Recomendation:
18 Scripts
onselect = script
The onselect event occurs when a user selects some text in a text field. This attribute may be used with the INPUT
|
by: Dave |
last post by:
Hi all,
I was trying to make an image submit button with a rollover and discovered
to my suprise that there is no way to access a form element of the "image"
type. I tried specifying it by name and also by the elements array with
no luck.
Even weirder, I can sandwich an image button in between other input types
and then write a script diplaying the contents of the elements array and it
acts as if the image button does not exist at all!...
|
by: Don |
last post by:
Via JavaScript within the client page containing the checkbox, I'm trying to capture the value of a
checkbox to make a cookie out of it. But, all I get is the defined "ON" value, even when it is
unchecked. I'm using the following construct:
document.cookie = "cpceRememberLoginCookie="+document.getPage1.rememberLogin.value+"; expires=Thr,
01-Jan-2015 00:00:00 GMT";
The actual checkbox value passed in the <form> POST reflects the actual...
| |
by: Adam Toline |
last post by:
In reference to the following:
http://www.bellecose.com/form.htm
At the top of each column there is a box for "All".
When one is checked I need to check all of (and only) those boxes
underneath.
Now, the rub here is that every checkbox on the page (except the "All"s)
|
by: soundar rajan |
last post by:
Hi,
I wanna display messagebox, and also at the bottom i wanna display "Dont
show again" with checkbox using VB.NET. Immediate help needed!!!!
|
by: David Cameron |
last post by:
I noticed
that using an HTMLInputRadioButton and specifying a value to be an empty
string (""), this is overridden by ASP.Net which set the value of the
control to be the same as the ID of the control.
See the code below
* Page.aspx:
<%@ Page language="c#" Codebehind="Test.aspx.cs" AutoEventWireup="false"
Inherits="Webspace.Test" %>
|
by: Jaime Stuardo |
last post by:
Hi all..
I have a DataGrid with checkboxes. In the header I have a "check all"
checkbox.
I'm wondering if there is an easy way to check all checkboxes using that
checkbox. I could do it using JavaScript code, but the main problem I have
is that checkboxes ids aren't kept when the datagrid is rendered, for
example, if the checkboxes have the name chkNumid, when the datagrid is
rendered, the checkboxes become dgDataGrid_ctl02_chkNumId,
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |