Board Logo

standard or PRO
relmiami - 4/19/2003 at 05:26 AM

I want to fully play around with the standard version before buying the pro (i already but some other items from you) - but i am wondering, what's the trick to calling a javascript function when a leaf is clicked. Ex.
['leaf1','javascript:alert();'] -- works but
['leaf1','javascript:my_func();'] -- does not work. i tried to read the docs, but no go.


rock - 4/21/2003 at 09:43 AM

In standart version you can set only default target window, so your script will be executed in that frame you've declared as default target. Try to manipulate this settings, according to comments included.
Note: Pro version provides custom parameter to define target for each item independently.


Xnuiem - 5/28/2003 at 07:32 PM

Was there any progress on this one?

I too am looking to use custom functions inside of the menu, that have nothing to do with opening a window.


Xnuiem - 5/28/2003 at 07:36 PM

NM I got it.


jonas.gunnarsson - 3/25/2008 at 09:29 AM

Quote:
Originally posted by rock
In standart version you can set only default target window, so your script will be executed in that frame you've declared as default target. Try to manipulate this settings, according to comments included.
Note: Pro version provides custom parameter to define target for each item independently.

So the tw = target window only work i the Pro-version?
I have iframes caled 'frame_app1', 'frame_app2', and want do do like,
Code:
['Welcome Page', 'http://www.softcomplex.com/ReadMeFirst.html', {'tw':'frame_app1', 'tt':'Welcome Page','sb':'Welcome Page'}],


The menu works fine 2-5 times, after that it opens in new tab, both in ie7 and ff2
So I do need the Pro version, to solve this?

Best /Jonas


jonas.gunnarsson - 3/25/2008 at 09:31 AM

Hi!
This works for me, note works only in same js-file(menu_items.js)

Code:
function doLogout() {
alert('Utloggad');
}
['Logga ut', 'javascript:doLogout();', null]


Best /Jonas


jonas.gunnarsson - 3/25/2008 at 12:23 PM

Quote:
Originally posted by jonas.gunnarsson
The menu works fine 2-5 times, after that it opens in new tab, both in ie7 and ff2


Got the same result using inline javascript in the menu
Code:
function doOpen(url, tw, param) {
window.open(url, tw, param);
}
function doOpenApp01() {
doOpen('http://www.softcomplex.com/support.html', 'frame_app1', '');
}

var MENU_ITEMS = [
['Applikationer', null, null,
['Report test results', 'javascript:doOpenApp01();', null],
],
];

So there seems to be something with the browsers, not a standart or Pro issue.
Best /Jonas


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/