Results 1 to 2 of 2

Thread: not able to trigger click event from the updated href:

  1. #1
    Sencha User Sameer Khan's Avatar
    Join Date
    Oct 2011
    Location
    Bangalore, India
    Posts
    118

    Default not able to trigger click event from the updated href:

    own vote
    favorite
    I need to update the href element depend upon ajax response and need to trigger click event from the appended href
    I am doing in the fallowing way:
    but not able to trigger click event from the updated href:




    HTML Code:
    HTML<a hidefocus="on" class="x-tree-node-anchor" href="#" tabindex="1" target="contentFrame">Audit</a>ExtJslisteners: {      click: {           fn: function(node,event){                    Ext.Ajax.request({                                 url: '/ms/module/external-a/api/'+treeId+'/fetch-child/'+UUID,                      method: 'GET',                      success:  function (response) {                         var addInfoRes = Ext.util.JSON.decode(response.responseText);                                           var additionalInfohref = addInfoRes.href                // "/member/erp/config?node=12";                          jQuery("#123").attr('href',additionalInfohref);                      }                    });            }                 },stopEvent: true}
    Sameer Khan

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    My experience with jquery is limited, but perhaps you need the 123 ID in your link?

Similar Threads

  1. how to handle grid cell href click event.
    By pbevara123 in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 22 Jan 2016, 6:00 AM
  2. Replies: 1
    Last Post: 11 Nov 2015, 7:57 AM
  3. Replies: 3
    Last Post: 12 Nov 2014, 4:02 PM
  4. How to trigger a double click event to tree nodes
    By albertpeng in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 14 Nov 2010, 2:08 AM
  5. How to trigger a double click event to tree nodes
    By albertpeng in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 10 Nov 2010, 11:53 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
  •