473,320 Members | 1,922 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,320 software developers and data experts.

OnmosueOut and post not working in NN7

Hi - can anyone help with the code below please - when clicked, it
should add a table row to a table, with a checked checkbox (hidden) -
and if the user scrolls over the new row, it should hilight it - this
works.

However, the onmouseout does not remove the background color of the div
- it remains the same color as when the onmouseover set it.

Additionally, when the form is submitted, with the newly created row,
the checkbox is not recognised in request.form.

This script works perfectly in IE6, but I have problems in NN7 - can
anyone suggest where it may be going wrong?

Many thanks,

function addRowaddFact (cb_val) {
var table;
if (document.all)
table = document.all.tbladdFact;
else
table = document.getElementById('tbladdFact');
if (table && table.insertRow) {
var row = table.insertRow(table.rows.length);
var cell = row.insertCell(0);
cell.innerHTML = '<div title="Click to remove"
onMouseOver="this.style.cursor=\'hand\';this.style .background=\'#bbefff\
'" onMouseOut="this.style.background.color=\'transpar ent\'"
onclick=mtremRow(this) id="' + cb_val + '"\/>&nbsp;<input checked
type="checkbox" name="cbaddFact" style="display:;" value="' + cb_val +
'"\/><span class="search_input">&nbsp;&nbsp;<img
src="images/mt_bullet.gif" width="11"
height="10">&nbsp;&nbsp;'+cb_val+'<\/span><\/div>';
}
}
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #1
1 1090
"Mark" <an*******@devdex.com> wrote in message
news:40***********************@news.frii.net...
<snip>
... , with a checked checkbox (hidden) - ... <snip>This script works perfectly in IE6, but I have problems in
NN7 - can anyone suggest where it may be going wrong?
<snip>type="checkbox" name="cbaddFact" style="display:;" ...

<snip>

If by "hidden" you mean that the checkbox is - display:none; - then some
Mozilla/Netscape versions have taken the attitude that form elements
with CSS display properties set to "none" are not to be submitted with
the form. Then again, all Mozilla/Netscape versions like to see valid
CSS and I don't know if you can get away with - style="display:;" -,
maybe you can, I can't be bothered to look it up in the spec right now,
but it looks strange.

On the other hand a checkbox with a checked attribute that cannot be
clicked by the user is much the same as an <input type="hidden" ...>
element as the best you can hope for is to have a name/value pair sent
to the server with the submission.

Richard.
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: TG | last post by:
Dear PHP Group, I have two forms that are used to collect user information. The first one takes user inputted values such as fullname, city, address etc. I want these values to display in the...
8
by: Hardy Wang | last post by:
Hi: Is it possible for me to create/open web application from remote machine other than port 80? And create application directly under virtual web site instead of creating a virtual directory?...
5
by: tshad | last post by:
I have been working with setting my drop boxes to allow double clicking to select an item. It worked fine until I made some changes. I then stripped the page down to the bare essentials to find...
6
by: Matt Frame | last post by:
I have a client that has asked us to get a digital signature certificate and start digitally signing all files we pass between each other. I have heard of the subject and know about the certs but...
3
by: Patrick Fogarty | last post by:
I am programming what is to be a web service client that will use an HTTP-POST to request and retrieve data. The remote server (written in java for what it's worth) requires basic authentication...
1
by: logik3x | last post by:
I'm developping a program to automate the submisson of grades to a website called omnivox.ca (http://brebeuf.omnivox.ca). My problem is that I can't get the login working. I get the cookie right...
4
by: qbproger | last post by:
I'm developing a plugin for some software. The previous version of the software didn't require a start in directory to be set. This allowed me to leave the working directory to the default in the...
7
by: Ja NE | last post by:
(as first - thank you for all your help several years ago, and second - please apologise me for my clumsy enlgish) so, preface: some users on my photo related site sometimes enter (link) giant...
23
by: bc90021 | last post by:
Hi All, Thanks in advance for any and all help! I have this code: g = open(fileName, 'a') where fileName is defined before the line it's used in. It works fine when I use it outside a...
11
by: =?Utf-8?B?QkxVRVNUQVI=?= | last post by:
Here is the link of the website http://www.smartcharlotte2050.com/YourThoughts.asp I have been told to change only the form action part of this site.which is to "response.asp" Here the method...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.