-
August 1st, 2023, 07:15 AM
#1
Unable to bind onclick event to an anchor tag
Hi,
I have an issue and stuck with it for quite sometime now. Can someone please guide me. I need to bind a onclick event to an anchor element dynamically, I checked the examples that Giuseppe's pointed out but still no luck. Let's say I have my html code like :
<td id="msg" class="revSubject highlight" style="text-align:left;" nowrap="">
<a href="#" data-source="lightstreamer" data-field="click" data-update="onclick">
<span><div data-source="lightstreamer" data-field="msg"></div></span>
</a>
</td>
In my js code I did set node types as well :
grid.setNodeTypes(["div","tr","a"]);
From my java adapter I'm send the click field :
map.put("click", "getCCSInboxMsgBody(109539,0,"SysTrdInbox &quo t;return false;");
but still the event is not getting attached to the <a> element, I'm using DynaGrid with ADD command.
Similar Threads
-
By kid_119k in forum Client SDKs
Replies: 6
Last Post: November 26th, 2012, 02:55 AM
-
By tsezuu in forum Client SDKs
Replies: 2
Last Post: November 24th, 2011, 03:09 AM
-
By dimitarn in forum Client SDKs
Replies: 6
Last Post: March 26th, 2010, 04:09 PM
-
By ningping in forum Client SDKs
Replies: 1
Last Post: August 6th, 2008, 11:05 AM
-
By eduramires in forum Client SDKs
Replies: 3
Last Post: February 4th, 2008, 09:14 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 03:30 PM.
Bookmarks