On FireFox mobile, when clicking some HTML in a marker’s InfoWindow that contains role information, the .MouseClick event does not detect e.Role (It’s null). In Chrome, it properly detects it as “edititem”…
Private Sub mobjGoogleMap_MouseClick(sender As Object, e As MouseEventArgs) Handles mobjGoogleMap.MouseClick
If e.Role = “edititem” Then
‘do something
End If
End Sub
InfoWindow contents: (example)
strInfoWindowHTML =”<table><tr><td><a role=’edititem’ href=’#’><img src=”http://i.imgur.com/JXHCktns.png”></a></td><td style=’vertical-align:top’><b>#7</b> : “K and M plant overgrowth blocking sidewalk.”<br></td></tr></table>”
InfoWindow invocation:
Me.mobjGoogleMap.ShowInfoWindow(intIndex.ToString, Me.ilIssues.issues(intIndex).strInfoWindowHTML)
It’s WJ-8376 and fixed in the current build. FireFox is still non-standard with the event object.
Hi Andrew,
WJ-8376 is fixed in Wisej 1.3.82.
Best regards
Frank
However, Firefox does detect e.Role in ListView.ItemClick events:
Dim strHTML As String = My.Resources.greenfb_button ‘Create HTML button for WiseJ
Dim lvsiButton As New ListViewItem.ListViewSubItem
lvsiButton.AllowHtml = True
lvsiButton.Text = “<a role=’edititem’ href=’#’ class=’myButton’>✏</a>”
li.SubItems.Add(lvsiButton) ‘li.SubItems.Add(strHTML)
Me.lvIssues.Items.Add(li)
Private Sub lvIssues_ItemClick(sender As Object, e As ItemClickEventArgs) Handles lvIssues.ItemClick
If e.Role = “edititem” Then
‘do something
End If
End Sub
Please login first to submit.