java脚本查询字符串值隐藏 [英] java script querystring value hide

查看:78
本文介绍了java脚本查询字符串值隐藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在调用url时隐藏以下值以隐藏

展开 | 选择 | Wrap | 行号

解决方案


我想在调用网址时隐藏以下值以隐藏

< script>

函数callEmployeeEducationHistory()

{

document.forms [0] .action =''/ echain / hr / EducationalHistoryFetch.echn?& employeeCode =''+ docum ent.forms [0 ] .employeeCode.value +''& employeeName =''+ document.form s [0] .employeeName.value

+''& hrUnitName =''+ document.forms [0] .hrUnitName.value +''& type =''+" EMPLOYEE";

document.forms [0] .submit();


}

< / script>



i想要在提交
时隐藏查询字符串值

显示用于显示输入字段的HTML。



显示用于显示输入字段的HTML。



< html:text property =" employeeCode"的styleClass = QUOT; TextboxFont" />



< html:text property =" employeeCode"的styleClass = QUOT; TextboxFont" />



您是否有任何特殊原因使用JavaScript提交表单?

使用post方法提交。将url设置为表单的操作,并根据您需要发布的变量命名所有其他输入。


I want to hide the following value to hide when i call the url

Expand|Select|Wrap|Line Numbers

解决方案

I want to hide the following value to hide when i call the url
<script>
function callEmployeeEducationalHistory()
{
document.forms[0].action=''/echain/hr/EducationalHistoryFetch.echn?&employeeCode=''+docum ent.forms[0].employeeCode.value+''&employeeName=''+document.form s[0].employeeName.value
+''&hrUnitName=''+document.forms[0].hrUnitName.value+''&type=''+"EMPLOYEE";
document.forms[0].submit();

}
</script>


i want to hide the query string value when i submit

Show your HTML employed for displaying input fields.


Show your HTML employed for displaying input fields.

<html:text property="employeeCode" styleClass="TextboxFont" />


<html:text property="employeeCode" styleClass="TextboxFont" />

Is there any special reason for you using JavaScript for submitting the form?
Use the post method to submit. Set the url as action of the form and name all the other inputs according to the variables you need to post.


这篇关于java脚本查询字符串值隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆