Page 1 of 1

Button/menuitem targets, Events hooks, per-button spacing...

PostPosted: Sun Mar 16, 2008 8:14 pm
by Dr Paul A Daniels
In EBMM Support I've posted some of my experiences in trying to use buttons and menus on a small web-site of my own and have the following suggestions:

    The buttons and menuitems can currently only be used to load an entire page into the full browser window (but see my post in EBMM support) it would be nice if an IFRAME target could be specified on a per button/menuitem basis to give more flexibility (including avoiding full page reloads).
    Modern web pages are much more interactive than they used to be. In particular, the increasing use of Ajax techniques means that EBMM would be much more useful if there were more hooks into events (mouse click, mouse over, etc) to give the developer something other than just the ability to load pages into the browser.
    It shouldn't be too difficult to allow spacing between buttons to be on a per-button basis rather than having only one spacing value for all buttons.
    It would be nice if icons on menuitems were clickable and not just the text of the menuitem.
    In the EBMM-generated HTML code there are empty SPANs for each of the menuitems. If the code is included in a web-page and WeBuilder is used to do a code tidy then the empty SPANs are removed which removes the icons from the menus. Including an   in them would prevent this.

I hope these are useful ideas - any idea when version 1.1 will be available? :wink:

PostPosted: Tue Mar 18, 2008 1:10 am
by turicon

perhaps can I now help? :D

I had also the problem with the target. Here my workaround:

1. open the JavaScript (cbjscbindex.js). Make a backup!!
2. search for "href"
3. only one line have this searchstring:
Code: Select all
if(s.href&&s.href.match(n)){p.rowClickLink=s.href;p.onclick=function(){window.location.href=this.rowClickLink}}}else w.innerHTML=' '

4. now delete all between {}, see here the result:
Code: Select all
if(s.href&&s.href.match(n)){}}else w.innerHTML=' '

5. Now you can give all links a target-Attribut and that works fine :wink:


Re: Button/menuitem targets, Events hooks, per-button spacing...

PostPosted: Mon Nov 03, 2008 12:09 am
by lesaigles
Hi at all,

I found for this problem a much easier solution !!!

When you look your HTML-Code for your menu, you will find the following:

<td style="padding-bottom:1px" title=""><a href="xxx.html"><img id="cbi_cbinsmenu_1" src="images/ebbtcbinsmenu1_0.png" name="ebbcbinsmenu_1" width="129" height="30" border="0" alt="xxx" title="" /></a></td>

When you put now in the <> after the href target="mainFrame", the page will be opened in the frame called mainFrame

It works perfect


Re: Button/menuitem targets, Events hooks, per-button spacing...

PostPosted: Mon Nov 03, 2008 3:16 pm
by chrisjlocke
Frames?! *shudder*
I feel like I've fallen into a time-bubble, and we're back in 1980 again...