Telegram_2021-03-31T07

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2021 > 03 > 31 >

Telegram_2021-03-31T07

Telegram link

 

2021-03-31T07:22:29

 

The HTML can receive these values ??in Javascript that I know how to manipulate, what I don't know is how to send the data and have it received.

 


 

Telegram link

 

2021-03-31T07:23:13

 

Is it sensitive data?

 


 

Telegram link

 

2021-03-31T07:24:03

 

Data is text and variant

 


 

Telegram link

 

2021-03-31T07:24:44

 

How send and how receive? Get me an idea.

 


 

Telegram link

 

2021-03-31T07:34:00

 

You can use type: code sessionStorage

 


 

Telegram link

 

2021-03-31T07:34:02

 

In HTML $ (variable) with that command I can read a variable, but how do I send it?

 


 

Telegram link

 

2021-03-31T07:40:57

 

With sessionStorage I use the HTML data, I want to send a variable from that HTML from an Intraweb unit. Thank you.

 


 

Telegram link

 

2021-03-31T07:43:15

 

Delphi side:

 

type: pre procedure TIWForm1.IWAppFormCreate(Sender: TObject);

 

begin

 

Self.JavaScriptOnce := 'sessionStorage.clear();' +

 

'sessionStorage.setItem(\myVar\, \' + yourDelphiVariable + '\);';

 

end; language:

 


 

Telegram link

 

2021-03-31T07:45:55

 

Okay. That code is to send the variables, to receive them is with the same command in javascript?

 


 

Telegram link

 

2021-03-31T07:48:02

 

html side:

 

type: pre

 

document.write(sessionStorage.getItem(\myVar\))

 

language:

 


 

Telegram link

 

2021-03-31T07:53:22

 

Okay. Thank you. I'm going to try and tell you

 


 

Telegram link

 

2021-03-31T07:57:27

 

I tried the codes and the result is

 

ull\, I'll see what I did wrong.