Check out the LimeSurvey source code on GitHub!

Embedded survey with iframe - File upload only works with chrome

More
5 years 2 months ago - 5 years 2 months ago #71215 by prady
Hi to all, if I embed a survey in a page using the "iframe" tag, file upload questions only works with chrome.
Can I make them work with all browsers?

The attacched html files is an example.

File Attachment:

File Name: Iframe_tes...2-23.zip
File Size:0 KB


The frame is linked to a survey with a couple of file upload questions.
On my pc they work only with chrome.
Only once it happend that the first question worked with firefox, but the second one (set via condition) didn't. That's why I left both of them in the example file.

This is the survey file:

File Attachment:

File Name: limesurvey...7877.lss
File Size:19 KB


Thank you in advance!

Nicola
Attachments:
Last Edit: 5 years 2 months ago by prady.

Please Log in to join the conversation.

More
5 years 2 months ago #71218 by tpartner
You may be violating the "Same origin policy" - en.wikipedia.org/Same_origin_policy

A possible workaround would be to use the easyXDM library - easyxdm.net/wp/

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
5 years 2 months ago #71223 by prady
I'm not an expert user, but I thought about it.
The strangest thing is that the newest browser (chrome) is not affected by the problem.
Couldn't it be a bug or something different?

Please Log in to join the conversation.

More
5 years 2 months ago #71224 by tpartner
I think it's probably a bug in Chrome not adhering to the policy, not a LimeSurvey bug.

I tested the survey in FF and got the following JavaScript error which points to that policy.


Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: prady

Please Log in to join the conversation.

More
5 years 2 months ago - 5 years 2 months ago #71227 by prady
Thak you Tony. I'll try something different.
And I hope that in LimeSurvey 2.0 this issue will be solved... :-)

Nicola
Last Edit: 5 years 2 months ago by prady.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form