Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
And now it does nothing
Message
De
03/04/2013 13:28:22
 
 
À
03/04/2013 13:10:55
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01569918
Message ID:
01569937
Vues:
32
Why 'alert' instead of 'messageBox'?

Not trying to be a snot or anything, just needing the reasoning why...


>
>Yep. The 'If' is a problem. This should work:
function SCDropDown(topiclist)
>        {
>            if (topiclist.selectedIndex > 0)
>            {
>                location.href='go.hcn?hcn2~recipe~'+topiclist.options[topiclist.selectedIndex].value;
>            }
>        else {
>                alert('Please select a recipe');
>            }
>        }
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform