FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » how to create (open) a dialog box
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: how to create (open) a dialog box [message #175117 is a reply to message #175112] Tue, 16 August 2011 06:21 Go to previous messageGo to previous message
Robert Hairgrove is currently offline  Robert Hairgrove
Messages: 19
Registered: September 2010
Karma:
Junior Member
On 08/16/2011 02:50 AM, sheldonlg wrote:
> On 8/15/2011 2:18 PM, A.Reader wrote:
>> On 15 Aug 2011 12:39:32 GMT,
>> Andre<pas(at)pourmois(dot)be> wrote:
>>
>>> Le Sun, 14 Aug 2011 10:43:21 +0000, Andre a écrit :
>>>
>>>> The problem is, I want to ask a user if he really want to delete a
>>>> record from a database.
>>>> How to do this with a dialog box??
>>>> Many tanks in advances
>>>> Andre
>>>
>>> Many thanks to every body.
>>> Very instersting, particalary the freebook site.
>>> Andre
>>
>> Andre, one way to avoid having to ask whether the person wants to
>> delete the record is to make deleting it a 2- or 3-action
>> process.
>>
>> For example, you might require that they check 2 checkboxes and
>> click a button. A person might accidently check one box and
>> click the button, but it's quite unlikely that they'll check
>> _both_ boxes for the same record by mistake.
>
> ....or simply use an onClick to have a confirm message box pop up.
>

Exactly! And this is done in web applications using a client scripting
language (such as JavaScript, not PHP).

Whether or not PHP can run on the client in specialized environments is
irrelevant. In most cases, it does run on the server and cannot generate
confirmation dialog boxes.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: xml search using javascript
Next Topic: Freelance PHP Developer
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 10:27:35 GMT 2024

Total time taken to generate the page: 0.04265 seconds