- window.open、window.showModalDialog和window.showModelessDialog 的区别
zmbaliqq
js
转自http://dwcmayday201204063551.iteye.com/blog/1621751一、前言要打开一个可以载入页面的子窗口有三种方法,分别是window.open、window.showModalDialog和window.showModelessDialog。open方法就是打开一个页面,可以说同用url链接打开一个页面一样,不推荐使用,因为很多浏览器会拦截。这里推荐使用的
- Window 打开新窗口的几种方式 window.location.href、window.open、window.showModalDialog
YangHuan3
vuevue.jsjavascriptelementui
我们写的项目是后台管理的话,当在当前窗口打开一个新窗口1、方式1:window.location.href例:window.location.href=`https://www.cnblogs.com/guorongtao/`;//在当前窗口中打开窗口vue中window.location.href="https://www.cnblogs.com/guorongtao/";//js中类似于HTM
- 移动端裁剪头像功能
风间澈618
js选择文件上传之前传统的选择文件方式是给一个input标签点击上传,然后美化一下UI。后面出了一些新的API,可以用js方式来处理选择文件这个操作。以下是一些相关的API:Window.showSaveFilePicker()Window.showOpenFilePicker()Window.showDirectoryPicker()Window.showModalDialog()(已删除)使用
- JavaScript Window 打开新窗口的几种方式 window.location.href、window.open、window.showModalDialog
xuefeng_210
javascript开发语言
1、方式1:window.location.hrefwindow.location.href="https://www.cnblogs.com/guorongtao/"; //在当前窗口中打开窗口类似于HTML:WelcomeTest12、方式2:window.openwindow.open("https://www.cnblogs.com/guorongtao/"); //在另外新
- 弹出子页面,兼容ie
痛心凉
window.showModalDialog()(兼容ie的写法)模式窗口,一种很特别的窗口,当它打开时,后面的父窗口的活动会停止,除非当前的模式子窗口关闭了,才能操作父窗口.在做网页Ajax开发时,我们应该有时会用到它来实现表单的填写,或做类似网上答题的窗口.它的特点是,传参很方便也很强大,可直接调用父窗口的变量和方法.使用方法:vReturnValue=window.showModalDial
- 如何把一个页面中textbox的值传给另一个页面中的textbox
realduke2000
相信以后必然有用到的地方!1、在ASP.NET2.0中,你可以把A页面的提交页面设置为B页面,在B页面中,就可以获取A页面里的控件值。2、你可以把值存放在Cookie或Session中,在B页面中获取。page1PAGE1...functionclick1()...{window.showModalDialog("page2.html",window,"height=200,width=400")
- showDialog回传值问题javascript
eric88
javascript
另一个贴子是别人写的,我参考了一下,这个是自己用到的。functionprAdvance(){if(validateSystem_SearchForm(System_SearchForm)){varobjForm=document.Systemlog_SearchForm;varnewUrl="/system/openAdDialog.do";window.showModalDialog(newU
- (转载)showdialog刷新问题
angehe56575
通过ShowModalDialog打开的页面会自动从IE的缓存中获得内容并显示。如果想每次通过ShowModalDialog打开的页面都自动刷新的话,只需要在脚本中设定一个参数,例如:ShowModalDialog("xxx.aspx?id=1&tempid=223");其中tempid是一个xxx.aspx中并不需要使用到的参数,只要这个参数每次不同,通过ShowModalDialog打开的页面
- js--前台双击域获取数据实践
GP0071
前台技术双击域
通过点击前台双击录入域,弹出模态框,展示数据,并且展示固定数量的数据,实现分页功能。1、首先在触发双击事件(ondblclick)后,需要弹出一个窗口。functionondbGuanLianADId(){adId=window.showModalDialog('getAdForMac.action',null,'dialogHeight=500px;dialogWidth=420px;');va
- window.showModalDialog不兼容解决办法
加班狂魔
前端
1.传值的解决办法1、直接设置父窗口的DOM对象的值。window.opener.document.getElementById(“parentWindowControlId”).value="数window.opener.document.getElementById(“parentWindowControlId”).value="数据";父窗口中应该有一个id为parentWindowCont
- 用open或showModalDialog实现父子页面传值
幸福是什么感觉呢
学习轨迹java
1open如果实现open窗口父子页面传值,在父页面声明一个函数,函数要求要有参数,用来接收子页面传过来的值,子页面通过调用“window.opener.父页面函数”来实现将值传回父页面。父页面://open窗口functionchooseDept(){window.open("listDept.html","","width=150px,height=400px");}functionrecei
- jsp showModalDialog父子窗口传值
yinxianluo
JAVA开发JSjspshowModalDialog
NewDocument传递到父窗口的值:返回的值:子窗口设置的值:child.htmlNewDocument父窗口传递来的值:输入要设置父窗口的值:输入返回的值:说明1.下面是取消客户端缓存的:也可以在服务器端取消缓存,参考脚本之家下一篇文章2.向父窗口传递阐述在ASP.NET中也可以是用aaa.aspx?id=1的方式传递.3.不刷新父窗口的话在父窗口中直接这样一来设置可以.window.sho
- HTML父子页面通信问题(showModalDialog)
weixin_30872867
1.showModalDialog参数说明window.showModalDialog(URL,ARGS,Features)(在父窗口中调用打开新的窗口)URL--必选参数,类型:字符串。用来指定对话框要显示的文档的URL。ARGS--可选参数,类型:变体。向窗口中传递参数。在子窗口中使用window.dialogArguments来取得传递进来的参数。Features--可选参数,类型:字符串。
- JS中showModalDialog 详细使用
weixin_30483013
javascript
基本介绍:showModalDialog()(IE4+支持)showModelessDialog()(IE5+支持)window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框。window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。使用方法:vReturnValue=window.showModalDialog(sUR
- 在IE8下的target="_self"问题,我以前问的,原因找到
飞飞的魔毯小窝
原贴是这样的问题是这样的我在A窗口用showModalDialog方法弹出一个新窗口B,但单击新窗口B中的按钮后,IE8下又会弹出一个新窗口,但IE6下不会。因为我加了这行代码。难道IE8下,这个语句没有用?IE6下是可以的。求解。解决方法:问题源头解决了将这一段放到的下面,放在其它地方不行。
- 子窗口保存修改并关闭,同时刷新父窗口
cookie-niu
net
问题描述:在子页面中,修改完点保存的时候,保存数据,自身关闭,父页面刷新,以显示修改后的数据1、在父页面:点修改时弹出子窗口的代码(用window.showModalDialog主要是让用户必须点此修改响应后才能做其他的任务):Js代码//showModalDialog窗体中的第二个参数,是当前窗体对象',window,'dialogWidth:480px;dialogHeight:180px;s
- js showModalDialog参数传递
kissdeath
编程交流
showModalDialog:模式窗口,一种很特别的窗口,当它打开时,后面的父窗口的活动会停止,除非当前的模式子窗口关闭了,才能操作父窗口.在做网页Ajax开发时,我们应该有时会用到它来实现表单的填写,或做类似网上答题的窗口.它的特点是,传参很方便也很强大,可直接调用父窗口的变量和方法.使用方法:vReturnValue=window.showModalDialog(sURL[,vArgumen
- 父页面与子窗口Dialog相互传值的方法
抓住梦想
HTMLErrorMessage[JS+JQ+AJ+JSON]
这里使用了JavaScript的showModalDialog()方法父页面---------------------------------------------------------------------------functionmyDialog(){vararr=newArray(2);//创建数据arr[0]="参数1";//添加参数arr[1]="参数2";//添加参数varur
- 父子页面相互调用总结
iteye_17981
Web
父子页面相互调用是一个在开发中经常遇到的问题,但是没有找到过比较全面的文章介绍。在此总结下来,供大家参考。四种方式一般情况下,我们可以使用iframe、window的open、showModalDialog、showModelessDialog方法这四种方式打开一个子窗口。(showModalDialog、showModelessDialog是IE独有的。)下面分这四种方式来讨论如何父子页面互相调
- 关于window.showModalDialog 的简单应用,父子窗口之间的传递
azheng270
JavaScript
关于window.showModalDialog的简单应用,父子窗口之间的传递parent.htmfunctionshowmd(id){varsRet=window.showModalDialog("md.htm?id="+id,window,"scroll:0;status:0;help:0;resizable:0;dialogWidth:200px;dialogHeight:170px");i
- window.showModalDialog刷新父窗口 父子窗口之间传值
ZKLxuankai
javascript
第一个问题:刷新父窗口(没有传值操作)父页面打开时一定要传window参数openModalDialog("son.html",window,800,600);子页面中刷新:window.dialogArguments.location="parent.html";//parent.html是父页面的地址实例:parent.htmlson.htmlNewDocumentssssssssssssss
- showModalDialog基本操作:父子窗口互传参数
oso_kill
ajax学习
ShowModalDialog基本操作:父子窗口互传参数父窗口代码:CopytoClipboard引用的内容:[www.veryhuo.com]父窗口functiononOpenWindow(){//showModalDialog的第二个参数是传递给子窗口的值//在子窗口可以通过window.dialogArguments方法获取//如果不需要传递,这个参数就用window本身varobj=doc
- 模态对话框(window.showModalDialog),表单内容的提交、刷新父窗口的问题
sdfsf双方各
javaiframe框架
问题如题,详细如下:比如一个会员列表。点击某一会员名称后,window.showModalDialog出对话框后,在对话框里修改完会员的信息,如年龄,性别,EMAIL...等等以后后,提交,然后模态对话框关闭。父窗口刷新得见修改后的信息。在主页里写上:模态框里写上:将模态框提交给主页里那个隐藏的框架里后台接收页里写上这么一句代码:在模态窗口中把form对象克隆到父窗口中,然后控制父窗口中的form
- js windo.showModalDialog()模态窗口 url改变
iteye_18916
js
window模态窗口URL改变,或内容改变方式:1.window.name="targetName";functionpostData(){varaform=document.forms[0];aform.action=url;aform.target="targetName";aform.submit();}2.另一种解决方式是使用iframe第一种方式挺好用,比较推荐。对于那些在模态窗口里返回
- JS中ShowModalDialog(模态窗口)详细使用
tuobayi
javascript
基本介绍:showModalDialog()(IE4+支持)showModelessDialog()(IE5+支持)window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框。window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。使用方法:vReturnValue=window.showModalDialog(sUR
- js弹出新页面并传值
tooxyp
JavaWeb
showModalDialog详细使用基本介绍:showModalDialog()(IE4+支持)showModelessDialog()(IE5+支持)window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框。window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。使用方法:vReturnValue=window.
- ASP.NET 模式窗口(子父窗口之间的传值)
ysp
ASP.NET
window.showModalDialog有三个参数,第一:子窗体地址url,第二:传给子窗体的参数,第三:窗体外观参数,(高,宽,居中等参数)父窗体html:functionShowModialog(){varcity=$("#city").val();//cityname从子窗体返回来的值varcityname=window.showModalDialog("XMLWebForm.aspx"
- net打开子窗口传参数给父窗口
chenxueyong7345
ASP.NET
说明:点"查询"按钮打开子窗口,以GRIDVIEW显示,点每行后的选择按钮取到该行的指定单元格里的内容,传到父窗口的指定文本框中.父窗口代码:viewplaincopytoclipboardprint?functionsearch(){varobj=document.getElementById("").value;window.showModalDialog("../jgctaxnet/IPSN
- window.open用法——获取子窗口返回值
q13762258896
jquery
最近在做一个有关邮件发送功能,然而遇到了有关在选择收件人的时候,需要弹出一个子窗口,选择收件人之后将选择的数据返回到父窗口,然后完成发送功能!本想用window.showModalDialog()这个方法来获取子窗口的返回值,可是谷歌、QQ等浏览器似乎已不支持,通过参考了一些博客,似乎说新版的谷歌已废除了该用法。父窗口:window.open("user.do","","status=no,too
- window.showModalDialog刷新父窗口和本窗口的方法及注意
userstang
jsjsp
window.showModalDialog刷新父窗口和本窗口的方法及注意:一.刷新父窗口的方法:A.使用window.returnValue给父窗口传值,然后根据值判断是否刷新。在window.showModalDialog窗口页面中用window.returnValue方式设置返回值;比如:window.returnValue='refresh';B。在写window.showModalDia
- java类加载顺序
3213213333332132
java
package com.demo;
/**
* @Description 类加载顺序
* @author FuJianyong
* 2015-2-6上午11:21:37
*/
public class ClassLoaderSequence {
String s1 = "成员属性";
static String s2 = "
- Hibernate与mybitas的比较
BlueSkator
sqlHibernate框架ibatisorm
第一章 Hibernate与MyBatis
Hibernate 是当前最流行的O/R mapping框架,它出身于sf.net,现在已经成为Jboss的一部分。 Mybatis 是另外一种优秀的O/R mapping框架。目前属于apache的一个子项目。
MyBatis 参考资料官网:http:
- php多维数组排序以及实际工作中的应用
dcj3sjt126com
PHPusortuasort
自定义排序函数返回false或负数意味着第一个参数应该排在第二个参数的前面, 正数或true反之, 0相等usort不保存键名uasort 键名会保存下来uksort 排序是对键名进行的
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8&q
- DOM改变字体大小
周华华
前端
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q
- c3p0的配置
g21121
c3p0
c3p0是一个开源的JDBC连接池,它实现了数据源和JNDI绑定,支持JDBC3规范和JDBC2的标准扩展。c3p0的下载地址是:http://sourceforge.net/projects/c3p0/这里可以下载到c3p0最新版本。
以在spring中配置dataSource为例:
<!-- spring加载资源文件 -->
<bean name="prope
- Java获取工程路径的几种方法
510888780
java
第一种:
File f = new File(this.getClass().getResource("/").getPath());
System.out.println(f);
结果:
C:\Documents%20and%20Settings\Administrator\workspace\projectName\bin
获取当前类的所在工程路径;
如果不加“
- 在类Unix系统下实现SSH免密码登录服务器
Harry642
免密ssh
1.客户机
(1)执行ssh-keygen -t rsa -C "
[email protected]"生成公钥,xxx为自定义大email地址
(2)执行scp ~/.ssh/id_rsa.pub root@xxxxxxxxx:/tmp将公钥拷贝到服务器上,xxx为服务器地址
(3)执行cat
- Java新手入门的30个基本概念一
aijuans
javajava 入门新手
在我们学习Java的过程中,掌握其中的基本概念对我们的学习无论是J2SE,J2EE,J2ME都是很重要的,J2SE是Java的基础,所以有必要对其中的基本概念做以归纳,以便大家在以后的学习过程中更好的理解java的精髓,在此我总结了30条基本的概念。 Java概述: 目前Java主要应用于中间件的开发(middleware)---处理客户机于服务器之间的通信技术,早期的实践证明,Java不适合
- Memcached for windows 简单介绍
antlove
javaWebwindowscachememcached
1. 安装memcached server
a. 下载memcached-1.2.6-win32-bin.zip
b. 解压缩,dos 窗口切换到 memcached.exe所在目录,运行memcached.exe -d install
c.启动memcached Server,直接在dos窗口键入 net start "memcached Server&quo
- 数据库对象的视图和索引
百合不是茶
索引oeacle数据库视图
视图
视图是从一个表或视图导出的表,也可以是从多个表或视图导出的表。视图是一个虚表,数据库不对视图所对应的数据进行实际存储,只存储视图的定义,对视图的数据进行操作时,只能将字段定义为视图,不能将具体的数据定义为视图
为什么oracle需要视图;
&
- Mockito(一) --入门篇
bijian1013
持续集成mockito单元测试
Mockito是一个针对Java的mocking框架,它与EasyMock和jMock很相似,但是通过在执行后校验什么已经被调用,它消除了对期望 行为(expectations)的需要。其它的mocking库需要你在执行前记录期望行为(expectations),而这导致了丑陋的初始化代码。
&nb
- 精通Oracle10编程SQL(5)SQL函数
bijian1013
oracle数据库plsql
/*
* SQL函数
*/
--数字函数
--ABS(n):返回数字n的绝对值
declare
v_abs number(6,2);
begin
v_abs:=abs(&no);
dbms_output.put_line('绝对值:'||v_abs);
end;
--ACOS(n):返回数字n的反余弦值,输入值的范围是-1~1,输出值的单位为弧度
- 【Log4j一】Log4j总体介绍
bit1129
log4j
Log4j组件:Logger、Appender、Layout
Log4j核心包含三个组件:logger、appender和layout。这三个组件协作提供日志功能:
日志的输出目标
日志的输出格式
日志的输出级别(是否抑制日志的输出)
logger继承特性
A logger is said to be an ancestor of anothe
- Java IO笔记
白糖_
java
public static void main(String[] args) throws IOException {
//输入流
InputStream in = Test.class.getResourceAsStream("/test");
InputStreamReader isr = new InputStreamReader(in);
Bu
- Docker 监控
ronin47
docker监控
目前项目内部署了docker,于是涉及到关于监控的事情,参考一些经典实例以及一些自己的想法,总结一下思路。 1、关于监控的内容 监控宿主机本身
监控宿主机本身还是比较简单的,同其他服务器监控类似,对cpu、network、io、disk等做通用的检查,这里不再细说。
额外的,因为是docker的
- java-顺时针打印图形
bylijinnan
java
一个画图程序 要求打印出:
1.int i=5;
2.1 2 3 4 5
3.16 17 18 19 6
4.15 24 25 20 7
5.14 23 22 21 8
6.13 12 11 10 9
7.
8.int i=6
9.1 2 3 4 5 6
10.20 21 22 23 24 7
11.19
- 关于iReport汉化版强制使用英文的配置方法
Kai_Ge
iReport汉化英文版
对于那些具有强迫症的工程师来说,软件汉化固然好用,但是汉化不完整却极为头疼,本方法针对iReport汉化不完整的情况,强制使用英文版,方法如下:
在 iReport 安装路径下的 etc/ireport.conf 里增加红色部分启动参数,即可变为英文版。
# ${HOME} will be replaced by user home directory accordin
- [并行计算]论宇宙的可计算性
comsci
并行计算
现在我们知道,一个涡旋系统具有并行计算能力.按照自然运动理论,这个系统也同时具有存储能力,同时具备计算和存储能力的系统,在某种条件下一般都会产生意识......
那么,这种概念让我们推论出一个结论
&nb
- 用OpenGL实现无限循环的coverflow
dai_lm
androidcoverflow
网上找了很久,都是用Gallery实现的,效果不是很满意,结果发现这个用OpenGL实现的,稍微修改了一下源码,实现了无限循环功能
源码地址:
https://github.com/jackfengji/glcoverflow
public class CoverFlowOpenGL extends GLSurfaceView implements
GLSurfaceV
- JAVA数据计算的几个解决方案1
datamachine
javaHibernate计算
老大丢过来的软件跑了10天,摸到点门道,正好跟以前攒的私房有关联,整理存档。
-----------------------------华丽的分割线-------------------------------------
数据计算层是指介于数据存储和应用程序之间,负责计算数据存储层的数据,并将计算结果返回应用程序的层次。J
&nbs
- 简单的用户授权系统,利用给user表添加一个字段标识管理员的方式
dcj3sjt126com
yii
怎么创建一个简单的(非 RBAC)用户授权系统
通过查看论坛,我发现这是一个常见的问题,所以我决定写这篇文章。
本文只包括授权系统.假设你已经知道怎么创建身份验证系统(登录)。 数据库
首先在 user 表创建一个新的字段(integer 类型),字段名 'accessLevel',它定义了用户的访问权限 扩展 CWebUser 类
在配置文件(一般为 protecte
- 未选之路
dcj3sjt126com
诗
作者:罗伯特*费罗斯特
黄色的树林里分出两条路,
可惜我不能同时去涉足,
我在那路口久久伫立,
我向着一条路极目望去,
直到它消失在丛林深处.
但我却选了另外一条路,
它荒草萋萋,十分幽寂;
显得更诱人,更美丽,
虽然在这两条小路上,
都很少留下旅人的足迹.
那天清晨落叶满地,
两条路都未见脚印痕迹.
呵,留下一条路等改日再
- Java处理15位身份证变18位
蕃薯耀
18位身份证变15位15位身份证变18位身份证转换
15位身份证变18位,18位身份证变15位
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
蕃薯耀 201
- SpringMVC4零配置--应用上下文配置【AppConfig】
hanqunfeng
springmvc4
从spring3.0开始,Spring将JavaConfig整合到核心模块,普通的POJO只需要标注@Configuration注解,就可以成为spring配置类,并通过在方法上标注@Bean注解的方式注入bean。
Xml配置和Java类配置对比如下:
applicationContext-AppConfig.xml
<!-- 激活自动代理功能 参看:
- Android中webview跟JAVASCRIPT中的交互
jackyrong
JavaScripthtmlandroid脚本
在android的应用程序中,可以直接调用webview中的javascript代码,而webview中的javascript代码,也可以去调用ANDROID应用程序(也就是JAVA部分的代码).下面举例说明之:
1 JAVASCRIPT脚本调用android程序
要在webview中,调用addJavascriptInterface(OBJ,int
- 8个最佳Web开发资源推荐
lampcy
编程Web程序员
Web开发对程序员来说是一项较为复杂的工作,程序员需要快速地满足用户需求。如今很多的在线资源可以给程序员提供帮助,比如指导手册、在线课程和一些参考资料,而且这些资源基本都是免费和适合初学者的。无论你是需要选择一门新的编程语言,或是了解最新的标准,还是需要从其他地方找到一些灵感,我们这里为你整理了一些很好的Web开发资源,帮助你更成功地进行Web开发。
这里列出10个最佳Web开发资源,它们都是受
- 架构师之面试------jdk的hashMap实现
nannan408
HashMap
1.前言。
如题。
2.详述。
(1)hashMap算法就是数组链表。数组存放的元素是键值对。jdk通过移位算法(其实也就是简单的加乘算法),如下代码来生成数组下标(生成后indexFor一下就成下标了)。
static int hash(int h)
{
h ^= (h >>> 20) ^ (h >>>
- html禁止清除input文本输入缓存
Rainbow702
html缓存input输入框change
多数浏览器默认会缓存input的值,只有使用ctl+F5强制刷新的才可以清除缓存记录。
如果不想让浏览器缓存input的值,有2种方法:
方法一: 在不想使用缓存的input中添加 autocomplete="off";
<input type="text" autocomplete="off" n
- POJO和JavaBean的区别和联系
tjmljw
POJOjava beans
POJO 和JavaBean是我们常见的两个关键字,一般容易混淆,POJO全称是Plain Ordinary Java Object / Pure Old Java Object,中文可以翻译成:普通Java类,具有一部分getter/setter方法的那种类就可以称作POJO,但是JavaBean则比 POJO复杂很多, Java Bean 是可复用的组件,对 Java Bean 并没有严格的规
- java中单例的五种写法
liuxiaoling
java单例
/**
* 单例模式的五种写法:
* 1、懒汉
* 2、恶汉
* 3、静态内部类
* 4、枚举
* 5、双重校验锁
*/
/**
* 五、 双重校验锁,在当前的内存模型中无效
*/
class LockSingleton
{
private volatile static LockSingleton singleton;
pri