Upload Widget

Prepared Work

When you prepare to upload the widget or the page contains widget, there are two points should be referred:

  1. 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:

  2. 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.

     

  3. 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:

  4.  

    Here are the steps of how to set the web path in the Widget tool:

    1. 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.

    2. 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;

    3. Check the box of "Using Sothink HTML Editor 's File\import widget..." to start Sothink HTML Editor

    4. Put the cursor in proper place in "HTML" window of Sothink HTML Editor and paste the code.

    5. Then you can upload these files to the directory you defined.

     

Upload