-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
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
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
Asked: 2016-06-09 10:17:11 +0800
Seen: 21 times
Last updated: Jun 22 '16