embed survey in specified web page div

Plus d'informations
il y a 6 ans 10 mois #81011 par wanja
COM_KUNENA_MESSAGE_CREATED_NEW
can a limesurvey be embedded in a specified web page div? if so, how?

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 6 ans 10 mois #81012 par DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
Hello,

The quickiest and easy way is to include it in an iframe.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 ans 10 mois #81043 par wanja
COM_KUNENA_MESSAGE_REPLIED_NEW
thanks for the reponse.


is there an example or reference for the code that would be included in the iframe? more specifically would I use a link or need to look at code on the server and replicate what is needed in the iframe?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 6 ans 10 mois #81045 par DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW
....
<iframe id="enid" title="My Survey"  src="http://yoursurveysurl/index.php?sid=76475&newtest=Y"></iframe>
www.w3.org/TR/html4/present/frames.html

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 mois 3 semaines #171779 par bshores
COM_KUNENA_MESSAGE_REPLIED_NEW
I don't believe this is possible anymore, as LimeSurvey has added CSRF tokens, which are blocked in more browsers now as "third party tokens" under an iFrame.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 mois 3 semaines #171783 par holch
COM_KUNENA_MESSAGE_REPLIED_NEW
This post was never about surveys with tokens...

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 mois 3 semaines #171787 par bshores
COM_KUNENA_MESSAGE_REPLIED_NEW
OK, so if you think I mean LimeSurvey tokens, then that's not the case.

To watch for cross site references, LimeSurvey creates CSRF tokens ( think cookie, not a token like you create in the admin page for a survey ). These tokens are used when you enter and start a survey to make sure you are who you say you are and someone isn't spoofing your browser with a hidden iframe type deal. Unfortunately, Safari and mobile apps block cookies in an iFrame, so limesurvey gives you this wonder 400 error and won't let you take the survey.

Does that explain better?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 mois 3 semaines #171788 par holch
COM_KUNENA_MESSAGE_REPLIED_NEW
You checked the setting specifically for iframes, right?
manual.limesurvey.org/Global_settings

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 mois 3 semaines #171811 par jelo
COM_KUNENA_MESSAGE_REPLIED_NEW

bshores écrit: LimeSurvey creates CSRF tokens

LimeSurvey uses Yii 1.1 framework, which is setting the CSRF cookies.
www.yiiframework.com/doc/guide/1.1/en/topics.security

Not many settings of the Yii framework are exposed to the GUI of LimeSurvey.
You might take a look at the config files and change the default behaviour of LS/Yii there.

manual.limesurvey.org/Optional_settings#Session_settings

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Les utilisateur(s) suivant ont remercié: DenisChenu, LouisGac

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 mois 3 semaines #171815 par DenisChenu
COM_KUNENA_MESSAGE_REPLIED_NEW

bshores écrit: …Unfortunately, Safari and mobile apps block cookies in an iFrame, so limesurvey gives you this wonder 400 error and won't let you take the survey …

I think it's fortunately

But you can test with disabling CRSF, if i remind it work with survey in all in one page.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 mois 3 semaines #171895 par bshores
COM_KUNENA_MESSAGE_REPLIED_NEW
This is running on a customers instance, and they "for obvious reasons" don't want that setting turned off.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 mois 3 semaines #171896 par bshores
COM_KUNENA_MESSAGE_REPLIED_NEW
Fortunately might be the better word, though I don't see a malicious person wanting to fill out a survey for another user without their knowledge for any good reason. I guess maybe if it was something like Amazon feedback where you wanted to pump up your reputation for a product, but in my guess, there's no good reason to spoof data.

But yes, I've had to go off the iFrame route. Can't disable CRSF in the global limequery site, and the instance I'm running on from a customer also has it on.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 8 mois 3 semaines #171926 par LouisGac
COM_KUNENA_MESSAGE_REPLIED_NEW
in admin/globalsettings#security ; IFrame embedding allowed: Allow / Same Origin

this could help

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!