Set Data From Javascript

0
0

I add a html file on wisej project , the html file have javascript qr code reader ,  I want to readed barcodes set wisej label

I add web methods on wisej form

[WebMethod]
public void Barcode(string barcode)
{
label1.Text = barcode;
}

and I add  this code to send data wisej method in html file

App.Window1.Barcode(code.data);

I’ve been trying for days, but I couldn’t send this data.

Please help this topic

Thanks

Attachment
  • You must to post comments
0
0

Hi Frank

I try code in html  Window.Parent.Barcode(code.data); but is not work

 

Please help this topic

Thanks for help

 

  • Frank (ITG)
    window and parent should be lower case. Regards, Frank
  • Frank (ITG)
    Sorry, actually it should be window.parent.App.Window1.Barcode(code.data). Regards, Frank
  • HSoft
    • HSoft
    • Jun 24, 2019 - 4:02 pm
    Thank you very much
  • You must to post comments
0
0

Hi,

you might want to try window.parent.Barcode(…) when calling from inside the IframePanel.
See here:

https://wisej.com/support/question/nedd-a-sample-on-how-to-transfer-data-from-wisej-to-a-javascript-application-running-in-an-iframe-and-vice-versa

Best regards
Frank

 

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.