You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by go...@wipro.com on 2013/03/15 06:07:14 UTC
Tooltip not getting updated when radio button is changed
Hi,
I am developing my application in Struts2, wherein I have 3 radio buttons for 3 DML operations (Create/Update/Delete).
Please find the attached Word Document (Tooltip Issue.docx) for the screens.
When the screen opens up by default (Create radio button is selected & the tooltip for the Create image is shown properly) with the below code :-
<tr><td colspan="2" align="center"><s:submit onclick="return chkANMFields();" theme="simple" cssStyle="background:url(\"images/add-icon.png\") no-repeat center; width:50px; height:50px; color:transparent;" value="" align="center" onmouseover="domTT_activate(this, event, 'content', 'Create ANM','styleClass', 'StrutsTTClassic')"/></td></tr>
When the radio button is changed to Update or Delete, I have the below javascript code :-
if (whichANM == "2") {
document.getElementById('fetchCreateANM_0').style.backgroundImage = "url(\"images/update-icon.png\")";
document.getElementById('fetchCreateANM_0').onmouseover = function() {
var tip = domTT_tooltips.get('[domTT]fetchCreateANM_0');
tip.status="active";
tip.content = "Update ANM";
var tipNode = tip.get('node');
tipNode.status="active";
tipNode.style.display = '';
tipNode.style.visibility = 'visible';
tipNode.innerHTML = "<div class=\"contents\">Update ANM</div>";
domTT_show('[domTT]fetchCreateANM_0',window.event);
} else if (whichANM == "3") {
document.getElementById('fetchCreateANM_0').style.backgroundImage = "url(\"images/delete-icon.png\")";
document.getElementById('fetchCreateANM_0').onmouseover = function() {
var tip = domTT_tooltips.get('[domTT]fetchCreateANM_0');
tip.status="active";
tip.content = "Delete ANM";
var tipNode = tip.get('node');
tipNode.status="active";
tipNode.style.display = '';
tipNode.style.visibility = 'visible';
tipNode.innerHTML = "<div class=\"contents\">Delete ANM</div>";
domTT_show('[domTT]fetchCreateANM_0',window.event);
};
Even with the above logic, tooltip is not shown when the Update or Delete radio buttons are clicked.
Please help me to resolve this issue.
Regards,
Gopal D. Kalsekar
9757122721.
-----Original Message-----
From: dev-help@struts.apache.org [mailto:dev-help@struts.apache.org]
Sent: Friday, March 15, 2013 10:22 AM
To: Gopal Dilip Kalsekar (WT01 - CTO Office)
Subject: WELCOME to dev@struts.apache.org
Hi! This is the ezmlm program. I'm managing the dev@struts.apache.org mailing list.
I'm working for my owner, who can be reached at dev-owner@struts.apache.org.
Acknowledgment: I have added the address
gopal.kalsekar@wipro.com
to the dev mailing list.
Welcome to dev@struts.apache.org!
Please save this message so that you know the address you are subscribed under, in case you later want to unsubscribe or change your subscription address.
--- Administrative commands for the dev list ---
I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address:
To subscribe to the list, send a message to:
<de...@struts.apache.org>
To remove your address from the list, send a message to:
<de...@struts.apache.org>
Send mail to the following for info and FAQ for this list:
<de...@struts.apache.org>
<de...@struts.apache.org>
Similar addresses exist for the digest list:
<de...@struts.apache.org>
<de...@struts.apache.org>
To get messages 123 through 145 (a maximum of 100 per request), mail:
<de...@struts.apache.org>
To get an index with subject and author for messages 123-456 , mail:
<de...@struts.apache.org>
They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499.
To receive all messages with the same subject as message 12345, send a short message to:
<de...@struts.apache.org>
The messages should contain one line or word of text to avoid being treated as sp@m, but I will ignore their content.
Only the ADDRESS you send to is important.
You can start a subscription for an alternate address, for example "john@host.domain", just add a hyphen and your address (with '=' instead of '@') after the command word:
<de...@struts.apache.org>
To stop subscription for this address, mail:
<de...@struts.apache.org>
In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription.
If despite following these instructions, you do not get the desired results, please contact my owner at dev-owner@struts.apache.org. Please be patient, my owner is a lot slower than I am ;-)
--- Enclosed is a copy of the request I received.
Return-Path: <go...@wipro.com>
Received: (qmail 3988 invoked by uid 99); 15 Mar 2013 04:51:49 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 04:51:49 +0000
X-ASF-Spam-Status: No, hits=-2.3 required=5.0
tests=RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: local policy)
Received: from [203.91.198.74] (HELO wipro-blr-out01.wipro.com) (203.91.198.74)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 04:51:42 +0000
X-AuditID: cb5bdd57-b7f8e6d000005e68-60-5142a8c8a9b9
Received: from BLR-OUT-EDG02.wipro.com ( [203.91.193.32])
(using TLS with cipher AES128-SHA (128/128 bits))
(Client did not present a certificate)
by wipro-blr-out01.wipro.com (Symantec Mail Security) with SMTP id E1.3B.24168.8C8A2415; Fri, 15 Mar 2013 10:21:20 +0530 (IST)
Received: from BLR-EC-MBX7.wipro.com (10.208.51.117) by BLR-OUT-EDG02.wipro.com (203.91.193.32) with Microsoft SMTP Server (TLS) id 14.2.318.1; Fri, 15 Mar 2013 10:22:41 +0530
Received: from BLR-EC-MBX2.wipro.com ([169.254.2.139]) by BLR-EC-MBX7.wipro.com ([169.254.7.145]) with mapi id 14.02.0318.001; Fri, 15 Mar 2013 10:21:19 +0530
From: <go...@wipro.com>
To:
<de...@struts.apache.org>
Subject: RE: confirm subscribe to dev@struts.apache.org
Thread-Topic: confirm subscribe to dev@struts.apache.org
Thread-Index: AQHOIThpMUh9VyaMFU2Fv6e0FBUxHpimLvEg
Date: Fri, 15 Mar 2013 04:51:18 +0000
Message-ID: <62...@BLR-EC-MBX2.wipro.com>
References: <13...@struts.apache.org>
In-Reply-To: <13...@struts.apache.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.113.171.16]
Content-Type: text/plain; charset="us-ascii"
content-transfer-encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42I5HX1QQffECqdAg/u9Rhaz7k5ndWD0ePJ+
GnsAY1QDo01iXl5+SWJJqkJKanGyrZJfarmCe1Fqap6CS2Zxck5iZm5qkZJCZoqtkpmSQkFO
YnJqbmpeia1SYkFBal6Kkh2XAgawASrLzFNIzUvOT8nMS7dV8gz217WwMLXUNVSyC8hJTSwG
WpavALRWoaAo4Sd/xuV3HxkLVptU/Dvg2sB4X6eLkZNDQsBE4sH6/2wQtpjEhXvrgWwuDiGB
6UwSO99cZIJwNjNKXF11EspZxChx89ERdpAWNgEFia9HDzCB2CICkRJn2t4zg9jCAuYSu161
MkPELSSmNy+AqjGSuDrhGiOIzSKgKvH68l1WEJtXwEdif+MssDOEBMwkdv+eAVbDCTRn1sqF
YDYj0HnfT60Bm8MsIC5x68l8JoizBSSW7DnPDGGLSrx8/I8VwlaUODXhKVS9jsSC3Z/YIGxt
iWULXzND7BWUODnzCQvEXlWJD49fsU1gFJ+FZMUsJO2zkLTPQtK+gJFlFaNkeWZBUb5uUk6R
bn5piYGhHpivl5yfu4kRnDzuhu9gPPmJ7xCjK9DvE5mluJPzgcknryTe2MAAN0dJnDfls2Og
kEA6MPFkp6YWpBbFF5XmpBYfYmTi4JRqYLziLXtR2cdvW7Zyjroy88Sq6VbWkSkTbh7rb+fe
+OjWwVDjTXrBSRU1ejExm7b+DjhYu5vviP90hZZ3PIV1yeqvs2zYFl/qMHEW2zQ7dYG5/d7r
Tnnnd4mW+sh5+cV7R7xYU9qcduz7BJ5A047N1/VDq/eYL7rDGZrY9PqJqtLxxAsffnMtUGIp
zkg01GIuKk4EAE68pCQWAwAA
X-Virus-Checked: Checked by ClamAV on apache.org
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
Re: Tooltip not getting updated when radio button is changed
Posted by um...@gmail.com.
Best place to ask such questions are user list
Sent from BlackBerry® on Airtel
-----Original Message-----
From: <go...@wipro.com>
Date: Fri, 15 Mar 2013 05:07:14
To: <de...@struts.apache.org>; <de...@struts.apache.org>; <de...@struts.apache.org>
Reply-To: "Struts Developers List" <de...@struts.apache.org>
Subject: Tooltip not getting updated when radio button is changed
Hi,
I am developing my application in Struts2, wherein I have 3 radio buttons for 3 DML operations (Create/Update/Delete).
Please find the attached Word Document (Tooltip Issue.docx) for the screens.
When the screen opens up by default (Create radio button is selected & the tooltip for the Create image is shown properly) with the below code :-
<tr><td colspan="2" align="center"><s:submit onclick="return chkANMFields();" theme="simple" cssStyle="background:url(\"images/add-icon.png\") no-repeat center; width:50px; height:50px; color:transparent;" value="" align="center" onmouseover="domTT_activate(this, event, 'content', 'Create ANM','styleClass', 'StrutsTTClassic')"/></td></tr>
When the radio button is changed to Update or Delete, I have the below javascript code :-
if (whichANM == "2") {
document.getElementById('fetchCreateANM_0').style.backgroundImage = "url(\"images/update-icon.png\")";
document.getElementById('fetchCreateANM_0').onmouseover = function() {
var tip = domTT_tooltips.get('[domTT]fetchCreateANM_0');
tip.status="active";
tip.content = "Update ANM";
var tipNode = tip.get('node');
tipNode.status="active";
tipNode.style.display = '';
tipNode.style.visibility = 'visible';
tipNode.innerHTML = "<div class=\"contents\">Update ANM</div>";
domTT_show('[domTT]fetchCreateANM_0',window.event);
} else if (whichANM == "3") {
document.getElementById('fetchCreateANM_0').style.backgroundImage = "url(\"images/delete-icon.png\")";
document.getElementById('fetchCreateANM_0').onmouseover = function() {
var tip = domTT_tooltips.get('[domTT]fetchCreateANM_0');
tip.status="active";
tip.content = "Delete ANM";
var tipNode = tip.get('node');
tipNode.status="active";
tipNode.style.display = '';
tipNode.style.visibility = 'visible';
tipNode.innerHTML = "<div class=\"contents\">Delete ANM</div>";
domTT_show('[domTT]fetchCreateANM_0',window.event);
};
Even with the above logic, tooltip is not shown when the Update or Delete radio buttons are clicked.
Please help me to resolve this issue.
Regards,
Gopal D. Kalsekar
9757122721.
-----Original Message-----
From: dev-help@struts.apache.org [mailto:dev-help@struts.apache.org]
Sent: Friday, March 15, 2013 10:22 AM
To: Gopal Dilip Kalsekar (WT01 - CTO Office)
Subject: WELCOME to dev@struts.apache.org
Hi! This is the ezmlm program. I'm managing the dev@struts.apache.org mailing list.
I'm working for my owner, who can be reached at dev-owner@struts.apache.org.
Acknowledgment: I have added the address
gopal.kalsekar@wipro.com
to the dev mailing list.
Welcome to dev@struts.apache.org!
Please save this message so that you know the address you are subscribed under, in case you later want to unsubscribe or change your subscription address.
--- Administrative commands for the dev list ---
I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address:
To subscribe to the list, send a message to:
<de...@struts.apache.org>
To remove your address from the list, send a message to:
<de...@struts.apache.org>
Send mail to the following for info and FAQ for this list:
<de...@struts.apache.org>
<de...@struts.apache.org>
Similar addresses exist for the digest list:
<de...@struts.apache.org>
<de...@struts.apache.org>
To get messages 123 through 145 (a maximum of 100 per request), mail:
<de...@struts.apache.org>
To get an index with subject and author for messages 123-456 , mail:
<de...@struts.apache.org>
They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499.
To receive all messages with the same subject as message 12345, send a short message to:
<de...@struts.apache.org>
The messages should contain one line or word of text to avoid being treated as sp@m, but I will ignore their content.
Only the ADDRESS you send to is important.
You can start a subscription for an alternate address, for example "john@host.domain", just add a hyphen and your address (with '=' instead of '@') after the command word:
<de...@struts.apache.org>
To stop subscription for this address, mail:
<de...@struts.apache.org>
In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription.
If despite following these instructions, you do not get the desired results, please contact my owner at dev-owner@struts.apache.org. Please be patient, my owner is a lot slower than I am ;-)
--- Enclosed is a copy of the request I received.
Return-Path: <go...@wipro.com>
Received: (qmail 3988 invoked by uid 99); 15 Mar 2013 04:51:49 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 04:51:49 +0000
X-ASF-Spam-Status: No, hits=-2.3 required=5.0
tests=RCVD_IN_DNSWL_MED,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: local policy)
Received: from [203.91.198.74] (HELO wipro-blr-out01.wipro.com) (203.91.198.74)
by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Mar 2013 04:51:42 +0000
X-AuditID: cb5bdd57-b7f8e6d000005e68-60-5142a8c8a9b9
Received: from BLR-OUT-EDG02.wipro.com ( [203.91.193.32])
(using TLS with cipher AES128-SHA (128/128 bits))
(Client did not present a certificate)
by wipro-blr-out01.wipro.com (Symantec Mail Security) with SMTP id E1.3B.24168.8C8A2415; Fri, 15 Mar 2013 10:21:20 +0530 (IST)
Received: from BLR-EC-MBX7.wipro.com (10.208.51.117) by BLR-OUT-EDG02.wipro.com (203.91.193.32) with Microsoft SMTP Server (TLS) id 14.2.318.1; Fri, 15 Mar 2013 10:22:41 +0530
Received: from BLR-EC-MBX2.wipro.com ([169.254.2.139]) by BLR-EC-MBX7.wipro.com ([169.254.7.145]) with mapi id 14.02.0318.001; Fri, 15 Mar 2013 10:21:19 +0530
From: <go...@wipro.com>
To:
<de...@struts.apache.org>
Subject: RE: confirm subscribe to dev@struts.apache.org
Thread-Topic: confirm subscribe to dev@struts.apache.org
Thread-Index: AQHOIThpMUh9VyaMFU2Fv6e0FBUxHpimLvEg
Date: Fri, 15 Mar 2013 04:51:18 +0000
Message-ID: <62...@BLR-EC-MBX2.wipro.com>
References: <13...@struts.apache.org>
In-Reply-To: <13...@struts.apache.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.113.171.16]
Content-Type: text/plain; charset="us-ascii"
content-transfer-encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmleLIzCtJLcpLzFFi42I5HX1QQffECqdAg/u9Rhaz7k5ndWD0ePJ+
GnsAY1QDo01iXl5+SWJJqkJKanGyrZJfarmCe1Fqap6CS2Zxck5iZm5qkZJCZoqtkpmSQkFO
YnJqbmpeia1SYkFBal6Kkh2XAgawASrLzFNIzUvOT8nMS7dV8gz217WwMLXUNVSyC8hJTSwG
WpavALRWoaAo4Sd/xuV3HxkLVptU/Dvg2sB4X6eLkZNDQsBE4sH6/2wQtpjEhXvrgWwuDiGB
6UwSO99cZIJwNjNKXF11EspZxChx89ERdpAWNgEFia9HDzCB2CICkRJn2t4zg9jCAuYSu161
MkPELSSmNy+AqjGSuDrhGiOIzSKgKvH68l1WEJtXwEdif+MssDOEBMwkdv+eAVbDCTRn1sqF
YDYj0HnfT60Bm8MsIC5x68l8JoizBSSW7DnPDGGLSrx8/I8VwlaUODXhKVS9jsSC3Z/YIGxt
iWULXzND7BWUODnzCQvEXlWJD49fsU1gFJ+FZMUsJO2zkLTPQtK+gJFlFaNkeWZBUb5uUk6R
bn5piYGhHpivl5yfu4kRnDzuhu9gPPmJ7xCjK9DvE5mluJPzgcknryTe2MAAN0dJnDfls2Og
kEA6MPFkp6YWpBbFF5XmpBYfYmTi4JRqYLziLXtR2cdvW7Zyjroy88Sq6VbWkSkTbh7rb+fe
+OjWwVDjTXrBSRU1ejExm7b+DjhYu5vviP90hZZ3PIV1yeqvs2zYFl/qMHEW2zQ7dYG5/d7r
Tnnnd4mW+sh5+cV7R7xYU9qcduz7BJ5A047N1/VDq/eYL7rDGZrY9PqJqtLxxAsffnMtUGIp
zkg01GIuKk4EAE68pCQWAwAA
X-Virus-Checked: Checked by ClamAV on apache.org
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org