Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Callout - Javascript Question
System
I have a "browse-like" callout that allows me to browse for files on different branches. The problem I'm having is that when I only have one file in a directory, the document.callout_form.callout_selection.length is returning "undefined". When I have more than one, it correctly returns the number of files listed. Note that "callout_selection" is the name of the radio button that is used to list the contents of the directory. It's format is as follows:
<INPUT TYPE="RADIO" NAME="callout_selection" VALUE="...">
My question is, how do I keep javascript from returning an error when I have one file listed? Is it ok to have input type="radio" when you only have one selection?
I ultimately want to get the value of the one file listed, so a workaround on when it is returning undefined, won't work for me.
David M. Doggette
Certified Interwoven Consultant
Find more posts tagged with
Comments
There are no comments yet