JavaScript.CoolDev.Com Support Forums
Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com
| Author |
Message |
timjoein
Joined: 03 May 2005 Posts: 7
|
Posted: Wed May 04, 2005 10:04 am Post subject: help needed |
|
|
Hi ,
{text:"Records Management (V)", url:'',
items:[
{text:"Records - Document Information", image:'arrow', url:'2.html'},
{text:"Records - Revision Information", image:'arrow', url:'2.html'},
]
},
in the place of url i want to call a javascript function as url , can anybody help me how to do that
Cheers
Thimi |
|
| Back to top |
|
 |
Victor_Chuiko Support Team
Joined: 12 Apr 2005 Posts: 145
|
Posted: Wed May 04, 2005 3:19 pm Post subject: |
|
|
So, here is you code:
| Code: | panels:[
{text:"IndusConnect (Y)", url:'',
items:[
{code:"IndusConnect Triggers", format:{image:"images/image.gif", imgsize:[10,15], imgsize:[10,15]}, url:"javascript(f_flowAction('x', 'IFA_APPLY'))"}
]
} |
As I see, you don't want the button to have an url. So than just don't give it url. And you write :url:'',. So, considering this, your code should look like following:
| Code: | panels:[
{text:"IndusConnect (Y)",
items:[
{text:"IndusConnect Triggers", image:"images/image.gif", url:"javascript:void(f_flowAction('x', 'IFA_APPLY'))"}
]
} |
|
|
| Back to top |
|
 |
|
|