我在TextView中实现了多个可点击的跨度。我的目的是删除已被点击的特定跨度。我正在捕获span的onClick事件,但它返回整个textview。如何隔离点击的跨度并将其删除?
答案 0 :(得分:2)
也许这会对你有所帮助:
USER:cn=Feroz,dc=Alam,dc=com
PWD:nike
HOST:10.10.10.10
PORT:1234
AD_USER:CN=Feroz,OU=Service,OU=Accounts,DC=Alam,DC=com
AD_PWD:addidas
AD_SERVER:myadserver.com
$ldap = Net::LDAP->new($HOST, port=>$PORT) or die "Cant Connect to LDAP server:$@";
#IF I REMOVE THE PORT NO i AM GETTING THE ERROR "Cant Connect to LDAP server:IO::Socket::INET: connect:"
if ( $ldap->bind($USER,password=>$PWD) ) {
print "Successful Authentication\n";
#IT IS GIVING ME SUCCESSFUL AUTHENTICATION MESSAGE EVEN IF ENTER THE WRONG PASSWORD
}
else{
print "Unsuccessful Authentication\n";
push(@downlist, $server);
--$upcount;
}
$ldap->unbind();
DEBUG LOGS:
Net::LDAP=HASH(0x488268) sending:
Net::LDAP=HASH(0x488268) received:
0000 12: SEQUENCE {
0002 1: INTEGER = 1
0005 7: [APPLICATION 1] {
0007 1: ENUM = 49
000A 0: STRING = ''
000C 0: STRING = ''
000E : }
000E : }
Successful Authentication
Net::LDAP=HASH(0x488268) sending: