location.href @url.action

JS to get the page's URL top.location.href and window.location.href

JS to get the page URL: (1) The common format is: window.location.href (2), but if you are logged on when the first pop-up a dialog, this dialog box, which is the login page login.jsp, this time in this dialog box if you want to get inside the outermost o

window.location.href =''a lot of data transfer solution My Opinion

Recently a project has encountered a problem, use window.location.href =''method to open a page to download print data O'clock, Dang Xuan Zhong Ke Yi normal print data 20, Danshiyici select 100 data page pointer of the Cuo Wu Jiu Hui Bao

JS call Struts in Action

Method 1: Page with the js function to redirect, window.location.href = 'actionName.action? ParaName = arg0'; If you need parameters, then you can define the parameters in the action name paraName, and generate setter and getter methods Metho

javascript url parameter to pass the Chinese garbage problem-solving program

This article comes from http://hi.baidu.com/% B4% FA% CD% E9/blog/item/b195d554158ba45f574e005e.html javascript url parameter to pass the Program in Chinese garbage problem-solving a html page: function testOne () ( var url = "testTwo.action? expr =

javascript url parameters Chinese garbled transmission problem solution

html page: function testOne () ( var url = "testTwo.action? expr =" + Hi; window.location.href = encodeURI (url); ) Background java code: String expr = new String (request.getParameter ("expr"). GetBytes ("ISO-8859-1"), "

Url package is the deal with ajax

function getUrlPara (paraName) ( var sUrl = location.href; var sReg = "(?: \ \ ?|&){ 1)" + paraName +"=([^&]*)" var re = new RegExp (sReg, "gi"); re.exec (sUrl); return RegExp. $ 1; ) document.domain = "kunl

PHP-url-value study notes

1. Page source is displayed in the browser when the browser will interpret the HTML Escape symbol So if you want to display special characters, such as '<','>' And so on, in the source code can be &lt;&gt; 2. PHP To display the time in the e

In the navigation bar or other location Add Home link

This section does not intend to translate, when left to their own needs with Copy Add Home Link with functional active state to Menu Bar (Alternative Method) Find the file called top.phtml in app / design / frontend / default / yourtheme / template / cata

Struts2 study (4) - Action based on comments configuration mode

Or registered under the Action to illustrate the configuration, the configuration of Action to say here, not in src / struts.xml in, but with annotations to configure the way In addition to the basic premise is that six jar package, you also need a struts

[Zhang Bing Struts2 study notes] 0502.struts.xml Detailed configuration of the five Action Configuration 2

Detailed configuration of the five Action struts.xml Configuration 2 1. Action configuration 1.1, method attributes and dynamic method calls attention to points 1, method attribute can automatically match doXXX () methods, such as doAdd (), visited the sa

Session, Cookie, jsessionid, and Url Rewriting

Session, Cookie, jsessionid, and Url Rewriting Fault Description: Personnel management system (A) embedded in the permissions system (B), B system through the Servlet simulated landing, and landing information cached in Session A system has to ensure that

Session, Cookie, jsessionid, Url Rewriting

In some occasions, like voting, we often required because of the principle of fairness can only cast one vote per person, in a number of WEB development had a similar situation, we usually use this time to achieve COOKIE, such as the following code: <%

Ways of action in opener form and refresh parent form

Patrick Program 1: 1. Head in the parent page to add the following <script type="text/javascript" src="/javascripts/jquery.js"></script> <script type="text/javascript" src="/javascripts/thickbox.js"></script> <link href="/styles

jquery refresh the page-based approach, and some javascript functions

jquery refresh the page partial refresh: This method more to go, and often there are several; $. get method, $. post method, $. getJson method, $. ajax as follows The first two use basically the same $. get ( "Default.php", (id: "1", p

107 Common Javascript statement

1. Document.write ( ""); Output Statement 2.JS the comment is / / 3. The traditional sequence of HTML documents: document-> html-> (head, body) 4. A browser window in the DOM order is: window-> (navigator, screen, history, location, doc

javascript Collection study notes 107

js Collection study notes, record the contents of the JAVA SCRIPT Collection 1.document.write (""); Output Statement 2.JS in the comments for / / 3. The traditional sequence of HTML documents: document-> html-> (head, body) 4. A browser wi

JavaScript-based (change)

1.document.write (""); for the output statement 2.JS in the comments for / / 3. The traditional sequence of HTML documents: document-> html-> (head, body) 4. A browser window in the DOM order is: window-> (navigator, screen, history, lo

Data tables Flexigrid to use under the FleaPHP Introduction

At present, the network could find, based on jQuery framework, feature more powerful grid there are two: jqGrid and Flexigrid. While these two forms is not Ext-Grid Form plug-in feature that powerful, but the basic applications to meet the day to day. jqG

jQuery.FlexiGrid the use of summary

After a FlexiGrid of large-scale use, and refined from time to time under its code, to her understanding of a certain temperament, is the time to do the summary. 1, FlexiGrid downloads 1, original code Paulo P. Marinas right FlexiGrid recently made change

Page request to the event, the article is reproduced

The first one: var url = "documentHelpFunccodeAction.action? funccode =" + value; window.open (url, "null", "height = 600px, width = 640px, top = 50px, left = 165px, status = yes, toolbar = no, menubar = no, location = no, sc ...

Paging using pager taglib (drop-down box to dynamically specify the number of bars per page)

1, the pager-taglib.jar copy to the project's lib directory 2, to use the jsp page in the introduction of tag libraries <%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager" %> 3, using the presentation of static html: <body

ASP.NET page refresh to achieve Methods

Look at the ASP.NET page to refresh the realization: First: private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } Second: private void Button2_Click( object sender, System.EventArgs e ) { Respons

ExtJs 2.2 Grid solutions for Excel Export (support ie6, ie7, firefox2.0)

1. I want to use Ext Grid where you want to export data to Excel, can export multiple pages, not just Grid in the browse page. At first, the way I use window.open to open the downloaded file, but in ie6, ie7 simply can not download files under (this time

Data table Flexigrid use in FleaPHP introduced under

Currently, the network could find, based on jQuery framework, more robust grid function has two: jqGrid and Flexigrid. Although the two forms plug-in form is not Ext-Grid feature that powerful, but can satisfy the daily application. jqGrid use of stone in

jQuery.FlexiGrid Use Summary

Through FlexiGrid are widely used, and refined from time to time under its code, a certain temperament to her understanding, is the time to take stock. 1, FlexiGrid download 1, original code Paulo P. Marinas on FlexiGrid recently made changes to adapt to

JS page refresh Summary

Realization of automatic refresh page summary: 1) <meta http-equiv="refresh"content="10;url= The jump page "> 10 indicated that 10 seconds refresh interval 2) <script language=''javascript''> window.location

Jump to the parent page

function addUpdateFunc (url) ( parent.location.href = url; ) <ec:column title=" Company name " property="zxc"> <A href = '#' onclick = "addUpdateFunc ('login.action? m = login & adminId = $ (m.clientI ...

Different way of sending the request result is different

Export EXCEL to do today's feature, the background to generate EXCEL, in accordance with the STRUTS2 download of papers to write ACTION and configuration, but reception is not always pop-up download dialog box. The reason is in the foreground wit ...

ASP.NET How to refresh parent window script output statement

response.Write ("<script> window.parent.location.reload ();</ script>") window.parent.function () / / call the parent page is not an expression of the incident do not know enough to clear, there is a page frame contains a form submis

Function refresh parent page

Page two Frame, how to submit a Frame in Another Frame button will refresh the page, do not update the database. Seems to use iframe. Better to say more, there are some code. Because I have never done this. Computer Horizons Web Editor answers: is to subm

ExtTree the context menu and drag the synchronization database CRUD

Simply have to learn a ExtTree ExtJs is often a lot of developers say, indeed, Ext tree support is very good and very beautiful show up. Now I come through the code I was introduced to the learning process of knowledge on all aspects of ExtTree Code: Ext.

Great collection of ASP.NET page refresh method

Look at the ASP.NET page to refresh the realization: First: C # code <! - Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -> private void Button1_Click (object sender, System.EventArgs e) (Response.Re

IE use JavaScript's window.open function in a new window export EXCEL XML form data processing error

Sometimes, according to customer demand, the need to export the data to the XML form template EXCEL. During this operation, in order not to overwrite the previous export window user interface, you need to open a new browser window goals, operate in a new

Traverse all the files under the folder, edit, delete

Example 1, <?php /* 遍历文件夹; 功能:(a)可删除文件 (b)可编辑文本,网页文件 (c)可删除文件夹,前提是该文件夹为空 (d)可建立文件,文件夹,修改文件夹名称; */ $path=$DOCUMENT_ROOT; $path=str_replace("/","\\",$path); // 指定文件夹 $path=$path."\\"; if($_GET['folder']) { $path.=$_GET['folder']."\\"; } // 本页面路径,下面传

js validation of style a little taste EXT

if('SUCCESS'=='${SUCCESS}') { alert("add success!"); location.href="adminList.action" } $(function(){ adminAdd.register(); }); var adminAdd = { register:function(){ $("#btn_save").parent().click(function(){ if(adminAdd._validateAdd()) { $.ajax({ type: "PO

All types of pop-up boxes ASP.NET

We. NET program development process, often the information needs and user interaction, such as to perform an action is successful, "OK" or "Cancel" and select "OK" or "Cancel" after the jump to a particular nee

Jump over the button issues

<form name="form1" action="Product/Product-list" method="post"> <input type="submit" value=" Delete "/> <input type="submit" value=" Add "/> / * <script Language=

some of the ways to refresh the page javascript

2) <script> window.location.reload (true); </ Script> If you want to refresh the window to put an iframe into a frame name or ID number 3) <script> window.navigate ("This page url"); </ Script> 4> function abc () ( win

Common javascript statement 107

1. Document.write (""); output statement 2.JS the comment is / / 3. The traditional HTML document order is: document-> html-> (head, body) 4. A browser window DOM order is: window-> (navigator, screen, history, location, document) 5. Ar

JavaScript functions (unfinished)

JavaScript function 1.document.write (""); for the output statement 2.JS the comment is / / 3. The traditional HTML document order is: document-> html-> (head, body) 4. A browser window DOM order is: window-> (navigator, screen, history

the basis of usage of js

1.document.write (""); output statement 2.JS the comment is / / 3. The traditional HTML document order is: document-> html-> (head, body) 4. A browser window DOM order is: window-> (navigator, screen, history, location, document) 5. Are

JavaScript function Daquan

1.document.write(""); The output statement 2.JS Comments in the // 3. The traditional order of HTML documents :document->html->(head,body) 4. A browser window DOM order of :window->(navigator,screen,history,location,document) 5. Get the form elem

Realization of the page automatically refreshes Summary

1) <meta http-equiv="refresh"content="10;url= Jump page "> //10 Represents the interval to 10 seconds to refresh 2) <script language=''javascript''> window.location.reload(true); </script> If you want to refresh the window to put an ifra

JS refresh the iframe method of achieving

JS refresh the iframe method of achieving <! - Body start -> <iframe src="1.htm" name="ifrmname"> </ iframe> Option One: The name attribute with iframe targeting <Input type = "button" name = "Button

9.MVC limited application security

Common network security risks attack defense system for Asp.net MVC Security Policy where name =''and password ='' Logic switching where name =''and password = '1 'or '1 = 1' Script injection attacks Asp.net we

107 JS based, Web programmers to develop the necessary

1.document.write (""); output statement 2.JS the comment is / / 3. The traditional HTML document order is: document-> html-> (head, body) 4. A browser window DOM order is: window-> (navigator, screen, history, location, document) 5. Are

jsp drop-down box events, click on an item to hide and show a cell event (test)

<td align="left" width="17%"> Report Name: <select name="formCode" onchange="selectCode(this.options[this.selectedIndex].value);"> <% If (StringUtils.isEmpty (formCode)) {%> <option value="

Flv to try: demonstration ajax implementation puff at RJS in effect

Troublesome really ah, finally get Some RJS message Introduction What are RJS? What are RJS? Ajax allows users with the interaction between the browser experience is more like desktop programs. Since Ajax allows the browser to initiate a remote call in th

Flv to try: demonstration ajax implementation of puff at the effect of RJS

It's really annoying, ah, finally get Some message RJS Introduction What is RJS? What is RJS? Ajax allows the user and the interaction between the browser experience is more like desktop programs. Since Ajax allows the browser to launch long-distance

js some of the most practical operation

1. Oncontextmenu = "window.event.returnValue = false" will completely shield the right mouse button <table border oncontextmenu=return(false)> <td> no </ table> can be used for Table 2. <body Onselectstart="return false
Recent
Recent Entries
Tag Cloud
Random Entries