Welcome, Guest
Username: Password: Remember me

TOPIC: strange code in question

strange code in question 3 years 10 months ago #53405

  • timuvt
  • timuvt's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Hello,

At the moment i'am busy with graduating, to collect data for my research i make use of a survey (limesurvey version 1.90+).

After activating the survey some people (not everyone) said that the following code -<!--[if gte mso 9]--><!--[if gte mso 9]--> appeared in some questions (the type of the questions are multipe options).

Can somebody tell me what the reason is of this code? and how to prevent this?

Thnx!

Tim
The administrator has disabled public write access.

Re:strange code in question 3 years 10 months ago #53407

  • phpsurvey
  • phpsurvey's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 42
  • Karma: 1
check the source code view of your questions - there you will find the trash code in your questions

delte the trash code and just write your question in the source code
The administrator has disabled public write access.

Re:strange code in question 3 years 10 months ago #53414

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2852
  • Thank you received: 360
  • Karma: 125
phpsurvey is right. This code comes from copy&paste from MS Word.

Here is what I found about the mso 9 thingy:
mso 9 is Office 2000. 
You are looking at a conditional comment that says 
"if using Internet Explorer and Office 2000 or later is installed then 
execute the following code until [endif]" Otherwise skip the code.
The code may or may not be seen in other browsers depending on exactly 
how the conditional comments are written. 

So don't copy directly from MS Office into Limesurvey (or any other web application), especially not with IE. In the WYSIWYG-Editor in Limesurvey there is also a function "Paste from MS Word" in the extended version. That might also help. But the best thing is, as phpsurvey said already, to switch off the WYSIWYG-Editor, because then you see all the "trash".

;-)
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re:strange code in question 3 years 10 months ago #53416

  • tfj
  • tfj's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 80
  • Thank you received: 6
  • Karma: 5
phpsurvey and holch are correct.

I have found it useful to copy anything that may be in a Word (or other software package) into Notepad first, then into LimeSurvey. This strips out all of the extraneous code. The only thing I have to do then is to reapply any formatting (such as bold, etc.)

tfj
The administrator has disabled public write access.

Re:strange code in question 3 years 10 months ago #53417

  • timuvt
  • timuvt's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
i didn't copy from msword and i use firefox ;).

i tried the first solution, hopefully that will work.
The administrator has disabled public write access.

Re:strange code in question 3 years 10 months ago #53422

  • holch
  • holch's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 2852
  • Thank you received: 360
  • Karma: 125
Well, if you don't copy from MS Word, I really don't know how XML code from MS Word comes into your question text. Do other people work on the survey as well?
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Re:strange code in question 3 years 10 months ago #53423

  • timuvt
  • timuvt's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
as far as i know i'am the only one who works on the survey.

A new version of the survey is online, and people are alreay testing the survey. so in case the code appears they will notice me.
The administrator has disabled public write access.

Re:strange code in question 3 years 10 months ago #53436

  • Mazi
  • Mazi's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 5333
  • Thank you received: 296
  • Karma: 249
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.191 seconds
Donation Image