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:
Regards,
rama
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:
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();"/>
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();"/>
rama
Comment