Send arguments from Javascript to WiseJ (Widget)

0
0

Hello, i have a widget some javascript, and i have a html button in that widget, that when i  click it sents some text string, but its not firing for some reason.

I have this error when i click the button:

Unaught Type Error: this.fireDataEvent is not a function at HTMLButtonElement.eval (eval at _applyInitScript (wisej.js?v=2.2.48.0:64888:16), <anonymous>:319:21)

 

This is what i’ve in the widget code:

this.functionname = function(){

this.fireDataEvent(“SelecionarEdificio”, “dasdasdasdadsdasda”);

}

In my vb.net side:

Protected Overrides Sub OnWebRender(config As Object)
MyBase.OnWebRender(config)
config.wiredEvents.Add(“SelectEdificio(id)”)
End Sub

‘ Para lidar com o evento, substitua OnWebEvent():
Protected Overrides Sub OnWebEvent(e As WisejEventArgs)
Select Case e.Type
Case “SelecionarEdificio”
AlertBox.Show(e.Parameters.id)
Case Else
MyBase.OnWebEvent(e)
End Select
End Sub

 

  • You must to post comments
0
0

Hi Ruben,

Would it be possible to prepare a sample for us ?

Best,
Alaa

//

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.