Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Drag and Drop objects, save X Y coordinates, calculate distance between objects

  • SurveyDennis
  • SurveyDennis's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 2 months ago #116029 by SurveyDennis
Not sure where to post this, but just thought it could be useful for somebody.

I have looked for a solution to drag and drop objects and how to save the coordinates of those dropped objects.
With some jQuery and other snippets/ideas/help from the LS forum I have a working example.

You can also download the lss if you like at the bottom of the post.

Blog post

@Moderator: please forgive me if this is not the right place.

Be SurveyFriendly too! Fight against boring surveys! www.SurveyFriendly.com
The following user(s) said Thank You: holch, stefanverweij
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months ago #116030 by holch
Not sure if this is the best place, but it is not the worst. So I guess I would leave it here.

Ideally this would appear in the manual under "Workarounds". Because often external sources change and the information gets lost.

By the way: I like you blog, very interesting. Had visited various times before.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • SurveyDennis
  • SurveyDennis's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 2 months ago #116043 by SurveyDennis
Much appreciated, thanks!

Be SurveyFriendly too! Fight against boring surveys! www.SurveyFriendly.com
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 2 months ago #116084 by Mazi
Thanks for sharing your solution!

Out of curiosity: Is it possible to add axes to the drag and drop area and have e.g. a smaller circle as only element?
That way one could save coordinates e.g. for a price/importance question like "How important is feature X for you and how much would you spent for it?".

There are many other examples of how to use such a two axis feature.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • SurveyDennis
  • SurveyDennis's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 2 months ago #116088 by SurveyDennis
Yes I think this could be done without too much work.
The background image from this dropzone div could have something displaying that.
Or making another div block around the dropzone div with such a background.
When I have some more time I could create an example.

Be SurveyFriendly too! Fight against boring surveys! www.SurveyFriendly.com
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose