1

(90 replies, posted in Third party plugins)

Well, I made a testcase now as I'm not back working again.  I tried this:

<?php
echo '<?xml version="1.0" encoding="UTF-8"?>'
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

and the same without the xml header:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

The onclick event now works correctly - but the contents are not centered yet, this is my content:

    $msg = "<div id='msg'>"
         . $msg."<br />"
         . "<img src='images/ajax_processing.gif' alt='please wait />"
         . "</div>";

The $msg var only contains text without formatting, is then surrounded by divs and the ajax processing gif as you can see in the code before, and this is my modalwindow command

    $objResponse->clsmodalWindow->addWindow($msg, array('color' => '#000000',
            'opacity' => 90,
            'frame' => 'parent',
            'bOverlay' => true,
            'bOverlayClick' => true,
            'classname' => "msg"
        ));

Any idea why the content isn't centered correctly?

2

(90 replies, posted in Third party plugins)

metric wrote:

dhh, I noticed that also. It is due to not having propery <!doctype> at the top of the html page. The page must be in proper standards mode for it to work properly. You may have also noticed that the box is not properly centered when the proper doctype is not defined at the top of the html.

See: http://hsivonen.iki.fi/doctype/ for more info on the different standards.

Firefox has a feature that automatically determines the page doctype if one is not specified, but IE 8, 7, and 6 do not.


Hey metric, thank you for this possible solution - I'll try this as soon as I'll be back at work on tuesday!

3

(90 replies, posted in Third party plugins)

Hey metric, I think there's kind of a bug in your "bOverlayClick" extension - in firefox there's no problem but in internet explorer 7 / 8 i won't get it working. Everythings ok, the plugin works great and the modal window is closable by clicking the close link but the eventhandler somehow somehow doesn't work (I don't get any report or error message, neither by activatiing xajax debug mode nor in the internet explorer error console).

Regardless of this I'll still keep using the modalwindow plugin. I only use it in an administation utility, so I'm ok with clicking on a close link... ;-)

Thanks for this great work to all of you!