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
Hi Ruben,
Would it be possible to prepare a sample for us ?
Best,
Alaa
//
Please login first to submit.