Hi,
I have this forms
http://www.sgagrafica.com/index.php?page=shop.product_details&flypage=flypage_new.tpl&product_id=65&category_id=7&option=com_virtuemart&Itemid=126
where I have an alert if value SUP_NOT_ROUND is minor of a specific value.
I would have a more nice message and not the standard window; so I would show this message not with an alert but inside the page; like a DIV that appear only if a specific condition is true.
How can I do this?
Regards
monak83
I have this forms
http://www.sgagrafica.com/index.php?page=shop.product_details&flypage=flypage_new.tpl&product_id=65&category_id=7&option=com_virtuemart&Itemid=126
where I have an alert if value SUP_NOT_ROUND is minor of a specific value.
I would have a more nice message and not the standard window; so I would show this message not with an alert but inside the page; like a DIV that appear only if a specific condition is true.
How can I do this?
Regards
monak83
Hi monak83,
You could add a div to your form with a id='message' and change the script here
Bob
You could add a div to your form with a id='message' and change the script here
if (sup_not_round<3500)
{ alert ("IMPORTANTE: Le dimensioni devono essere superiori a 50x70 cm.\nPer stampare etichette con dimensioni inferiori vai alle Etichette ALTA QUALITA'")}
to something likeif (sup_not_round<3500) {
$('message').setHTML("IMPORTANTE: Le dimensioni devono essere superiori a 50x70 cm.\nPer stampare etichette con dimensioni inferiori vai alle Etichette ALTA QUALITA'");
} else {
$('message').setHTML("");
}
Bob
how to display the value of the variable "sup_not_round" in the message?
after the addition of a variable in a message, it appears as text, a need to make it output a value "sup_not_round"
if (sup_not_round <3500) {
$ ("Message") setHTML ("Importante. sup_not_round").
{} Other
$ ("Message") setHTML ("").
}
after the addition of a variable in a message, it appears as text, a need to make it output a value "sup_not_round"
This topic is locked and no more replies can be posted.