[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - 2 small bugs
Page 1 of 1

2 small bugs

PostPosted: Sat Mar 10, 2007 6:56 pm
by jmdavid
There is a bug in function displayTooltip when defining custom wait message

if(this.waitMessage)this.dynContentObj.setWaitMessage(this.waitMessage);
instead of:
if(this.waitMessage)this.dynContentObj.setWaitMessag(ajaxWaitMessage);

There is a bug when including only dhtmlSuite-common.js and dynamically including calendar (DHTMLSuite.include('calendar'))

I get the following error in firebug: DHTMLSuite.calendarModel is not a constructor; I have no problem when including the big file (dhtml-suite-for-applications.js)

PostPosted: Sat Mar 10, 2007 7:08 pm
by Batalf
Hi David,

I have fixed the first bug you report. It will be available in the next patch.

The calendar problem.
--------------------------------
It looks to me like the

DHTML_SUITE_JS_FOLDER

variable is set incorrectly. It specifies the path to the "separateFiles" folder from your HTML files.

For more info, please see:
http://www.dhtmlgoodies.com/index.html? ... te-include
http://www.dhtmlgoodies.com/index.html? ... -variables

not folder problem

PostPosted: Sat Mar 10, 2007 7:27 pm
by jmdavid
Hi,

it is not a folder problem because I include other files without problem:

DHTMLSuite.include('menuBar');
DHTMLSuite.include('tableWidget');
DHTMLSuite.include('tabView');
DHTMLSuite.include('calendar');

The page renders the menu correctly, so I think DHTML_SUITE_JS_FOLDER is not the problem.

PostPosted: Sat Mar 10, 2007 11:17 pm
by Batalf

PostPosted: Mon Mar 12, 2007 2:46 pm
by jmdavid
Maybe it's because I use Zend Framework as well.
Here is my Apache config for mod_rewrite:

<Location /intranet>
RewriteEngine on
RewriteBase /intranet/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /intranet/index.php [L]
</Location>

In my script:
...
var DHTML_SUITE_JS_FOLDER = '/intranet/js/separateFiles/';
...
<script type='text/javascript/ src='/intranet/js/separateFiles/dhtmlSuite-common.js'></script>

...
DHTMLSuite.include('calendar');
DHTMLSuite.include('menuBar');
...

The menu is rendered perfectly (so second include works!), I get error "DHTMLSuite.calendarModel is not a constructor" in Firebug.

As said, including dhtml-suite-for-applications.js works well.

Thank you.

PostPosted: Mon Mar 12, 2007 4:16 pm
by Batalf