Click to See Complete Forum and Search --> : Problem while reading a webpage


benjas77
May 7th, 2008, 12:58 AM
Hi, i'm developing a tool in .net that read information from a webpage, but in order to read information it's necesary to fill out
some checkboxes and they're ordered in a table, the webpage i read has javascript to show off information, so the webpage displayed
for filling information and to show information it's the same.

i've been thinking for around two weeks , i believe it's on hidden items.

Below it's the html form i want to interact with.m and i attach the page

Regards

<html><head>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" type="text/css" href="account_usercount_files/style1.css" charset="UTF-8"><title>Visualizar la cuenta de usuario - MX-M1100</title>

<script type="text/javascript" charset="UTF-8">
<!--
function loginSubmit(mode) {
var locationURL;

if(mode == 0) {
locationURL = "login.html?" + location.pathname;
location.href = locationURL;
}
else {
location.href = "login.html?logoffSubmit";
}
}
//-->
</script><!-- javascript //-->

<script type="text/javascript" charset="UTF-8" src="account_usercount_files/webpage.js"></script>
<script type="text/javascript" charset="UTF-8">
<!--
sflg = 0;
function validate( name ){
retflg = false;
chkcnt = 0;
chklist = document.getElementsByName("ggt_table(3,0)");
for( j = 0; j < chklist.length;j++ ){
if( name == "selallbtn" ){
chklist[j].checked = true;
retflg = true;
}
else if( name == "clearbtn" ){
chklist[j].checked = false;
retflg = true;
}
else if( chklist[j].checked == false ){
chkcnt++;
}
}
if( retflg == true ){
return;
}
else{
if( name == "countclear" // name == "dispbtn" ){
if( chkcnt == chklist.length ){
return;
}
else if( name == "countclear" ) {
if( window.confirm("¿Borrar el recuento del usuario seleccionado?") == false ){
return;
}
}
}
}
if (sflg == 0){
sflg = 1;
document.accountusercount.action.value = name;
document.accountusercount.submit();
}
}
//-->

</script></head><body>

<div class="left">
<!--LOGO-->
<div class="logo">
<a href="http://sharp-world.com/" target="_blank"><img src="account_usercount_files/logo.gif" alt="Conexión a la página principal de Sharp Global" border="0" height="15" width="102"></a>
<div class="modelName">MX-M1100</div>
</div>
<!--LOGO_END-->

<!--LINK-->

<a name="menu"></a>
<div class="menu">

<div class="invisible">Este es el principio del menú.Número del Menú:24</div>
<div class="menu1"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/main.html">Comienzo de Página</a></div>
<div class="menu1"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/device_status.html">Estado</a></div>
<div class="menu1"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/addressbook.html">Libreta de Direcciones</a></div>
<div class="menu1"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/filelist_main.html">Operaciones con Documentos</a></div>

<div class="menu1"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/program_imagesend.html">Programas de Trabajos</a></div>
<div class="menu1"><img src="account_usercount_files/delta_open.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/account_userlist.html">Control de Usuario</a></div>
<div class="menu2"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/account_userlist.html">Lista de us.</a></div>
<div class="menu2"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/account.html">Ajustes Predeterminados</a></div>
<div class="menu2"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/account_limitlist.html">Lista de grupo de límit. de pág.</a></div>
<div class="menu2"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/account_authlist.html">Lista de grupo de autor.</a></div>

<div class="menu2"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/account_customlist.html">Lista de grupo de oper. favor.</a></div>
<div class="menu2"><img src="account_usercount_files/delta_open.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/account_usercount.html">Contador de Usuario</a></div>
<div class="menu3"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/account_usercount.html">Visualizar la cuenta de usuario</a></div>
<div class="menu3"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/account_usercountlist_save.html">Guardar conteo de usuario</a></div>
<div class="menu1"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/sys_count.html">Configuraciones del sistema</a></div>
<div class="menu1"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/nw_quick.html">Ajustes de red</a></div>

<div class="menu1"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/app_copy_printmenu_list.html">Configuración de la Aplicación</a></div>
<div class="menu1"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/email_status.html">Estado y alertas por correo electrónico</a></div>
<div class="menu1"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/storagebackup.html">Copias de seguridad para almacenamiento</a></div>
<div class="menu1"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/device_cloning.html">Clonar Dispositivo</a></div>
<div class="menu1"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/joblog_save.html">Registro de trabajos</a></div>
<div class="menu1"><img src="account_usercount_files/delta_close.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/security_password.html">Configuración de Seguridad</a></div>

<div class="menu1"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/customlink_list.html">Enlaces personalizados</a></div>
<div class="menu1"><img src="account_usercount_files/square.gif" alt="" height="9" width="12"><a href="http://180.177.34.119/manual.html">Descarga manual de oper.</a></div>
<div class="invisible">Éste es el final del menú.</div>

</div>
<!--LINK_END-->

</div>

<form method="post" name="accountusercount" onsubmit="return false;">
<div class="right">
<!--TITLE-->
<div class="title"><a name="main"></a>
<span class="username">Nombre de Usuario: Administrador&nbsp;
<button onclick="loginSubmit(1)" accesskey="L">Cerrar sesión(L)</button><!--Logoff (L)-->
</span>
<h1>Visualizar la cuenta de usuario</h1>

<span class="helpButton"><button name="helpbtn" onclick='window.open("help_Spanish.html#user_control")' accesskey="I">Ayuda(I)</button></span>


<div class="buttonfieldHead">
<span class="headButton"><input name="updatebtn" value="Actualizar(R)" onclick="validate( this.name )" accesskey="R" type="button"></span>
</div>
</div>
<!--TITLE_END-->

<!--MAIN-->
<div class="main">

<input name="action" value="" type="hidden">
<input name="auc_webchange" value="" type="hidden">
<input name="ggt_hidden(13)" value="3" type="hidden">
<input name="ggt_hidden(14)" value="1" type="hidden">
<input name="ggt_hidden(15)" value="00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00," type="hidden">
<p class="ok"></p>
<table class="layout">
<tbody><tr>
<td class="layoutHead">Índice:</td>

<td><select name="ggt_select(1)" size="1" onchange="validate(this.name)">
<option value="1" selected="selected">Tod Usuarios</option>
<option value="2">ABCD</option>
<option value="3">EFGHI</option>
<option value="4">JKLMN</option>
<option value="5">OPQRST</option>

<option value="6">UVWXYZ</option>
<option value="7">Us1</option>
<option value="8">Us2</option>
<option value="9">Us3</option>
<option value="10">Us4</option>
<option value="11">Us5</option>

<option value="12">Us6</option>
</select>
</td>
</tr>
<tr>
<td>Mostrar Elementos:</td>
<td><select name="ggt_select(2)" size="1" onchange="validate(this.name)">
<option value="1" selected="selected">10</option>

<option value="2">20</option>
<option value="3">50</option>
<option value="4">100</option>
<option value="5">Todos</option>
</select></td>
</tr>
</tbody></table>

<br>
<table class="matrix">
<thead>
<tr>
<th>Nombre de Usuario
<input src="account_usercount_files/up.gif" alt="Ordenar de Modo Ascendente" name="tblbtn(1)" onclick="validate( this.name )" type="image">
<input src="account_usercount_files/down.gif" alt="Ordenar de Modo Descendente" name="tblbtn(2)" onclick="validate( this.name )" type="image">
</th>
<th>N.º
<input src="account_usercount_files/up_selected.gif" alt="Ordenar de Modo Ascendente" name="tblbtn(3)" onclick="validate( this.name )" type="image">

<input src="account_usercount_files/down.gif" alt="Ordenar de Modo Descendente" name="tblbtn(4)" onclick="validate( this.name )" type="image">
</th>
</tr>
</thead>
<tbody>
<tr>
<td><input name="ggt_table(3,0)" value="0,-3" type="checkbox">Administrador</td>
<td><br></td>

</tr>
<tr>
<td><input name="ggt_table(3,0)" value="1,-5" type="checkbox">Usuario</td>
<td><br></td>
</tr>
<tr>
<td><input name="ggt_table(3,0)" value="2,-1" type="checkbox">Otro&nbsp;Usuario</td>

<td><br></td>
</tr>
<tr>
<td><input name="ggt_table(3,0)" value="3,1" type="checkbox">EDUARDO&nbsp;lOPEZ</td>
<td>1</td>
</tr>
<tr>

<td><input name="ggt_table(3,0)" value="4,2" type="checkbox">FERNANDO&nbsp;FERNANDEZ</td>
<td>2</td>
</tr>
<tr>
<td><input name="ggt_table(3,0)" value="5,3" type="checkbox">MARIO&nbsp;MAYORGA</td>
<td>3</td>

</tr>
<tr>
<td><input name="ggt_table(3,0)" value="6,4" type="checkbox">Karla&nbsp;Adriana&nbsp;Mendez</td>
<td>4</td>
</tr>
<tr>
<td><input name="ggt_table(3,0)" value="7,5" type="checkbox">Xochitl&nbsp;Nieto</td>

<td>5</td>
</tr>
<tr>
<td><input name="ggt_table(3,0)" value="8,6" type="checkbox">Fernando&nbsp;Villapando</td>
<td>6</td>
</tr>
<tr>

<td><input name="ggt_table(3,0)" value="9,7" type="checkbox">Edith&nbsp;Laureano</td>
<td>7</td>
</tr>
</tbody>

</table>

<table class="layout">

<tbody><tr>
<td colspan="2">Total de Usuarios:&nbsp;&nbsp;244
</td>
</tr>
<tr>
<td colspan="2">
<input name="prevbtn" value="Anterior(M)" onclick="validate( this.name )" accesskey="M" disabled="disabled" type="button">
1 / 25
<input name="nextbtn" value="Siguiente(N)" onclick="validate( this.name )" accesskey="N" type="button">

</td>
</tr>
<tr>
<td colspan="2"><br></td>
</tr>
<tr>
<td colspan="2">
<input name="selallbtn" value="Seleccionar TODO(S)" onclick="validate( this.name )" accesskey="S" type="button">
<input name="clearbtn" value="Borrar Comprobados(Z)" onclick="validate( this.name )" accesskey="Z" type="button">

</td>
</tr>
</tbody></table>
<hr>

<table class="layout">
<tbody><tr>
<td rowspan="6" class="layoutHead">Seleccionar Función:</td>
<td><input name="ggt_checkbox(4)" id="element4" value="1" checked="checked" type="checkbox"><label id="ggtChkId4" class="labelNormal" for="element4">Copia</label></td>

</tr>
<tr>
<td><input name="ggt_checkbox(5)" id="element5" value="1" checked="checked" type="checkbox"><label id="ggtChkId5" class="labelNormal" for="element5">Impresora</label></td>
</tr>
<tr>
<td><input name="ggt_checkbox(6)" id="element6" value="1" checked="checked" type="checkbox"><label id="ggtChkId6" class="labelNormal" for="element6">Impres. (Archivo Docum.)</label></td>
</tr>
<tr>

<td><input name="ggt_checkbox(7)" id="element7" value="1" checked="checked" type="checkbox"><label id="ggtChkId7" class="labelNormal" for="element7">Lista de Impres.</label></td>
</tr>
<tr>
<td><input name="ggt_checkbox(8)" id="element8" value="1" checked="checked" type="checkbox"><label id="ggtChkId8" class="labelNormal" for="element8">Digitalizar</label></td>
</tr>
<tr>
<td><input name="ggt_checkbox(17)" id="element17" value="1" checked="checked" type="checkbox"><label id="ggtChkId17" class="labelNormal" for="element17">Escanear a disco duro</label></td>

</tr>

<tr>
<td>Seleccionar el Número de contador que se ha de Mostrar:</td>
<td><select name="ggt_select(12)" size="1">
<option value="1" selected="selected">Mostar el Número Límite de Páginas y el Número de Páginas Utilizadas</option>
<option value="2">Mostar el Número Límite de Páginas y el Número de Páginas Restantes</option>
<option value="3">Mostrar el Núm. de Págs. Utilizadas</option>

<option value="4">Mostrar Todo</option>
</select>
</td>
</tr>
</tbody></table>


<hr>

<table class="layout">

<tbody><tr>
<td colspan="2">
<input name="dispbtn" value="Mostrar(O)" onclick="validate( this.name )" accesskey="O" type="button">
<input name="countclear" value="Borrar Contador(C)" onclick="validate( this.name )" accesskey="C" type="button">
</td>
</tr>
</tbody></table>
</div>
<!--MAIN_END-->


<!--FOOTER-->
<div class="footer">
<div class="topButton"><a href="#main">Volver al Comienzo de Esta Página<img src="account_usercount_files/top_button.gif" alt="" border="0"></a></div>
<div class="buttonfieldFoot">
<span class="footButton"><input name="updatebtn" value="Actualizar(R)" onclick="validate( this.name )" accesskey="R" type="button"></span>
</div>
</div>
<!--FOOTER_END-->

</div>
</form>
</body></html>

dglienna
May 7th, 2008, 01:39 AM
Could you use some code tags there? Seems to have messed up Fx!

'code

HanneSThEGreaT
May 7th, 2008, 08:47 AM
benjas77, please use [CODE] Tags! when posting code. I'm also not sure if this is really applicable to VB, so I moved it to a more appropriate forum

PeejAvery
May 7th, 2008, 10:05 AM
Hannes, I think this might be for VB.NET. The way I understand it, the user is attempting to use VB.NET to manipulate the form contents.

benjas77, Am I correct? If so, we can move it back.

HanneSThEGreaT
May 7th, 2008, 10:18 AM
It may indeed be for VB.NET, but based on the OP just slamming all the JS code on a page and expecting us to exactly figure out what he/ she wants to do, and where, I decided to move it here. Next time, he / she 'll hopefully phrase his / her question better :)