| | |
1 | | What is the concept of ALIAS? |
| | ALIAS addresses two problems: 1. Let's suppose you want to reference a image on your application. How can you do that? Well, you may set the Source property to it's full filename that fine for design time but it will probably gives you bad results during run-time. During run-time your application should reference the same image using virtual paths.
2. Now let's suppose you want to reference a dynamic link (HREF) on your application. You set it's value at OnBeforeContent or you can do it automatically just by setting this value to, for example, "goto?cod=<cod>".
So ALIAS maybe used in all Source and Link properties and its ALIAS will be replace by the corresponding value according to the following rules: a) If the control has a datasouce and the alias name matches a fieldname, by the value of its field; b) If there is a LocalAlias that matches the name on TInterProducer.Options.LocalAlias; c) if there is a global Alias that matches the name on the section [ALIAS] of .INI file of your application |
| | |
2 | | How to reference a image in design-time and run-time? |
| | Image1.Source:='<image>\background.jpg';
At you .INI file:
[Alias] image=c:\images |
| | |
3 | | Is InterDelphi threadsafe? |
| | Yes. And your code may have different levels of protection using the ThreadSafe property |
| | |
4 | | Does InterDelphi support style-sheets? |
| | Yes. You can do it using the TInterProducer.Style property |
| | |
5 | | Does InterDelphi suports JavaScript or VBScript scripts? |
| | For sure. You can write it in what language you want using the Script.Code and Script.Language |
| | |
6 | | Is there way to upload a file to server? |
| | Yes. TInterMultPart provides support for MultiPart form encoding which allows you to upload files writing just a few lines of code. |
| | |
7 | | What HTML version InterDelphi generates? |
| | The main target of InterDelphi is to be compatible to all browsers. By this way, InterDelphi mix HTML 3.2 and 4.0 using a subset of each standard to make to HTML page compatible to all browsers. |