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=' +document.forms[0].employeeCode.value+'&employeeName=' +document.forms[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
22 4193
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.
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.
Actually i want link three form in single form sir
Actually i want link three form in single form sir
Then just change the action attribute, don't join variables with that.
And use method as post.
Then just change the action attribute, don't join variables with that.
And use method as post.
please alter this i cant able to get u - document.forms[0].action='/echain/hr/EducationalHistoryFetch.echn?&employeeCode=' +document.forms[0].employeeCode.value+'&employeeName=' +document.forms[0].employeeName.value +'&hrUnitName='+document.forms[0].hrUnitName.value+'&type='+"EMPLOYEE";
please alter this i cant able to get u
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";
What are the URLs for all the three buttons?
What are the URLs for all the three buttons?
echain/hr/EducationalHistoryFetch.echn
echain/hr/EmployeeBackGroundFetch.echn
the query string value are http://localhost:6060/echain/hr/Educ...loyeeCode=0052 &employeeName=A%20%20B&hrUnitName=CDS-HR&type=EMPLOYEE
i want to hide the above query striing value
[html]<form method="post">
<input type="text" name="employeeCode" value="" />
<input type="text" name="employeeName" value="" />
<input type="text" name="hrUnitName" value="" />
<input type="hidden" name="type" value="EMPLOYEE" />
<input type="submit" name="Get employee details" onclick="document.forms[0].action = 'echain/hr/EducationalHistoryFetch.echn'; return true;" />
</form>[/html]Keep all the other three submit buttons in similar way, but different name. And for onclick event, add the action of the form accordingly.
Try this and tell me if it works.
[html]<form method="post">
<input type="text" name="employeeCode" value="" />
<input type="text" name="employeeName" value="" />
<input type="text" name="hrUnitName" value="" />
<input type="hidden" name="type" value="EMPLOYEE" />
<input type="submit" name="Get employee details" onclick="document.forms[0].action = 'echain/hr/EducationalHistoryFetch.echn'; return true;" />
</form>[/html]Keep all the other three submit buttons in similar way, but different name. And for onclick event, add the action of the form accordingly.
Try this and tell me if it works.
Actually i called the javascript method out form the form ,like
[HTML]<html:form action="/EmployeeAdditionalInfoAction" method="post">
<table width="90%" cellspacing="5px" cellpadding="0px" border="0" align='center'>.............
[/HTML]
Here some code for buitton when i click the buttton it will call javascript method
like i put the code below - </form>
-
-
function callEmployeeEducationalHistory()
-
{
-
-
document.forms[0].action='/echain/hr/EducationalHistoryFetch.echn?&employeeCode=' +document.forms[0].employeeCode.value+'&employeeName=' +document.forms[0].employeeName.value +'&hrUnitName='+document.forms[0].hrUnitName.value +'&type='+"EMPLOYEE";
-
document.forms[0].submit();
-
-
}
-
-
if do like that i will the value in the browser,just i want to hide that info
Ok, the main point is: That can only be hidden if you use post method.
And don't call callEmployeeEducationalHistory() function, as the form will itself post all the inputs, you don't have to join them manually.
Ok, the main point is: That can only be hidden if you use post method.
And don't call callEmployeeEducationalHistory() function, as the form will itself post all the inputs, you don't have to join them manually.
what i have to do with this,whether i able to hide the information
Ok, the main point is: That can only be hidden if you use post method.
And don't call callEmployeeEducationalHistory() function, as the form will itself post all the inputs, you don't have to join them manually.
please give me some solution sir
please give me some solution sir
I have already given you the solution. But somehow you are not able to explain properly what you need.
Post your code, not just snippets, with proper [code] or [HTML] tags. Then I can try.
Karthick, as a full member now, you should know that we expect your code to be posted in [code] tags (See How to Ask a Question).
This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.
Please use the tags in future.
MODERATOR.
Karthick, as a full member now, you should know that we expect your code to be posted in [code] tags (See How to Ask a Question).
This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.
Please use the tags in future.
MODERATOR.
Why i am not able to post the code means,i have doubts while i develop the code for my company,i am not have rights to post the code tp public sorry sir
Karthick, as a full member now, you should know that we expect your code to be posted in [code] tags (See How to Ask a Question).
This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.
Please use the tags in future.
MODERATOR.
Why i am not able to post the code means,i have doubts while i develop the code for my company,i am not have rights to post the code to public sorry sir
Why i am not able to post the code means,i have doubts while i develop the code for my company,i am not have rights to post the code to public sorry sir
Karthick,
I have helped you as much as I could although it was difficult for me to understand your problem. I would suggest you to search for some good tutorials on google.
Harpreet
Why i am not able to post the code means,i have doubts while i develop the code for my company,i am not have rights to post the code to public sorry sir
I was referring to the code that you've already posted which was not enclosed within [code] tags.
- </form>
-
-
function callEmployeeEducationalHistory()
-
{
-
-
document.forms[0].action='/echain/hr/EducationalHistoryFetch.echn?&employeeCode=' +document.forms[0].employeeCode.value+'&employeeName=' +document.forms[0].employeeName.value +'&hrUnitName='+document.forms[0].hrUnitName.value +'&type='+"EMPLOYEE";
-
document.forms[0].submit();
-
-
}
-
-
if do like that i will the value in the browser,just i want to hide that info
The values show because you added them to the action URL. If, instead, as hsriat has explained, you don't add them to the action URL,but let things be, the values will be POST-ed to the server. The only difference is that in your server-side code, you will need to retrieve them as POST values, not GET values.
Karthick,
I have helped you as much as I could although it was difficult for me to understand your problem. I would suggest you to search for some good tutorials on google.
Harpreet
thank u very much for uderstandiing me
thank u very much for uderstandiing me
You are welcome.
Harpreet
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Robert Cohen |
last post by:
Hi All,
I have what is an easy question for you all, but I have not idea (this
is in vbscript). I have this script below that works great. It figures out
the user logged in and gives the AD...
|
by: . . |
last post by:
Hi
I need some help with java script . I have a ASPX page that is pulling a
user message heading from the table on the page . The user message
header has message body which suppose to dispay...
|
by: Cantekin Guneser |
last post by:
in my project i ahave frame sets i want to main frame to direct a url
with query string when press a button that is at left frame vit java script
code
thanks in advance for ayn hepl or idea
|
by: CR1 |
last post by:
I found a great cookie script below, but don't know how to make it also pass the values sent to the cookie, to a querystring as well for tracking purposes. Can anyone help? If there was a way to...
|
by: jegray |
last post by:
I am very much a beginner in dealing with connection statments. I am getting the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
Data source name not found and no...
|
by: rn5a |
last post by:
A MS-Access database table has 2 columns - UserID (unique) of number
data type & UserName (text) along with some other columns.
When users come to a particular page, say, AllUsers.asp, all the...
|
by: emily224 |
last post by:
Hello,
I have been trying to understand this source code, which I retreived from my online course test. I would like to know how to find the answer for the question on the test. Im sure the answer...
|
by: sandipon |
last post by:
I have used the following Pagination script to display database records in a series of pages, but only the first page shows up properly, and on clicking the links of subsequent pages or the NEXT ,...
|
by: ganesh22 |
last post by:
Hi,
How to Hide QueryString Value in asp.net?
ex: iam having the link like this http://forums.asp.net/AddPost.aspx?ForumID=22
so i want to hide ForumID value there in some urls i saw like...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |