Re: CF and JS question

2004-08-28 Thread Douglas Knudsen
lucky, I work on a sterile intranet. Doug - Original Message - From: Jim Davis <[EMAIL PROTECTED]> Date: Sat, 28 Aug 2004 14:11:16 -0400 Subject: RE: CF and JS question To: CF-Talk <[EMAIL PROTECTED]> In _javascript_ associative arrays are always Objects - doing "new O

RE: CF and JS question

2004-08-28 Thread Jim Davis
aac Dealey [mailto:[EMAIL PROTECTED] Sent: Saturday, August 28, 2004 1:04 PM To: CF-Talk Subject: Re: CF and JS question > Actually, JS supports associative arrays also.  So, > foo['apple'] = > fruit is perfectly fine.  Hence the need for > JSStringFormat() when > creating these

Re: CF and JS question

2004-08-28 Thread S . Isaac Dealey
> Actually, JS supports associative arrays also.  So, > foo['apple'] = > fruit is perfectly fine.  Hence the need for > JSStringFormat() when > creating these via CF, in case there's a ' or something. > Doug Ahh... Well I've always just used Object() for that -- which is also what cfwddx uses...

Re: CF and JS question

2004-08-28 Thread Douglas Knudsen
te: Sat, 28 Aug 2004 11:29:58 -0400 Subject: RE: CF and JS question To: CF-Talk <[EMAIL PROTECTED]> > beautiful use of JSStringFormat() Isaac!  You know I > fought with errant ' > and " in my JS for like a year and a half before > discovering this function. > Now, do

RE: CF and JS question

2004-08-28 Thread S . Isaac Dealey
> beautiful use of JSStringFormat() Isaac!  You know I > fought with errant ' > and " in my JS for like a year and a half before > discovering this function. > Now, doesn't the below creae an array of 3d arrays?  A > true 3D array is nto > available like CF, IIRC.  Anyhoo, I've used the below > app

Re: CF and JS question

2004-08-27 Thread S . Isaac Dealey
> 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 ;) Well you probably could, but if you're using an encrypted tag it would require

Re: CF and JS question

2004-08-27 Thread Greg Morphis
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

Re: CF and JS question

2004-08-27 Thread Adam Haskell
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 ma

Re: CF and JS question

2004-08-27 Thread Greg Morphis
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 wi

Re: CF and JS question

2004-08-27 Thread Greg Morphis
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 and [x] within the loop. > the problem I'm runni

Re: CF and JS question

2004-08-27 Thread Adam Haskell
you will want to use a vairavle for matches like z so z=0 loop   if match {     option[z].value;     z=z+1; } Code: document.forms['laforma'].c_taskid.options.length = 0; y = taskArray.length; z=0; for (x=0; x boom put itin the sub select if(taskArray[i][2] == actid){    document.forms['laforma

Re: CF and JS question

2004-08-27 Thread Greg Morphis
that works.. I also had to add and [x] within the loop. the problem I'm running into now is that it's leaving the spaces empty for(i=0;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 en

Re: CF and JS question

2004-08-27 Thread S . Isaac Dealey
> hey Issac.. > yeah I started using your code to generate the JS Array.. > var taskArray = new Array(); > > >  to="#alltasks.recordcount#"> >  taskArray[#x-1#] = new Array( >'#jsstringformat(alltasks.task)#', >'#jsstringformat(alltasks.c_taskid)#', >'#jsstringformat(allta

Re: CF and JS question

2004-08-27 Thread S . Isaac Dealey
You have an unnecessary extra loop... (the j loop) for(i=0;i   if (taskArray[i][2] == actid)     document.write('option=' + taskArray[i][0] +     'value=' + taskArray[i][1] + ''); } s. isaac dealey   954.927.5117 new epoch : isn't it time for a change? add features without fixtures with the onT

Re: CF and JS question

2004-08-27 Thread Greg Morphis
sen <[EMAIL PROTECTED]> wrote: > > > beautiful use of JSStringFormat() Isaac!  You know I fought with errant ' > > > and " in my JS for like a year and a half before discovering this function. > > > Now, doesn't the below creae an array of 3d arrays?  A true 3D a

Re: CF and JS question

2004-08-27 Thread Greg Morphis
gt; > var sys = new Array; > >   > >   sys['#JSStringFormat(rates.billsystem)#'] = new Array; > >    > > > > sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#' > > ] = new Array > >    > > > > sys[&#

Re: CF and JS question

2004-08-27 Thread S . Isaac Dealey
> The array isnt really the problem, the problem is taking > the array and > populating the select statements. > some puesdocode > for i = 0 to taskArray.arrayLength >   for j = 0 to taskArray.arrayDimension >  if taskArray.[i,3] = 2 I ... don't think this syntax is correct... I would expect

Re: CF and JS question

2004-08-27 Thread Greg Morphis
27;]['#JSStringFormat(rates.rateplan)#' > ] = new Array >    > > sys['#JSStringFormat(rates.billsystem)#']['#JSStringFormat(rates.rateplan)#' > ]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#'; >    >    &

RE: CF and JS question

2004-08-26 Thread Douglas Knudsen
;#JSStringFormat(rates.rateplan)#' ]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#';            Doug -Original Message- From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] Sent: Thursday, August 26, 2004 4:05 PM To: CF-Talk Subject: Re: CF and JS qu

Re: CF and JS question

2004-08-26 Thread S . Isaac Dealey
_javascript_ arrays are declared a bit differently than CF arrays. try this: var taskArray = new Array();   to="#alltasks.recordcount#">   taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#', '#jsstringformat(alltasks.c_activityid)#'); s. i

Re: CF and JS

2002-08-18 Thread Mike Tangorre
ED]> Sent: Sunday, August 18, 2002 7:06 PM Subject: Re: CF and JS > Hi Mike: > > I threw together a quick (basic) javascript that allows you to select 1 of 3 > states, then one of 3 cities, then one of 3 streets. > > It's at http://130.13.170.56:6699/bigArray.html

Re: CF and JS

2002-08-18 Thread Charlie Griefer
Hi Mike: I threw together a quick (basic) javascript that allows you to select 1 of 3 states, then one of 3 cities, then one of 3 streets. It's at http://130.13.170.56:6699/bigArray.html you can view the source to see what the arrays look like. Since I assume your data is coming from a databas

Re: CF and JS

2002-08-18 Thread Alex
there is a custom tag two_selects_related and there is a tag three_selects_related. Looks like you want 4, but you can check macromedia developer exchange. On Sun, 18 Aug 2002, Mike Tangorre wrote: > Forgive me if this same question was going through from my work email, I am having >problems wi

Re: CF and JS

2002-08-18 Thread Charlie Griefer
If you're going to do this without 'refreshing' the page...it's going to require a fairly sizable array in the javascript. You'd first need an array of states...then an array of all cities within each state (JS doesn't natively support 2d arrays, so you have to do arrays of arrays). Further, an

Re: CF and JS

2001-12-14 Thread Nick Han
this is what i used. http://mydomain/detect. cfm"> on detect.cfm, do your conditional processings there. Nick Han >>> [EMAIL PROTECTED] 12/14/01 08:56AM >>> Is there anyway to detect if a browser has javascript enabled/disabled using CF? Michael T. Tangorre ==

Re: CF and JS

2001-12-14 Thread BILLY CRAVENS
Yes, and no. CF is server-side; it's interaction with the browser consists of just HTTP POST and GET, which has nothing to do with JS. However, you can have the browser tell CF if JS is enabled. in your application.cfm: in your first page on your site: document.write("");

RE: CF and JS

2001-12-14 Thread Raymond Camden
There is no sure fire way. You can hack it. For example, you can use JS to set a cookie, and then on the second-N requests, check for that cookie, although the user could break your check by simply disabled JS after he gets past the first page.