• Button does not specify the type as submit. Click the button to jump to the specified URL


    Today, due to the requirements of the project, we need JS to control the submission of the form, and verify and process the data before submitting.The HTML code is as follows: Copy code The code is as follows: <div> <h3>Mobile phone number</h3><form needcheck=”1″ method=”post” target=”_blank” action=”http://www.go108.com.cn/go108_mobile_free_sz.php”> <p> … </p> < button > test immediately</form> </div> […]

  • Solution to jump to the landing page and jump out of iframe framework when session expired in JSP


    When the session expires, you can use the filter to set the redirection page Copy codeThe code is as follows: public class ActionFilter extends HttpServlet implements Filter {private FilterConfig filterConfig;public void init(FilterConfig config) {this.filterConfig = config;}public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws ServletException, IOException {HttpServletRequest req = (HttpServletRequest) servletRequest;servletRequest.setCharacterEncoding(“UTF-8″);HttpServletResponse res = (HttpServletResponse) servletResponse;String […]

  • Share the way of jump in JSP page


    1. Decreasing jump per second Copy codeThe code is as follows: <script language=javascript>     function out(obj){      var i = obj ;      if(i==0)      document.location.href=”index.jsp”;     document.body.innerHTML = i;      i–;     setTimeout(“out(“+i+”)”,1000);   }  </script>  <body onload=”out(5);”> </body> 2. Use response.setHeader function Copy codeThe code is as follows: <%response.setHeader(“Refresh”,”5;URL=…”);%> 3. Use meta tags […]

  • Spring Security page Jump failure solution


    This article mainly introduces how to solve the problem of spring security jump page failure. In this paper, the example code is introduced in detail, which has certain reference learning value for everyone’s study or work, and friends in need can refer to it Today, I started the new springboot project and added spring security […]

  • Custom animation jump method of IOS controller (mode jump)


    reference material: Apple development document customizing the transition animations WWDC 2013 Custom Transitions Using View Controllers legend: Jump animation has many, all can be customized There are three steps to create a custom jump 1. Create a class and implement uiviewcontrolleranimatedtransition protocol 2. Create a class as the uiviewcontrollertransitioningdelegate transition agent 3. Modify the controller’s […]

  • An example of the execution sequence between the HTML hyperlink a tag’s jump and onclick


    The execution relationship between the HTML hyperlink a tag’s jump and onclickThe “a” tag of HTML is used to jump. However, if the onclick event is added, the execution order?As follows:[code]< a http: / / 1. HTML “onclick =” return confirm (‘Do you want to delete this node? ‘);” ><img src=” shanchu.gif “></a> If onclick […]

  • How to load the local HTML page in IOS app and click the webpage link to jump to the app page


    1、 How to load local HTML file content in app: First prepare an HTML file, such as the following: <html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″> <meta http-equiv=”Content-Style-Type” content=”text/css”> <title>title</title> </head> <body> <p> <a href=“http://www.baidu.com”>go to app</a> </p> </body> </html> Next, define a uiwebview in the app to display the HTML file content //Define a WebView […]

  • How to prevent hyperlink jump when using a link


    When using < a href = “” onclick = “” > there are some problems that have puzzled me for more than a month. Now I get the following conclusions from the netizens, which makes me suddenly clear and the problems can be solved. The onclick event of the link is executed first, followed by […]

  • Implementation of HTML5 jump to the specified page of app


    1. Set urlschemes Urlschemas try to set a unique string, for example, IOS + company English name + project project nameFor example, if my setting is iostencenttest, enter the address iostencenttest: / / in the browser to jump to my app 2. Jump to the specified page The proxy method of appdelegate will be called […]

  • IOS realizes the jump function between apps


    This article shared the specific code of IOS to realize the jump function between apps for your reference. The specific content is as follows Through the OpenURL method of the system, we can jump from the current app to any other app, including the app brought by the system and developed by us. This paper […]

  • JSP build error page and jump automatically


    In various common web sites, we often find a function: when a page makes an error, it will automatically jump to a page to prompt the error information. To complete the operation of the error page, you must meet two conditions: 1. Specify the jump page when an error occurs, which is specified by the […]

  • Pyqt5 Uses Buttons to Skip Interfaces


    brief introduction There are two kinds of buttons to jump the interface. One is the code that does not use Qtdesigner, the other is the code that uses Qtdesigner. Code 1 import sys from PyQt5.QtWidgets import QMainWindow, QPushButton, QApplication class First(QMainWindow): def __init__(self): super().__init__() self.initUI() def initUI(self): self.btn = QPushButton(“Button”, self) self.btn.move(30, 50) self.setGeometry(300, 300, […]