Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/09/2010, 15:41
Avatar de Ravenwizard
Ravenwizard
 
Fecha de Ingreso: octubre-2008
Mensajes: 4
Antigüedad: 15 años, 5 meses
Puntos: 0
Introducir instrucción al cargar página HTTP?

Hola! tengo una pequeña duda sobre cómo hacer para que al cargar una página http con formularios, uno de los formularios estén llenos con el código que yo quiero.
El formulario o cuadro de texto que quiero que esté lleno es el de expediente.
Por ejemplo:
https://altar.uson.mx/cgi-bin/tutorias.sh/accesoAlumnos.htm.expediente=200020020 o algo así

Código HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Portal de Enl@ce Acad&eacute;mico</title>
    <BASE HREF="https://altar.uson.mx/adeudos/tutorias/">
      <link href="https://altar.uson.mx/adeudos/tutorias/Images/wsestilos.css" rel="stylesheet" type="text/css">
      <!-- E4GL Disabled: meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" -->
      <script language="javascript">
      <!--
        function ventana() { self.menubar.visible = false; }
        function closeWindow() { window.open('','_parent',''); window.close(); }
        function abrir( pagina ) 
        {
            if( document.forma.expediente.value == "" ) 
            { 
              window.alert('Es necesario que especifique su usuario'); 
              return; 
            }
            else 
            {
                if( document.forma.password.value == "" ) 
                { 
                    window.alert('Es necesario que especifique su contraseña'); 
                    return; 
                }
                else 
                { 
                    document.forma.target = "none";
                    /* document.forma.action = "https://altar.uson.mx/cgi-bin/tutorias.sh/alumnosframe.htm"; */
                    win = null;
                    /* win = window.open("","inicioPortal","scrollbars=yes,height=700,width=1000,left=20,top=20"); */
                    win = window.open("","inicioPortal","scrollbars=yes,width=" + screen.width + ",height=" + screen.height + ",left=20,top=20,resizable=yes");
                    win.document.close();
                    win.document.open();
                    document.forma.action = pagina;     
                    document.forma.target = "inicioPortal";
                    document.forma.submit();
                    win.focus();
                    /* document.forma.submit();  */
                    document.forma.expediente.value = "";
                    document.forma.password.value = "";
                    closeWindow();
                }
            }
        }
        function entrar()
        {
          if( document.forma.expediente.value == "" ) 
          { 
              window.alert('Es necesario que especifique su usuario'); return; 
          }
          else 
          {
            if( document.forma.password.value=="" ) 
            { 
                window.alert('Es necesario que especifique su contraseña'); return; 
            }
            else 
            { 
                document.forma.target = "none";
                /*document.forma.action = "https://altar.uson.mx/cgi-bin/tutorias.sh/alumnosframe.htm";*/
                document.forma.action = "https://altar.uson.mx/cgi-bin/tutorias.sh/alumnosframe.htm";
                document.forma.submit(); 
                document.forma.expediente.value = "";
                document.forma.password.value = "";
                closeWindow();
            }
          }
        }
        function abrirventana(myurl,ventana,w,h,scroll) {
          var newWindow;
          var winl = (screen.width - w) / 2;
          var wint = (screen.height - h) / 2;
          var winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=' + scroll + ',resizable=yes';
          window.open( myurl, ventana, winprops, 1 );
        }
        /*
        function MM_preloadImages() { //v3.0
          var d = document; 
          if( d.images ) { 
            if( !d.MM_p ) d.MM_p = new Array();
            var i, j = d.MM_p.length, a = MM_preloadImages.arguments; 
            for( i=0; i<a.length; i++ ) if( a[i].indexOf("#") != 0 ) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; }
          }
        }
        function MM_reloadPage( init ) {  //reloads the window if Nav4 resized
          if( init==true ) with ( navigator ) {
            if( (appName=="Netscape") && (parseInt(appVersion)==4) ) { document.MM_pgW = innerWidth; document.MM_pgH = innerHeight; onresize = MM_reloadPage; }
          } 
          else if( innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH ) location.reload();
        }
        MM_reloadPage(true);
        */
      //-->
      </script>