Setting up the server
After defining the HTML page that displays your plug-in application,
you need to set up the Web server.
Specifying the
MIME type
Using the appropriate software for your Web server, register
the MIME type for the PowerBuilder window plug-in. Table 32-7 shows the MIME
types you can use.
For this plug-in |
Register this MIME type |
---|---|
Standard PowerBuilder window plug-in | application/vnd.powerbuilder9 |
Secure PowerBuilder window plug-in | application/vnd.powerbuilder9-s |
The file extension associated with the MIME type is PBD.
Your server documentation might use the term content type
instead of MIME type.
Putting the files
on the server
You need to copy PowerBuilder libraries and the HTML file
to appropriate directories on your server.
Files | Location | What you do |
---|---|---|
HTML page | The HTML documents directory | Copy the HTML page to the directory specified in any URLs that link to the page |
PBD files named in the SRC and LIBRARY attributes of the Embed element |
The HTML documents directory or some other directory as appropriate |
Copy the PBD files to the directories you specified in the Embed element attributes |
About URLs The URLs you
specify in your HTML page are logical paths as defined by the Web
server. On Windows, for example, the system path for your PBD might
be:
1 |
C:WEBSITEHTDOCSPBPLUGIN_APP.PBD |
If htdocs is defined as the server’s
documents directory, you can use the following relative path when
specifying the SRC attribute of the Embed element. This path is
relative to the documents directory:
1 |
pb/plugin_app.pbd |
For the LIBRARY attribute, do not specify a relative URL for
the PBD. You must specify a full URL. For example:
1 |
http://www.mycompany.com/pb/plugin_app.pbd |