url from a menu option
Posted: Mon Mar 05, 2012 10:14 am
I am trying open a url from a menu option using javascript.
The url's are loaded into the value portion of the menu.
I tried the script: window.open(get("DocPath")); DOCPATH IS THE RECORD ID.
I tried using it in the ONOPTIONSCLICK properity and when that didn't work tried it in the ONCLICK property. Both give me an invalid argument error.
I loaded a url from one of the menu values into a hyperlink widget and the script:
window.open(get("linkid")); works fine.
How do I get this to work from a menu option.
Debug shows the correct url is being loaded into the menu value properities.
Thanks
The url's are loaded into the value portion of the menu.
I tried the script: window.open(get("DocPath")); DOCPATH IS THE RECORD ID.
I tried using it in the ONOPTIONSCLICK properity and when that didn't work tried it in the ONCLICK property. Both give me an invalid argument error.
I loaded a url from one of the menu values into a hyperlink widget and the script:
window.open(get("linkid")); works fine.
How do I get this to work from a menu option.
Debug shows the correct url is being loaded into the menu value properities.
Thanks