Welcome, Guest
Username: Password: Remember me

TOPIC: Embedded survey with iframe - File upload only works with chrome

Embedded survey with iframe - File upload only works with chrome 2 years 8 months ago #71215

  • prady
  • prady's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
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_test_survey_2011-12-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_survey_27877.lss
File Size: 19 KB


Thank you in advance!

Nicola
Attachments:
Last Edit: 2 years 8 months ago by prady.
The administrator has disabled public write access.

Re: Embedded survey with iframe - File upload only works with chrome 2 years 8 months ago #71218

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4185
  • Thank you received: 785
  • Karma: 359
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: Embedded survey with iframe - File upload only works with chrome 2 years 8 months ago #71223

  • prady
  • prady's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
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?
The administrator has disabled public write access.

Re: Embedded survey with iframe - File upload only works with chrome 2 years 8 months ago #71224

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4185
  • Thank you received: 785
  • Karma: 359
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.

Capture_2011-12-23.PNG
Cheers,
Tony Partner

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

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: prady

Re: Embedded survey with iframe - File upload only works with chrome 2 years 8 months ago #71227

  • prady
  • prady's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 14
  • Karma: 0
Thak you Tony. I'll try something different.
And I hope that in LimeSurvey 2.0 this issue will be solved... :-)

Nicola
Last Edit: 2 years 8 months ago by prady.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.109 seconds
Donation Image