html javascript help maybe <OT>

Richard R. Sivernell res005ru
Mon May 17 11:30:01 PDT 2004


List

   I need some help here.
I have created a index.html file and it works. Now I wish to replace the hard coded
return url & path in the forms action variable. Ihave done the following:
  <script>
      function OnGetHostName()
      {
        g_szHostName  = document.location.hostname;
        g_szHostName += "/";
        g_szHostName += document.location.pathname;
        document.index.classInfo2.value = g_szHostName;
        return g_szHostName;
      }
   </script>
</head>
<body background="notebg.gif">
  <h1>
     <font color="green" face="times" size="+3">
       <center>
          Gradebook Status System
          <br>
       </center>
     </font>
  </h1>
  <img src="worldnet.gif" width=259 height=213 align="right" border=0 vspace=00>
  <form load="OnResizeWindow()" name="index" action="return(OnGetHostName)" + "/gradestatistics.cgi?post" method="POST" id=100>
  <table width=500>

  My question am I all wet here in massive dodo or am I close.
to save bandwidth you can contact me off line at below post.

thanks in advance

cheers
-- 
Rick Sivernell
Dallas, Texas  75287
972 306-2296
res005ru at gte.net
Caldera Open Linux eWorkStation 3.1.1
Registered Linux User

   .~.
  / v \
 /( _ )\
   ^ ^
In Linux we trust!



More information about the Linux-users mailing list