Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Cloud Application Architecture Patterns: Designing, Building, and Modernizing for the Cloud
this week in the
Cloud/Virtualization
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
HTML Pages with CSS and JavaScript
Hiding or Encoding the parameter while passing to a new window
yekkala krishna
Ranch Hand
Posts: 105
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
In my webapplication i am opening new window by passing some parameters.i am passing password also as parameter.But i need to hide it or encode it.
how can i do this.Following is my code:
function getUrl(gsamName,deviceName,userName,passWord){ window.open("./viewMapToolScreen.html?com.smarts.autoAttachDM="+gsamName+"&class=com.smarts.webapps.SmWebMapApp&com.smarts.launch.class=UnitaryComputerSystem&com.smarts.launch.instance="+deviceName+"&com.smarts.map.showAllBusiness=1&com.smarts.userid="+userName+"&com.smarts.password="+passWord); } function validate_form() { valid = true; if ( document.map_form.contract.selectedIndex == 0 ) { alert ( "Please select Contract Name" ); valid = false; } getUrl(document.map_form.gsamName.value,document.map_form.devicename.value,document.map_form.userName.value,document.map_form.passWord.value); } } <input type="hidden" name="passWord" value=<%=session.getAttribute("GSAM_PASSWORD")%>></input> <input type="submit" name="submit" value="Show Map" class="button" onclick = "validate_form();"/>
Eric Pascarello
author
Posts: 15385
6
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can post the form to the new window.
<form action="foo.jsp" target="submission" onsubmit="window.open('',this.target);return true;" method="post"> <input type="submit" value="Submit"> </form>
Eric
Bear Bibeault
Sheriff
Posts: 67756
173
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Do you think that this would give you any measure of security? What is the reason for wanting to hide the value?
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Regarding xml Data
getting null value, from a variable being sent from JavaScript in the page
Validation script cant seem to work
Unable to validate form using javascript
Loading a file content in dropdown list
More...