Results 1 to 4 of 4

Thread: Need Help Modifying Stylized Confirm Box

  1. #1
    Join Date
    Jan 2006
    Posts
    170
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Need Help Modifying Stylized Confirm Box

    Some time ago I came across some really nice javascript/css code for a stylized Confirm box. I honestly don't recall where. I've used it a lot and it's really nice. It replaces the standard javascript Confirm box and allows for the specification of a title, body text, and handler to process the results.

    Currently, the button labels are defined in the javascript routine. I'd like to modify it so I can pass the labels to the routine. Unfortunately, it's pretty tricky code. I don't mean that in a negative sense, it's just beyond my ability to deal with.

    I'm hoping that one of the senior coders can help me out with this.

    The javascript and css is a bit extensive, so I'm attaching the files.

    screen.css eConfirm.js

    This is what I use for testing:


    <head>
    <link type="text/css" rel="stylesheet" href="screen.css" media="screen,projection,tv">

    <script>
    function doit(){confirm("title","text",handler)}

    function handler(results){
    alert(results);
    }
    </script>
    </head>
    <body>
    <button type="button" onclick="doit()">test</button>
    <script type="text/javascript" src="eConfirm.js"></script>
    </body>


    I'd appreciate any help you can give.

    Thanks.

  2. #2
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    Try this:

    ConfirmBox.zip

  3. #3
    Join Date
    Jan 2006
    Posts
    170
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    styxlawyer.

    I bow to your capabilities. That is exactly what I need. Many thanks.

    Jim

  4. #4
    Join Date
    Nov 2014
    Location
    On A Scottish Island
    Posts
    488
    Thanks
    0
    Thanked 62 Times in 58 Posts

    Default

    You're welcome.

Similar Threads

  1. Confirm Box change value 'Ok' to 'yes'
    By satkannanab in forum JavaScript
    Replies: 1
    Last Post: 11-09-2010, 02:13 PM
  2. Replies: 6
    Last Post: 11-20-2009, 01:23 AM
  3. Confirm Issues
    By Titan85 in forum JavaScript
    Replies: 8
    Last Post: 03-04-2007, 06:16 AM
  4. Confirm onChange
    By texasgal in forum JavaScript
    Replies: 10
    Last Post: 10-13-2006, 08:27 PM
  5. Confirm password
    By Hybrid in forum HTML
    Replies: 2
    Last Post: 10-09-2005, 12:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •