Welcome to the LimeSurvey Community Forum

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

collecting browser information

More
6 years 8 months ago #178274 by Mazi
Replied by Mazi on topic collecting browser information
Thanks for sharing the example. Are there any known reasons why Internet Explorer is stored with "browser name = Netscape"?

BTW, instead of setting the survey, group and question ID manually you can simply use this at the beginning of the code:
var SID = '{SID}'; // survey ID
var GID = '{GID}'; // group ID
var QID = '{QID}'; // question ID

Also note that the question type should be "short free text" because when using "long free text" the input field ID is different and no data may get stored. This also depends on the Limesurvey version used.

Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
The topic has been locked.
More
6 years 8 months ago #178280 by DenisChenu

Mazi wrote: Thanks for sharing the example. Are there any known reasons why Internet Explorer is stored with "browser name = Netscape"?

Can you check if it's OK on demo.sondages.pro/772229 ?

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
6 years 8 months ago #178281 by jelo
Replied by jelo on topic collecting browser information

Mazi wrote: Thanks for sharing the example. Are there any known reasons why Internet Explorer is stored with "browser name = Netscape"?

You see that in your results?

The NavigatorID.appName can be Netscape by default (in every browser).
developer.mozilla.org/en-US/docs/Web/API/NavigatorID/appName

The "navigator.userAgent" is relevant.

Beside that:
1. UserAgent can be forged.
2. When it comes to IE, IE forged the useragent to prevent false browser detection (in the haydays of Netscape/Mozilla). And IE had a UA string which caused a lot of cause and was stopped years ago. But older browser might still send a long userstring with crap.

blogs.msdn.microsoft.com/ieinternals/200...tring-use-and-abuse/

Mazi wrote: Also note that the question type should be "short free text" because when using "long free text" the input field ID is different and no data may get stored. This also depends on the Limesurvey version used.

A new issue with LS 3?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
6 years 8 months ago #178288 by Mazi
Replied by Mazi on topic collecting browser information

DenisChenu wrote: Can you check if it's OK on demo.sondages.pro/772229 ?

It is fine there!

Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
The topic has been locked.
More
6 years 8 months ago #178289 by Mazi
Replied by Mazi on topic collecting browser information

jelo wrote: You see that in your results?


Exactly!

I was assuming that the stone-old code was just not able to deal with more recent browser agent details.

The issue with the field ID is not related to LS 3 but if that has changed, it must have been quite a while ago. Even at the old 2.06 version I tested, the ID of the textarea of a "long free text" question is different from what the code tries to write to (if I didn't miss anything).

Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
The topic has been locked.
More
6 years 8 months ago #178290 by jelo
Replied by jelo on topic collecting browser information

Mazi wrote: It is fine there!

Which is no surprise, since navigator.appVersion is not used in that demo.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
6 years 8 months ago - 6 years 8 months ago #178293 by DenisChenu

jelo wrote:

Mazi wrote: It is fine there!

Which is no surprise, since navigator.appVersion is not used in that demo.

No, and never use javascript if server can do it ;).

Use
Code:
$_SERVER['HTTP_USER_AGENT']

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 6 years 8 months ago by DenisChenu.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose