View Single Post
Old 11-14-2012, 11:03 AM   PM User | #7
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,468
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
Code:
function PasswordLogin(folder)
{
    var filename = folder+"/" + document.formlogin.trackingnr.value.toUpperCase() + ".html";
    // ...
then,
Code:
PasswordLogin("transactions");
PasswordLogin("stock");
you probably want to remove the alert since one will fail.

you can make an additional progress monitor to throw the alert up if both fail:

Code:
function doPageSearch(){
  doPageSearch.tries=2; // how may folders to search?
  PasswordLogin("transactions");
  PasswordLogin("stock");
}
then change
Code:
else
            {
                alert('Votre Numero est errone. Merci de reessayer!');
                return false;
            }
to
Code:
else
            {
 
                if(! --doPageSearch.tries)  alert('Votre Numero est errone. Merci de reessayer!');
                return false;
            }
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.6% IE9:9.8% IE10:10%

Last edited by rnd me; 11-14-2012 at 11:07 AM..
rnd me is offline   Reply With Quote