Welcome, Guest
Username: Password: Remember me

TOPIC: Empty javascript test

Empty javascript test 11 months 2 weeks ago #101348

  • gregfr
  • gregfr's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Hello Community

I'm creating my first survey with LS, and I'm using the feature where a question B appears only when a question A is given a specific answer.

When I browse to the question B, Chrome gives an error:
Uncaught SyntaxError: Unexpected token ) 
Uncaught ReferenceError: ExprMgr_process_relevance_and_tailoring is not defined 

The first one is:
  if(){
    $('#vmsg_32_regex_validation').removeClass('error').addClass('good');
  }
  else {
    $('#vmsg_32_regex_validation').removeClass('good').addClass('error');
    isValidOther32=false;
  }

The second one is:
 ExprMgr_process_relevance_and_tailoring(evt_type,name,type);


looks like a bug but maybe I'm doing something wrong?
The administrator has disabled public write access.

Empty javascript test 11 months 2 weeks ago #101349

  • gregfr
  • gregfr's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
I saw somewhere it could be a cache problem, not in my case I tried with a "clean" browser and also on a different server...
The administrator has disabled public write access.

Empty javascript test 11 months 2 weeks ago #101351

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6435
  • Thank you received: 840
  • Karma: 249
Hi,

You surely have a "EM" expression error : look at the Expression Manager test file.

Denis
The administrator has disabled public write access.

Empty javascript test 11 months 2 weeks ago #101375

  • gregfr
  • gregfr's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thanks for your answer :)

Well I don't know what an "EM" expression is... I have lots to learn!

Meanwhile I deleted the question and added it back manually and the error disappeared.

However I had a few other javascripts error because of empty variable declaration (like "var whatever = ;"). Is there a way for me to track these back to the location of the problem?

Thanks again!

greg
The administrator has disabled public write access.

Empty javascript test 11 months 2 weeks ago #101379

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6435
  • Thank you received: 840
  • Karma: 249
Hi,

For Expression Manager validation, look at the survey menu / survey settings / end of this menu.
It's the better way to track down Logic Error.

Denis
PS: need some doc update here ....
Last Edit: 11 months 2 weeks ago by DenisChenu.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.241 seconds
Donation Image