home *** CD-ROM | disk | FTP | other *** search
/ Delphi Anthology / aDELPHI.iso / Runimage / Delphi50 / Demos / Midas / InternetExpress / InetXCenter / readme.txt < prev   
Text File  |  1999-08-11  |  5KB  |  121 lines

  1. InternetExpress Center Demo
  2.  
  3. This sample application demonstrates a web site containing
  4. InternetExpress information and examples.
  5.  
  6. The following projects are part of this example:
  7.  
  8. 1) InetXCenterCGI.Exe, INetXCenterISAPI
  9. These are two versions of the same application.  See
  10. INetXCenterModule for additional comments.  
  11.  
  12. 2) rdmINetXCenter.exe
  13. This remote data module provides data uses by INetXCenterCGI and
  14. INetXCenterISAPI.
  15.  
  16. 3) InetXCenterComponents.bpl
  17. This component package contains a custom page producer and
  18. a custom client dataset.  See InetXCenterProd.pas and
  19. readfileclientdataset.pas for additional comments.  You will
  20. need to build and install this package before opening a designer
  21. on INetXCenterModule.pas.
  22.  
  23. 4) ComponentsInfoEditor.exe
  24. This Windows application is used to edit the contents of a
  25. local ClientDataSet file.  See ComponentsInfoEditUnit1.pas for
  26. additional comments.
  27.  
  28. 5) DclINetXCustom.bpl, INetXCustom.bpl
  29. These are the design and runtime packages of InternetExpress custom
  30. components.  You will need to build these packages and
  31. install DclINetXCustom.bpl before opening a designer
  32. on INetXCenterModule.pas.  These packages are located in
  33. the InetXCustom subdirectory.
  34.  
  35.  
  36. Setup
  37.  
  38.   1) You'll need a webserver and a virtual directory to put
  39.   the executable (INetxCenterISAPI.DLL or INetXCenterCGI.EXE) and
  40.   the web midas java script. The virtual directory will need to allow
  41.   execute and script access.
  42.  
  43.   2) Copy source\webmidas\*.js to the virtual directory.  Modify
  44.   the project options of InetXCenter*.dpr so that the output directory
  45.   is the virtual directory.  Build InetXCenter*.dpr.
  46.   
  47.   3) Copy *.htm, *.cgi, *.jpg from InetXCustom and INetXCenter to the virtual directory.
  48.   Image components
  49.   
  50.   If you would like the .gif and .jpg files to display properly at
  51.   design time, add the following registry string:
  52.  
  53.   HKEY_CURRENT_USER\Software\Borland\
  54.   delphi\5.0\Property Editors\WebPage Editor\BlankPage = 'c:\inetpub\wwwroot\blank.htm'
  55.  
  56.   Substitute c:\inetpub\wwwroot with the directory where the .gif and .jpg
  57.   files are located.
  58.   You will also need to create a file called blank.htm in this directory.  This
  59.   file should be empty.  
  60.  
  61.   The file specified by this registry key will be used to initialize the
  62.   WebBrowser control embedded within the TMidasPageProducer property editor. 
  63.  
  64.   You may also specify a URL instead of a file path.  For example,
  65.   BlankPage = http://localhost/blank.htm.   
  66.  
  67.   4) Copy the clientdataset file containing components information
  68.   (componentsinfo.cds) to the virtual directory.  Alternatively,
  69.   you can change the filename property of InetxCenterModule.ComponentsInfoDS
  70.   and ComponentsInfoEditorUnit1.ClientDataSet1 to a fully
  71.   qualified filename.
  72.  
  73.   5) Build and run (to register) the remote data module rdmInetXCenter.exe.
  74.  
  75.   6) Use DCOM config to allow the remote data module to be launched
  76.   by the web server.  The coclass name is INetXCenterData.
  77.   For IIS this means giving the IUSER_ guest
  78.   account launch rights.  See the DCOM config security page.  You may
  79.   also want to change the Identify to interactive user so that
  80.   you can shut down the remote data module using the task manager.
  81.  
  82.   7) Compile InetxCenterISAPI.dll and InetxCenterCGI.exe.  Copy these
  83.   files to the virtual directory.  Or, instead of copying and 
  84.   before you compile, set the Project/Options/Directories/Output Directory 
  85.   to the location of your virtual directory.  
  86.  
  87.   8) Access the web module by entering the name of your virtual
  88.   directory URL followed by the name of the executable.
  89.  
  90.   For example: http://localhost/webpub/demo/InetXCenterISAPI.dll,
  91.   or http://localhost/webpub/demo/InetxCenterCGI.exe.
  92.  
  93. Troubleshooting
  94.  
  95.   If you have trouble getting the pages to display, verify that
  96.   the java script files are available and that DCOM security is
  97.   set up correctly. 
  98.   
  99.   Note that Navigator often has better error reporting than IE.  
  100.   Try Navigator if IE isn't providing a usefull message.
  101.   
  102.   You can also use the scripttest.html file in the troubleshoot
  103.   sample directory to verify that the InternetExpress 
  104.   JavaScript include files are available from your web server.
  105.  
  106. Shutting down the virtual directory
  107.  
  108.   If InetXCenterISAPI.dll has been loaded
  109.   by the web server you will need to shut down the virtual directory
  110.   before replacing InetXCenterISAPI.dll.  If you are using IIS then
  111.   Internet Service Manager can be used to shutdown the virtual directory
  112.   (Note that Internet Service Manager is not installed by default when
  113.   you install PWS on NT 4.0.  You will need to check this option during
  114.   installation).  To shutdown a virtual directory, open Internet
  115.   Service Manager, right click on the virtual directory, and choose
  116.   "Properties...".  Click the Unload button located on the Virtual Directory
  117.   tab.
  118.  
  119.  
  120.  
  121.