Both sides previous revisionPrevious revisionNext revision | Previous revision |
en:create:frameset [27.11.2020 21:18] – [Delete frame contents] sophia.schauer | en:create:frameset [01.06.2022 19:57] (current) – [Define a frameset] admin |
---|
The first step is to create a frameset in SoSci Survey. Click [[http://wiki.selfhtml.org/wiki/HTML/Frames|SelfHTML: Frames]] to see what a frameset is. Loosley speaking a frameset is a table, which devides a website into areas, whereas the contents can be worked on individually. | The first step is to create a frameset in SoSci Survey. Click [[http://wiki.selfhtml.org/wiki/HTML/Frames|SelfHTML: Frames]] to see what a frameset is. Loosley speaking a frameset is a table, which devides a website into areas, whereas the contents can be worked on individually. |
| |
To generate a frameset in SoSci Survey a text file has to be created on the desktop. Name it e.g. “Start.html”. | To generate a frameset in SoSci Survey a text file has to be created on the desktop. Name it e.g. “start.html”. |
| |
**Important:** It is crucial saving the file as a pure ASCII-text. Due to this it is necessary to use a text editor (e.g. [[https://notepad-plus-plus.org/|Notepad++]], [[http://www.scintilla.org/SciTE.html|SciTE]] or Windows note pad) but __no__ word processor such as MS Word or OpenOffice/LibreOffice. | **Important:** It is crucial saving the file as a pure ASCII-text. Due to this it is necessary to use a text editor (e.g. [[https://notepad-plus-plus.org/|Notepad++]], [[http://www.scintilla.org/SciTE.html|SciTE]] or Windows note pad) but __no__ word processor such as MS Word or OpenOffice/LibreOffice. |
**Important:** Take care that the file extension is changed respectively, converting the former text file into an html-file. The file should now contain the following html-code: | **Important:** Take care that the file extension is changed respectively, converting the former text file into an html-file. The file should now contain the following html-code: |
| |
<code html> | <file html start.html> |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> |
<html> | <html> |
</frameset> | </frameset> |
</html> | </html> |
</code> | </file> |
| |
Watch out for the line ''<frame src=...'' -- your individual questionnaire-URL should be taken down here ([[:en:survey:url]]) in order to start the questionnaire in the frame. According to personal needs and preferences the following changes in the code can be made additionally: | Watch out for the line ''<frame src=...'' -- your individual questionnaire-URL should be taken down here ([[:en:survey:url]]) in order to start the questionnaire in the frame. According to personal needs and preferences the following changes in the code can be made additionally: |
**Important**: Do __not__ upload the protected filestorage! | **Important**: Do __not__ upload the protected filestorage! |
| |
| Test whether you can open the URL ''%%https://www.soscisurvey.de/PROJECT/start.html%%'' in the Internet browser, and if that leads you to the questionnaire. Instead of ''PROJECT'' you have to use you project's folder, of course ([[:en:survey:url]]). |
| |
===== Prepare Frame content ===== | ===== Prepare Frame content ===== |
The next step ist o decide what kind of content shall be uploaded to a frame. The frame should fit for a video in order to see it completely. In case of music it should be rather small so it doesn’t hide the questionnaire itself. If you know what contents ist to be added to the frame th following steps have to be taken; Create a new txt i.e. HTML file on the desktop e.g. ''play.html''. Edit file and add the HTML code which will play the contents. Here an example for music: | The next step ist o decide what kind of content shall be uploaded to a frame. The frame should fit for a video in order to see it completely. In case of music it should be rather small so it doesn’t hide the questionnaire itself. If you know what contents ist to be added to the frame th following steps have to be taken; Create a new txt i.e. HTML file on the desktop e.g. ''play.html''. Edit file and add the HTML code which will play the contents. Here an example for music: |
| |
<code html> | <file html play.html> |
<!DOCTYPE html> | <!DOCTYPE html> |
<html lang="de"> | <html lang="de"> |
</body> | </body> |
</html> | </html> |
</code> | </file> |
| |
Here the audio file was attached by ''<audio>''-tag, which is supported by most browsers. Attaching by flash player is explained here: [[:en:create:media]] | Here the audio file was attached by ''<audio>''-tag, which is supported by most browsers. Attaching by flash player is explained here: [[:en:create:media]] |