| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Trouble displaying a message box? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Trouble displaying a message box?
Hi Folks, I recently installed the free mod to put any enquiring form on each page - nice bit of work.
What I would like to do is display a windows confirmation box when the user clicks on the submit button. However my javascript skills are almost non existent - so i can't get it to work. Here is the code for the button on the form: HTML Code:
I added an alert javascript code to the code liek follows : HTML Code:
I have tried a few variations - but nothing works any ideas? If I put script atgs around it it displays the message on the page load.
__________________
Version 4.7.7 |
|||||||
#2
|
|||||||
|
|||||||
Re: Trouble displaying a message box?
it is because of your quotations...
{include file="buttons/submit.tpl" type="input" style="button" href="javascript: return XCM_enquire(); alert('Thank you your question has been submitted.');"} |
|||||||
#3
|
|||||||
|
|||||||
Re: Trouble displaying a message box?
Thanks for the pointer - you set me in the right direction. Thanks
__________________
Version 4.7.7 |
|||||||
|
|||
X-Cart forums © 2001-2020
|