well see I have 3 selects twice..
I'm already using the cf multi selects related once, and because of
the code behind that custom tag you cant use it twice on the same
page.
I'd already considered that ;)

On Fri, 27 Aug 2004 14:00:12 -0400, Adam Haskell <[EMAIL PROTECTED]> wrote:
> oh yeah or you could look on Macromedia's dev exchange and look for
> the UDF (maybe a tag) called 2 releated selects ;) I don't like the
> way it is done in that tag though.
>
> Adam H
>
> On Fri, 27 Aug 2004 12:45:14 -0500, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > Sorry Adam, I didnt see your post.. I may go that route but
> > considering it's given me pains for the past 3 hours :) I think I'm
> > gonna do something else for a few minutes and calm myself down..
> >
> > On Fri, 27 Aug 2004 12:42:45 -0500, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > > FINALLY!!!!!
> > >
> > > I went with 2 arrays, 2 queries to populate the damn arrays using SQL
> > > to check to see if c_activityid was 2 or 4.
> > > It works..
> > >
> > >
> > >
> > >
> > > On Fri, 27 Aug 2004 12:13:24 -0500, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > > > that works.. I also had to add <cfoutput> and [x] within the loop.
> > > > the problem I'm running into now is that it's leaving the spaces empty
> > > >
> > > >        for(i=0;i<taskArray.length;i++){
> > > >         if (taskArray[i][2] == actid)
> > > >           document.forms['laforma'].c_taskid.options[i] = new
> > > > Option(taskArray[i][0], taskArray[i][1]);
> > > >        }
> > > >
> > > > it's going through the entire array (10 items) and putting something in there..
> > > > which means if I pass 4..
> > > > the select box has 7 empty spaces and then
> > > > CBT
> > > > Classroom Training
> > > > Conference Call
> > > >
> > > > I added a rmvNulls function I wrote quick..
> > > > function rmvNulls(sel) {
> > > >        for (i=0;i<sel.length; i++) {
> > > >        //alert(sel.options[i].value.length)
> > > >                if (sel.options[i].value.length == 0)
> > > >                        sel.options[i] = null;
> > > >        }
> > > > }
> > > >
> > > > this removes some of them but then gives me a JS error..
> > > > says something about options.value is null or not an object?
> > > >
> > > > any ideas on how to not add all the extra empty choices
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, 27 Aug 2004 12:25:38 -0400, S. Isaac Dealey <[EMAIL PROTECTED]> wrote:
> > > > > > hey Issac..
> > > > > > yeah I started using your code to generate the JS Array..
> > > > > > var taskArray = new Array();
> > > > > > <cfoutput>
> > > > > > <cfloop index="x" from="1"
> > > > > >  to="#alltasks.recordcount#">
> > > > > >  taskArray[#x-1#] = new Array(
> > > > > >        '#jsstringformat(alltasks.task)#',
> > > > > >        '#jsstringformat(alltasks.c_taskid)#',
> > > > > >        '#jsstringformat(alltasks.c_activityid)#');
> > > > > > </cfloop>
> > > > > > </cfoutput>
> > > > >
> > > > > > but when implementing it..
> > > > > > for(i=0;i<taskArray.length;i++){
> > > > > >   for(j=0;j<2;j++) {
> > > > > >      if (taskArray[i][2] == actid)
> > > > > >       document.forms['laforma'].c_taskid.options[i] = new
> > > > > > Option(taskArray[i][j], taskArray[i][j+1]);
> > > > > >   }
> > > > > > }
> > > > >
> > > > > > which to me seems like it should work..
> > > > > > But it isnt
> > > > >
> > > > >
> > > > > See my last reply for the code-bit -- your j loop is an extra -- once
> > > > > you remove that I think you should be okay.
> > > > >
> > > > > s. isaac dealey   954.927.5117
> > > > >
> > > > > new epoch : isn't it time for a change?
> > > > >
> > > > > add features without fixtures with
> > > > > the onTap open source framework
> > > > > http://www.sys-con.com/story/?storyid=44477&DE=1
> > > > > http://www.sys-con.com/story/?storyid=45569&DE=1
> > > > > http://www.fusiontap.com
> > > > >
> > > > >
> >
> >
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to