relmiami
Newbie
Posts: 1
Registered: 4/19/2003
Member Is Offline
|
| posted on 4/19/2003 at 05:26 AM |
|
|
standard or PRO
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
Moderator
Posts: 687
Registered: 4/15/2003
Member Is Offline
|
| posted on 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
Junior Member
Posts: 3
Registered: 3/1/2003
Location: Dallas, Texas
Member Is Offline
|
| posted on 5/28/2003 at 07:32 PM |
|
|
Any Further Progress
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
Junior Member
Posts: 3
Registered: 3/1/2003
Location: Dallas, Texas
Member Is Offline
|
| posted on 5/28/2003 at 07:36 PM |
|
|
NM I got it.
|
|
|
jonas.gunnarsson
Junior Member
Posts: 5
Registered: 3/25/2008
Location: Huskvarna
Member Is Offline
|
| posted on 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
Junior Member
Posts: 5
Registered: 3/25/2008
Location: Huskvarna
Member Is Offline
|
| posted on 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
Junior Member
Posts: 5
Registered: 3/25/2008
Location: Huskvarna
Member Is Offline
|
| posted on 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
|
|
|