e.Role not detected in GoogleMap.MouseClick event on Firefox

Answered
0
0

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)

  • You must to post comments
Best Answer
0
0

It’s WJ-8376 and fixed in the current build. FireFox is still non-standard with the event object.

  • You must to post comments
0
0

Hi Andrew,

WJ-8376 is fixed in Wisej 1.3.82.

Best regards
Frank

  • You must to post comments
0
0

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

 

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.