Welcome, Guest
Username: Password: Remember me

TOPIC: How to embed a sound clip in a questions

How to embed a sound clip in a questions 4 years 4 weeks ago #51494

  • mapwork
  • mapwork's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi, I'm trying to find out how to embed a sound clip in a question. My survey is hosted on the limesurvey site.

I'm using the editor in html mode ("source" button) and gave in the following html code:

<code class="php">Click to play sound.<br />
<br />
<br />
<embed height="20" width="128" autostart="FALSE" controls="console" loop="true"
volume="50" src="myspace.limequery.org/upload/surveys/88652/bear.wav"></embed>
<br />
<br />
<br />
</code>


When I switch back to normal mode in the editor (pressing "source" button again" I see:

______________________________
Click to play sound.

(and the green puzzle piece)
________________________________

After this I update my question and use the "preview" button to test run the question.

The following test appears:
____________________________________________________________________

Click to play sound.


bed width="128" height="20" src="myspace.limequery.org/upload/surveys/88652/bear.wav" volume="50" loop="true" controls="console" autostart="FALSE">



Choose one of the following answers

* Some example answer option
* No answer

_______________________________________________________________

When I switch back to the source edit mode I see:

<code class="php">Click to play sound.<br />
<br />
<br />
<em><x>bed width="128" height="20" src="myspace.limequery.org/upload/surveys/88652/bear.wav"; volume="50" loop="true" controls="console" autostart="FALSE"> <br />
<br />
<br />
</x></em></code>

___________________________________________________________________

In the WYSIWG edit mode I see:
___________________________________________________________

Click to play sound.


bed width="128" height="20" src="myspace.limequery.org/upload/surveys/88652/bear.wav" volume="50" loop="true" controls="console" autostart="FALSE">

_________________________________________________________________

Can anybody explain me what I'm doing wrong or provide me with a similar sample question I can adapt?

Thanks a lot!

________________________________________________________________________
Last Edit: 4 years 4 weeks ago by mapwork.
The administrator has disabled public write access.

Re:How to embed a sound clip in a questions 4 years 4 weeks ago #51495

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6561
  • Thank you received: 872
  • Karma: 257
For security reason you can't use some html element in your survey. You have to contact LimeService, you have a contact link in the LimeService menu when you are connected.
The administrator has disabled public write access.

Re:How to embed a sound clip in a questions 4 years 4 weeks ago #51500

  • mapwork
  • mapwork's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Thanks a lot!

would mu code work on most other servers?
The administrator has disabled public write access.

Re:How to embed a sound clip in a questions 4 years 4 weeks ago #51505

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 826
  • Thank you received: 117
  • Karma: 93
This is not a problem of LimeService.
Just go to Global settings and deactivate the XSS filter on the tab 'Security' - after that it should accept the HTML (you will have to enter it again).
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.

Re:How to embed a sound clip in a questions 4 years 4 weeks ago #51507

  • mapwork
  • mapwork's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hi Carsten,

The question now works as expected!

Herzlichen Dank!

Jan
The administrator has disabled public write access.

Re:How to embed a sound clip in a questions 4 years 3 weeks ago #51558

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.108 seconds
Donation Image