In a message dated 11/26/00 2:34:21 PM Mountain Standard Time,
[EMAIL PROTECTED] writes:


<script>
function executes_login_at_bol()
{
 var agora = new Date();
 var wnd = window.open(
   "http://www.bol.com.br/home1.jsp",
   agora.getTime(), "scrollbars=yes");

 if (wnd.closed) {  // erro
   return;
 }
 wnd.document.formfake.nome = "nome";
 wnd.document.formfake.upass = "senha";
 wnd.document.formfake.Act_Login.click();
}
</script>


Let me guess, you are getting a lot of "Not an object" errors.  You'll need
to make the actions after opening the window an "onload" event.  Make it a
seperate function.

<script>
function executes_login_at_bol()
{
� var agora = new Date();
� var wnd = window.open(
� � "http://www.bol.com.br/home1.jsp",
� � agora.getTime(), "scrollbars=yes");

� if (wnd.closed) {� // erro
� � return;
� }

wnd.document.

}

function loginload()
{
� wnd.document.formfake.nome = "nome";
� wnd.document.formfake.upass = "senha";
� wnd.document.formfake.Act_Login.click();
}
</script>

Unfortunately, this will override all onloads that are set for that page
already, so if there is an "onload" that is essential to the functioning of
the page, it will be lost (or worse, other onloads might overwrite it).

But, somehow, it doesn't work. And I have no idea about how to
implement part (d). Part (e) can be resumed into "power the
damned thing off" :-)

Alberto Monteiro


Little known fact, Javascript has file handling ability in Windows... it's
just hard to find refferences for them.  I recommend a search on
webrefference.com and see if you can find what you need there.

Michael Harney
[EMAIL PROTECTED]

Reply via email to