*/
}
+ /**
+ * Encode the URI using JavaScript encodeURIComponent
+ *
+ * @param value
+ * @return encoded value
+ */
public static String encodeURI(String value)
{
/**
- * @j2sNative return encodeURIComponent(value);
+ * @j2sNative value = encodeURIComponent(value);
*/
return value;
}
+ /**
+ * Open the URL using a simple window call if this is JavaScript
+ *
+ * @param url
+ * @return true if window has been opened
+ */
public static boolean openURL(String url)
{
if (!isJS())