View Single Post
  #1  
Old 03-11-2008, 10:24 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default 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:
{include file="buttons/submit.tpl" type="input" style="button" href="javascript: return XCM_enquire();}

I added an alert javascript code to the code liek follows :

HTML Code:
{include file="buttons/submit.tpl" type="input" style="button" href="javascript: return XCM_enquire(); alert("Thankyou your question has been submitted. ");}

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
Reply With Quote