in reply to Re: Unable to login to a secure webpage
in thread Unable to login to a secure webpage
Hi,
I tried with with JavaScript disabled (in the browser) and it did not work. Here is the html contnet of the web page.<MYHTML> <html> <head> <script language="JavaScript"> </script> <script language="JavaScript"> </script> <SCRIPT LANGUAGE="JavaScript"> </SCRIPT> <title>Tata Indicom Broadband</title> <link rel="shortcut icon" href="favicon.ico" > </head> <body onload="loadCookies();"> <!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"> <head> <title>Tata Indicom Broadband</title> <link rel="shortcut icon" href="favicon.ico" > <style type="text/css"> body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } </style> <link href="/images_TIBB/TIBB.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script language="JavaScript"> // this function is called when the user clicks on logon button ,it checks the values entered by the user and it will perform savecookie duo to the user option in this function function check() { if( document.authenticateForm.user.value=='') { alert("Please enter the user name") document.authenticateForm.user.focus(); return false } else if(document.authenticateForm.ServerList.value=='select') { alert("Please select the domain") return false } else if(document.authenticateForm.password.value=='' ) { alert("Please enter the password") document.authenticateForm.password.focus(); return false } else { //calling the function saveCookie-------- saveCookie() document.getElementById("Submit").disabled = true; document.authenticateForm.submit(); } // to save or delete the cookies ------------------------------ function saveCookie() { var status=0; for( i=0;i<document.authenticateForm.save.length; i++) { if(document.authenticateForm.savei.checked) { status = document.authenticateForm.savei.value; } } if( (status == 0) || status == 1) { setCookies(100,status); } else if (status == 2) { //calling the function deleteCookies------------------ deleteCookies("myCookie"); } } // to delete the cookies ----------------------- function deleteCookies(name) { // detectPopupBlocker(); if (getCookie(name)) { document.cookie = name + "=" +"; expires=Thu, 01-Jan-70 00:00:01 GMT"; } document.authenticateForm.username.value = document.authenticateForm.user.value+"@"+document.authenticateForm.ServerList.value; } //save the cookies and it's expire date ------------------------ function setCookies(expiredays,selectValue) { var ExpireDate = new Date(); var values = null; ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24*3600*1000)); if(selectValue== 0) { values = document.authenticateForm.user.value + "|" + document.authenticateForm.ServerList.value; } else if(selectValue == 1) { values =document.authenticateForm.user.value +"|" + document.authenticateForm.ServerList.value + "|" + document.authenticateForm.password.value; } document.cookie="myCookie="+escape(values) + ((expiredays == null)?"" : ";expires=" + ExpireDate.toGMTString()); if(document.authenticateForm.user.value.indexOf("@") == -1 ) { document.authenticateForm.username.value = document.authenticateForm.user.value+"@"+document.authenticateForm.ServerList.value; } else { document.authenticateForm.username.value = document.authenticateForm.user.value; } } // to get the saved cookies -------------------------- function getCookie(name) { if(document.cookie.length > 0) { begin = document.cookie.indexOf(name+"="); if(begin != -1) { begin += name.length+1; end = document.cookie.indexOf(";",begin); if(end == -1) { end = document.cookie.length; } return unescape(document.cookie.substring(begin,end)); } } /*alert("disabled"); document.getElementById("Submit").disabled = true;*/ return null; } // to load the saved cookies into the input fields ---------------- function loadCookies() { var setUser = getCookie("myCookie"); if(setUser == null) document.authenticateForm.save2.checked="checked"; if(setUser) { splitValue = setUser.indexOf("|"); if(splitValue == -1) { document.authenticateForm.user.value=setUser; document.authenticateForm.save[0].checked="checked"; } else { var username = setUser.substring(0,splitValue); document.authenticateForm.user.value = username; temp = setUser.substring(splitValue+1); tmpSplitValue = temp.indexOf("|"); if(tmpSplitValue == -1) { document.authenticateForm.ServerList.value = temp; document.authenticateForm.save[0].checked="checked"; } else { document.authenticateForm.ServerList.value = temp.substring(0,tmpSplitValue); document.authenticateForm.password.value = temp.substring(tmpSplitValue+1); document.authenticateForm.save1.checked="checked"; } } } } } </script> <script language="javascript"> function citySection() { // var dd=document.contact.city.optionsdocument.contact.city.selectedIndex.value; // document.contact.number.value=dd; var dd=document.authenticateForm.city.optionsdocument.authenticateForm.city.selectedIndex.value; document.authenticateForm.number.value=dd; } </script> </head> <body> <form name="authenticateForm" action=" https://loginban.tataindicombroadband.in:8443/user/refresh/home?user=&ServerList=vsnl.net&save=2&Submit=Login&city=Select+City&number=&t=grfd9f9g" method="post">
<img src="/images_TIBB/tclsl_logo.jpg" width="262" height="50" border="0" /> | <img src="/images_TIBB/tata_bb_logo.jpg" width="44" height="37" border="0" /> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
<img src="/images_TIBB/sorry.jpg" height="250" width="250"> |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
RechargeConnection | Easy Payments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<img src="/images_TIBB/renewimage.gif" width="34" height="45" /> | Recharge Now | <img src="/images_TIBB/creditcard.gif" width="49" height="40" /> | Payment Options |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
How to Recharge |
Tata Communications offers a range of SME connectivity services and applications To know more about these click below |
||||||||
<img src="/images_TIBB/ill_icon_2.gif" width="49" height="47" border="0" /> | <img src="/images_TIBB/voip_icon_2.gif" width="49" height="47" border="0" /> | <img src="/images_TIBB/security_icon_2.gif" width="49" height="47" border="0" /> | <img src="/images_TIBB/bb_icon_2.gif" width="49" height="47" border="0" /> | <img src="/images_TIBB/biz_apps_icon_2.gif" width="49" height="47" border="0" /> | <img src="/images_TIBB/instacc_icon_2.gif" width="49" height="47" border="0" /> | <img src="/images_TIBB/domain_icon_2.gif" width="49" height="47" border="0" /> | <img src="/images_TIBB/office_tools_icon_2.gif" width="49" height="47" border="0" /> | <img src="/images_TIBB/insta_office_icon2.gif" width="49" height="47" border="0" /> |
ILL | VoIP | SECURITY & STORAGE | BROADBAND | BIZ APPS | INSTACC | DOMAINS & HOSTING | OFFICE TOOLS | Insta Office |