[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 - Context menu broken
Advertisement

Context menu broken

Moderators: Calcifer, slothy

Context menu broken

Postby FickD » Mon Feb 05, 2007 5:14 pm

I've noticed that the context menu won't display more than 1 level even though it's been clearly defined in the menuModel that there should be 2 options under the Save As ( PDF and RTF ) aren't displayed in the demo, no sub menu's are displayed. :shock:

Daniel
FickD
 
Posts: 139
Joined: Tue Jan 09, 2007 4:44 pm
Location: Houston, TX

Postby EZboy » Fri Mar 02, 2007 6:23 pm

EZboy
 
Posts: 45
Joined: Tue Jan 16, 2007 10:50 pm

Postby EZboy » Fri Mar 02, 2007 6:28 pm

EZboy
 
Posts: 45
Joined: Tue Jan 16, 2007 10:50 pm

Postby EZboy » Fri Mar 02, 2007 7:12 pm

OK, i looked it to that,
there is an error adding contextmenu item:
it should be
menuModel2.addItem(1,'Save','images/disk.gif','',false,'','saveItem');
instead of
menuModel.addItem(1,'Save','../images/disk.gif','',false,'saveItem');

The second thing is there is a problem in js code approx. here:

if(this.menuItems[no].jsFunction){
this.menuItems[no].url = this.menuItems[no].jsFunction + '(this,referenceToDHTMLSuiteContextMenu.srcElement)';
}

It looks like "this.menuItems[ ].url" takes value of last added item for al the items:?
EZboy
 
Posts: 45
Joined: Tue Jan 16, 2007 10:50 pm

Postby EZboy » Fri Mar 02, 2007 7:22 pm

Another thing!!!

Lets say i have context model attached to the div element with internal structure:
<div> <img> <span> text </span> </div>
When i click on this block, a js error occurs here - ref.srcElement=DHTMLSuite.commonObj.getSrcElement(e)

Understandable, the div was hooked up to context model, but the span/img triggered the event. How to avoid this?
EZboy
 
Posts: 45
Joined: Tue Jan 16, 2007 10:50 pm


Return to General questions

Who is online

Users browsing this forum: No registered users and 4 guests

cron