Reply to Re: Confirm dialog box

Your name:

Reply:


Posted by Jerry Stuckle on 05/21/07 11:12

Tomislav wrote:
>
>> Your best bet is javascript - it works, just ensure you have
>> javascript enabled. Or you can take them to a new "confirm" window.
>> If they confirm then continue. If they do not, return to the previous
>> page.
>
> Thank you for your quick response. Below is code snippet I use as
> template to construct my own JavaScript code.
>
> **
>
> <form method="post" action="mail.php" onSubmit="javascript:return
> confirm('Do you really want to send this order ?);">
>
> **
>
> When I include Submit button in this form form action should be
> performed, e.g. "mail.php" should be executed. Only thing is that it is
> executed directly without any confirm windows.
>
> JS is enabled and browser is Firefox 2.0. What is more I frequently use
> JS in my designs and this very site I am working on now has plenty of JS
> included. That is a bit confusing - that code above does not work.
>
> Did I miss something when I incorporated JS in form ?
>
> Thanks,
>
> Tomislav

Sorry, I don't know - I'm not that great on javascript. Try
comp.lang.javascript for javascript questions.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация