struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <gopal.kalse...@wipro.com>
Subject Tooltip not getting updated when radio button is changed
Date Fri, 15 Mar 2013 05:34:24 GMT
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: user-help@struts.apache.org [mailto:user-help@struts.apache.org] 
Sent: Friday, March 15, 2013 11:01 AM
To: Gopal Dilip Kalsekar (WT01 - CTO Office)
Subject: WELCOME to user@struts.apache.org

Hi! This is the ezmlm program. I'm managing the user@struts.apache.org mailing list.

I'm working for my owner, who can be reached at user-owner@struts.apache.org.

Acknowledgment: I have added the address

   gopal.kalsekar@wipro.com

to the user mailing list.

Welcome to user@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 user 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:
   <user-subscribe@struts.apache.org>

To remove your address from the list, send a message to:
   <user-unsubscribe@struts.apache.org>

Send mail to the following for info and FAQ for this list:
   <user-info@struts.apache.org>
   <user-faq@struts.apache.org>

Similar addresses exist for the digest list:
   <user-digest-subscribe@struts.apache.org>
   <user-digest-unsubscribe@struts.apache.org>

To get messages 123 through 145 (a maximum of 100 per request), mail:
   <user-get.123_145@struts.apache.org>

To get an index with subject and author for messages 123-456 , mail:
   <user-index.123_456@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:
   <user-thread.12345@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:
<user-subscribe-john=host.domain@struts.apache.org>

To stop subscription for this address, mail:
<user-unsubscribe-john=host.domain@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 user-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: <gopal.kalsekar@wipro.com>
Received: (qmail 92074 invoked by uid 99); 15 Mar 2013 05:31:22 -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 05:31:22 +0000
X-ASF-Spam-Status: No, hits=-0.1 required=5.0
	tests=HTML_MESSAGE,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 05:31:15 +0000
X-AuditID: cb5bdd57-b7f8e6d000005e68-54-5142b20a4755
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 32.31.24168.A02B2415;
Fri, 15 Mar 2013 11:00:50 +0530 (IST)
Received: from BLR-EC-MBX3.wipro.com (10.208.51.113) by  BLR-OUT-EDG02.wipro.com (203.91.193.32)
with Microsoft SMTP Server (TLS) id  14.2.318.1; Fri, 15 Mar 2013 11:01:25 +0530
Received: from BLR-EC-MBX2.wipro.com ([169.254.2.139]) by  BLR-EC-MBX3.wipro.com ([169.254.3.194])
with mapi id 14.02.0318.001; Fri, 15  Mar 2013 11:00:03 +0530
From: <gopal.kalsekar@wipro.com>
To:
	<user-sc.1363325356.pojhohemcpkegodkcnej-gopal.kalsekar=wipro.com@struts.apache.org>
Subject: Subscribe confirm
Thread-Topic: Subscribe confirm
Thread-Index: Ac4hPiO0Pa8lhl8WT8CQpnq3vwG/fA==
Date: Fri, 15 Mar 2013 05:30:03 +0000
Message-ID: <62417B71B7A5A24B8237BD4C0AB5642858AD4972@BLR-EC-MBX2.wipro.com>
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: multipart/alternative;
	boundary="_000_62417B71B7A5A24B8237BD4C0AB5642858AD4972BLRECMBX2wiproc_"
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAKsWRmVeSWpSXmKPExsVyOvqggi7XJqdAg63PjS2+3bB2YPR48n4a
	ewBjVAOjTWJeXn5JYkmqQkpqcbKtkl9quYJ7UWpqnoJLZnFyTmJmbmqRkkJmiq2SmZJCQU5i
	cmpual6JrVJiQUFqXoqSHZcCBrABKsvMU0jNS85PycxLt1XyDPbXtbAwtdQ1VLILyElNLAZa
	lq8AtFahoCjhJ3/G7EuL2QsaBCpuNvYzNjCu4eti5OSQEDCRWP/lMROELSZx4d56ti5GLg4h
	gelMEh92/mCBcDYzSuxf8YoVwlnEKNGwfC5YC5uAgsTXowfAbBGBKImO/nfMILawgJREw+KN
	UHF5ia7zV6BsPYlNa/ewgNgsAqoSrybuBKvnFfCRuPT4PSuIzQh0xvdTa8DqmQXEJW49mQ91
	noDEkj3nmSFsUYmXj/+xQtiKEqcmPIWqz5d4//kzO8RMQYmTM5+A7RIC2vXh8Su2CYwis5CM
	nYWkZRaSFoi4jsSC3Z/YIGxtiWULXzPD2GcOPGZCFl/AyL6KUbI8s6AoXzcpp0g3v7TEwFAP
	zNdLzs/dxAhOHnfDdzCe/MR3iDEI6PeJzFLcyfnA5JNXEm9sYEAkR0mcN+WzY6CQQDowKWWn
	phakFsUXleakFh9iZOLglGpgNEwrv3Dj0LGrltob7O0dX7o/U1/OaVZ4yPLxRy3PK00xa6xe
	OCRIMZbcNZVhzprn/OJzLsuC/nPqz1l7OzyVfnpb/kpM2mf+zGHxpVDWyjsLOLd/XvvE0L42
	svJK/afLtxYV2Ef3+/w928C5/Z6MqcB3LV4ZnaNGDUq5VnxnX4YIZBm7ObIqsRRnJBpqMRcV
	JwIAGrIsWCMDAAA=
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

Mime
View raw message