Examples of ERXBrowser


Examples of er.extensions.appserver.ERXBrowser

        response.appendContentString(" />");

        // fix for IE < 9 that deactivates the standard submit routine of the form and
        // triggers the onClick handler of this submit element instead if the return key
        // is pressed within a textfield, radiobutton, checkbox or select
        ERXBrowser browser = ERXBrowserFactory.factory().browserMatchingRequest(context.request());
        if (browser.isIE() && browser.majorVersion().compareTo(Integer.valueOf(9)) < 0) {
            if (!hasBinding("formName")) {
                formName = ERXWOForm.formName(context, "");
            }
            AjaxUtils.appendScriptHeader(response);
            response.appendContentString("\nEvent.observe(document." + formName + ", 'keypress', function(e){");
View Full Code Here

Examples of er.extensions.appserver.ERXBrowser

    "    if(window.btnunload) return window.btnunload();\n" +
    "};</script>";
   
    public static void appendIEButtonFixToResponse(WOContext wocontext, WOResponse woresponse) {
    if(!ERXWOContext.contextDictionary().containsKey("ERXWOSubmit.ieFixed")) {
      ERXBrowser browser = ERXBrowserFactory.factory().browserMatchingRequest(wocontext.request());
      if (browser.isIE()) {
        woresponse._appendContentAsciiString(ieFix);
      }
      ERXWOContext.contextDictionary().setObjectForKey(Boolean.TRUE, "ERXWOSubmit.ieFixed");
    }
    }
View Full Code Here

Examples of er.extensions.appserver.ERXBrowser

      String previousFormName = _setFormName(context, wasInForm);
      try {
        _appendOpenTagToResponse(response, context);
        if (_multipleSubmit != null && _multipleSubmit.booleanValueInComponent(context.component())) {
          if (_addDefaultSubmitButton != null && _addDefaultSubmitButton.booleanValueInComponent(context.component()) || (_addDefaultSubmitButton == null && addDefaultSubmitButtonDefault)) {
            ERXBrowser browser = ERXBrowserFactory.factory().browserMatchingRequest(context.request());
            boolean useDisplayNone = !(browser.isSafari() && browser.version().compareTo("3.0.3") > 0);
            if(useDisplayNone) {
              response._appendContentAsciiString("<div style=\"position: absolute; left: -10000px; display: none;\"><input type=\"submit\" name=\"WOFormDummySubmit\" value=\"WOFormDummySubmit\" /></div>");
            } else {
              response._appendContentAsciiString("<div style=\"position: absolute; left: -10000px; visibility: hidden\"><input type=\"submit\" name=\"WOFormDummySubmit\" value=\"WOFormDummySubmit\" /></div>");
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.