0

Error: The Server is Temporarily out of service (MISSING) after argument list(SyntaxError))

asked 2016-06-09 10:17:11 +0800

Prashant06 gravatar image Prashant06
1 1

updated 2016-06-09 10:17:48 +0800

Hi i'm Getting The Server is Temporarily out of Service (MISSING) after argument list(SyntaxError)) while firing an event from zul to viewmodel.

Note:It is Giving JavaScript error popup.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-06-22 08:48:54 +0800

Prashant06 gravatar image Prashant06
1 1

updated 2016-06-22 08:49:55 +0800

Hi Darksu, The problem is with the text with apostrophe "'" sign.Since i'm concatenating the placeholder with the strings whenever there's apostrophe character in placeholder it was giving error.

Now it is handled.

public void setPlaceholder(String placeholder) {

    super.setPlaceholder(placeholder);
    placeholder = replaceSingleQuotes(placeholder);
    setTooltiptext("Please Enter  " + placeholder + " date in "
            + Services.siteConfigService().getSiteConfig().getDateFormat(UserSubject.current().getLanguage()) + " format ");
    setWidgetListener("onFocus", "$(this).find('input').attr('aria-label','Please Enter  " + placeholder + " date in "
            + Services.siteConfigService().getSiteConfig().getDateFormat(UserSubject.current().getLanguage()) + " format" + "');"
            + "$(this).find('a').attr('href','#');" + "$(this).find('a').attr('aria-label','Calendar');");
}

Thanks Prashant

link publish delete flag offensive edit
0

answered 2016-06-11 14:53:23 +0800

Darksu gravatar image Darksu
1991 1 4

Hello Prashant06,

In order to better understand the issue, could you please post or create a fiddle of your code and provide information regarding your environment configuration (Browser, ZK Version, etc)?

Best Regards,

Darksu

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2016-06-09 10:17:11 +0800

Seen: 21 times

Last updated: Jun 22 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More