Prepared Work
When you prepare to upload the widget or the page contains widget, there are two points should be referred:
Which files you need to upload?
-- Except the *.pgt file, you need to upload all the files in "_pgtres"
folder. Here is a explanation for the files in "_pgtres" folder:
Support Files |
The files are needed when you run the widget. |
|
*.class |
A file necessary for applet to work |
|
*.js |
A special file to store JavaScript source code |
|
image/audio files |
Refers the image or audio files, etc. used in this widget |
|
*.pgt |
This is a special format that generated by the widget tools. The *.pgt file is used to record your modification in these tool, so when you open it next time, you can continue your configuration. |
The path problem.
During you create the widget page in Sothink HTML Editor , Sothink HTML Editor will create
a folder "_pgtres" to store the widget files (pgt, class, image
and audio files). And as we know the support files are necessary for the
widget to work. So when you upload the support files:
If you do not define the web directory for these files, please upload the "_pgtres" folder.
If you want to define these files' web directory, please define it
by using the Widget tool alone.
Here are the steps of how to set the web path in the Widget tool:
Open the widget tool alone. When you choose image, etc (support files) from your computer, you can see the "Web Path" option. You can define the web path for support files in the "web path" option.
Click the "Copy Code" to copy the HTML code of the widget. Then, clicking the "Insert into" button, the program will let you to choose the file you want to insert the code into;
Check the box of "Using Sothink HTML Editor 's File\import widget..." to start Sothink HTML Editor
![]()
Put the cursor in proper place in "HTML" window of Sothink HTML Editor and paste the code.
Then you can upload these files to the directory you defined.
Upload
Upload Progress
Connect with your web site server;
Upload the *.html, *Class, and other image/audio files according the path
in the applet code. If you have not defined the web path for these files,
please create a folder named "_pgtres" on your web site to store
these files.
The mode to transform files
You can use FTP tools to upload files. But when you upload the *.class file,
please use the binary mode. The other mode may cause the corruption of class
file.
Transform Tool
You can use Sothink SiteManager to upload the pages. Other FTP tools also
can be used.