12-06-2023, 10:13 AM
Few ways can achieve that
1) If you are using template way
- You can directly write <div style="width: 500px" id="header"></div> in your template
2) Using TIWLabel
- Set RawText property to True
-
3) Using TIWRegion
- TIWRegion will be rendered as <div>
- to get the html ID of IWRegion in delphi, you can call IWRegion1.HTMLName
- There may be style set by Intraweb that will conflict with what you want
To start qr code scanner you probably can do this in your form
or if u are using template, u can directly go write <script></script> in the template
There may be other way to do this.
1) If you are using template way
- You can directly write <div style="width: 500px" id="header"></div> in your template
2) Using TIWLabel
- Set RawText property to True
-
Code:
IWLabel1.Caption := '<div style="width: 500px" id="header"></div>'
3) Using TIWRegion
- TIWRegion will be rendered as <div>
- to get the html ID of IWRegion in delphi, you can call IWRegion1.HTMLName
- There may be style set by Intraweb that will conflict with what you want
To start qr code scanner you probably can do this in your form
Code:
CallbackResponse.AddJavaScriptToExecute(S); //S <= string that contain javascript needed to initiate qr code scanner
or if u are using template, u can directly go write <script></script> in the template
There may be other way to do this.