Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Empty javascript test

Empty javascript test 9 Monate 4 Wochen her #101348

  • gregfr
  • gregfrs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Empty javascript test 9 Monate 4 Wochen her #101349

  • gregfr
  • gregfrs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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...
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Empty javascript test 9 Monate 4 Wochen her #101351

  • DenisChenu
  • DenisChenus Avatar
  • ONLINE
  • Moderator Lime
  • Beiträge: 6277
  • Dank erhalten: 801
  • Karma: 241
Hi,

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

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Empty javascript test 9 Monate 3 Wochen her #101375

  • gregfr
  • gregfrs Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Empty javascript test 9 Monate 3 Wochen her #101379

  • DenisChenu
  • DenisChenus Avatar
  • ONLINE
  • Moderator Lime
  • Beiträge: 6277
  • Dank erhalten: 801
  • Karma: 241
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 ....
Letzte Änderung: 9 Monate 3 Wochen her von DenisChenu.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.655 Sekunden
Donation Image