Back Contents Print Close |
Linking
to a Module From a Website See also |
Description Adding
a link to a Module From a Web Page
To create a simple link to your module from a web page, you can create a text or image link to it. For example: <a href="http://www.QuickModules.com/scripts/run?Id=2_171_ASCYG">Run the module</a> The above HTML code will create a link for the text 'Run a module'. If someone clicks on that link, the module will be displayed in the browser. Of course, you will have to substitute the link to your own module instead of the link to the example module displayed above. Similarly, you can having a link from an image instead of a text: <a href="http://www.QuickModules.com/scripts/run?Id=2_171_ASCYG"><img src="/images/btn_run.gif"></a>You can have the application popup in a new window by specifying a destination target: <a href="http://www.QuickModules.com/scripts/run?Id=2_171_ASCYG" target="_blank"><img src="/images/btn_run.gif"></a> Using simple links has a disadvantage: it completely replaces the current web page with a new one. For instance, when someone clicks on the link to your module from your web page, the browser will switch completely to the module display and all trace of your web page will be lost. This may be inconvenient if you want to keep parts of your web page visible, such as your logo, a main menus, and copyright information. The way around this is to display the module as part of a frame in your web page. If you are exclusively using Internet Explorer 4 or above, then the easiest way is to use the IFRAME HTML tag to display the module in a section of your web page. This has the smoothest integration effect. An example is:
The above code will display the module within your page in a rectangle that is 350 pixels wide and 300 pixels high. By default, the modules will be displayed with a white background. You can modify the colors easily by placing the proper HTML tags in the header and footer of the displayed procedurs. For instance, if you want your entry screen to appear with a yellow background, you can go the the 'Edit Procedure' screen for the proper procedure and add the following tags to the header:
You also need to add the following to the footer in order to close the tags opened in the header:
The above header and footer HTML will cause the whole data entry screen to appear in a table cell whose background color is yellow. Concequently, when included in your web page, it will have a yellow background. This way, you can change the colors to conform to the standards used in your website. Passing Variables
to a Module <a href="http://www.QuickModules.com/scripts/run?Id=2_171_ASCYG&City=New+York+City"><img src="/images/btn_run.gif"></a> The above reference will create a variable called 'City' whose value can be accessed by your module using the variable reference [VAR.CITY]. Please refer variables for more information about this subject. See
Also |
Copyright
© 2001 RIQ Technologies Inc. All rights reserved. |