Re: OT - JS Question

2012-08-29 Thread .jonah
Trigger the form serialization and AJAX form submission onchange and then trigger the popup from the success callback to the AJAX call. Are you doing this with vanilla.js or using a library like jQuery? On 8/28/12 3:30 PM, Bruce Sorge wrote: Can someone point me to a site or a sample of JS

RE: OT - JS Question

2012-08-29 Thread Stephens, Larry V
Sorge [mailto:sor...@gmail.com] Sent: Tuesday, August 28, 2012 6:30 PM To: cf-talk Subject: OT - JS Question Can someone point me to a site or a sample of JS that does the following: User enters first name, last name and birth date (birthdate is in a specific format by using drop downs

OT - JS Question

2012-08-28 Thread Bruce Sorge
Can someone point me to a site or a sample of JS that does the following: User enters first name, last name and birth date (birthdate is in a specific format by using drop downs and not free text). Once the birth year has been selected, a query is triggered to check for the existence of the

OT - JS question

2012-08-12 Thread Bruce Sorge
I have a form where I am adding administrators to a site. Site administrators and resort administrators. Rather than have two separate forms for this I thought that what I would do is when they are adding an admin, if they select a resort admin, then another select list appears with a list of

Re: OT JS question

2010-03-05 Thread Raj Vijay
Can you try this, (parseInt(,10)||0) Raj Thanks for the suggestions but if I do this I get NaN (not a number I am guessing). parseInt(FOO,10); parseInt(,10); http://www.w3schools.com/jsref/jsref_parseInt.asp var value = 15; parseInt(value,10); On Thu, Mar 4, 2010 at 1:37 PM, Chad Gray

OT JS question

2010-03-04 Thread Chad Gray
Anyone know if there is an equivalent to CF’s val() in Javascript? I want to check a JS variable and set it to zero if it is blank. Thanks ~| Want to reach the ColdFusion community with something they want? Let them know on

Re: OT JS question

2010-03-04 Thread Jake Churchill
http://www.w3schools.com/jsref/jsref_parseInt.asp var value = 15; parseInt(value,10); On Thu, Mar 4, 2010 at 1:37 PM, Chad Gray cg...@careyweb.com wrote: Anyone know if there is an equivalent to CF’s val() in Javascript? I want to check a JS variable and set it to zero if it is blank.

RE: OT JS question

2010-03-04 Thread Andy Matthews
parseInt might do the trick. parseInt(var) -Original Message- From: Chad Gray [mailto:cg...@careyweb.com] Sent: Thursday, March 04, 2010 1:37 PM To: cf-talk Subject: OT JS question Anyone know if there is an equivalent to CF's val() in Javascript? I want to check a JS variable

RE: OT JS question

2010-03-04 Thread Chad Gray
Thanks for the suggestions but if I do this I get NaN (not a number I am guessing). parseInt(FOO,10); parseInt(,10); -Original Message- From: Jake Churchill [mailto:reyna...@gmail.com] Sent: Thursday, March 04, 2010 2:40 PM To: cf-talk Subject: Re: OT JS question http

RE: OT JS question

2010-03-04 Thread Chad Gray
Ah I think I found one that will work Number(); I will test it out. Thanks for the help! -Original Message- From: Chad Gray [mailto:cg...@careyweb.com] Sent: Thursday, March 04, 2010 3:04 PM To: cf-talk Subject: RE: OT JS question Thanks for the suggestions but if I do this I get

Simple JS question...

2009-09-16 Thread Che Vilnonis
Hope this one is easy... how can I get the selected value from a form's select box and then pass that value as a variable in a href? Can it be done with an onClick event? a onclick=*some js here*; href=/account/index.cfm?mode=wishlistproductid=*js value here*Add to Wishlist/abr / Thanks, Che

Re: Simple JS question...

2009-09-16 Thread Charlie Griefer
not tested, but something like: a href=# onclick=takeMeThere();Add to Wishlist/a script type=text/javascript function takeMeThere() { var mySelectBox = document.getElementById('mySelectBox'); var productID = mySelectBox.options[mySelectBox.selectedIndex].value;

RE: Simple JS question...

2009-09-16 Thread Duane Boudreau
[mailto:ch...@asitv.com] Sent: Wednesday, September 16, 2009 3:54 PM To: cf-talk Subject: Simple JS question... Hope this one is easy... how can I get the selected value from a form's select box and then pass that value as a variable in a href? Can it be done with an onClick event? a onclick

RE: Simple JS question...

2009-09-16 Thread Che Vilnonis
Charlie/Duane... Thanks. That did the trick! -Original Message- From: Charlie Griefer [mailto:charlie.grie...@gmail.com] Sent: Wednesday, September 16, 2009 3:02 PM To: cf-talk Subject: Re: Simple JS question... not tested, but something like: a href=# onclick=takeMeThere();Add

Re: Simple JS question...

2009-09-16 Thread Dave Watts
Hope this one is easy... how can I get the selected value from a form's select box and then pass that value as a variable in a href? Can it be done with an onClick event? a onclick=*some js here*; href=/account/index.cfm?mode=wishlistproductid=*js value here*Add to Wishlist/abr / The

Simple JS Question?

2009-07-31 Thread Che Vilnonis
Take this simple form snippet: form action=searchResults.cfm input name=searchField type=text value=#url.searchField# a onmouseover=(window.status='Search...'); return(true); href=javascript:location.href='searchResults.cfm?searchField=' + document.top_search.searchField.value;img

Re: Simple JS Question?

2009-07-31 Thread Dave Watts
Using JS, how can I replace all spaces with plus (+) signs? Can it be done inline, or must I create a JS function? You can use the escape function built into JavaScript; this is analogous to URLEncodedFormat in CF. http://www.w3schools.com/jsref/jsref_escape.asp This won't replace spaces

RE: Simple JS Question?

2009-07-31 Thread Che Vilnonis
[mailto:dwa...@figleaf.com] Sent: Friday, July 31, 2009 3:37 PM To: cf-talk Subject: Re: Simple JS Question? Using JS, how can I replace all spaces with plus (+) signs? Can it be done inline, or must I create a JS function? You can use the escape function built into JavaScript

Re: Simple JS Question?

2009-07-31 Thread Dave Watts
Thanks Dave. In isn't quite working. What's interesting is that if I enter a search term and then hit the enter key, I get the pluses in the url. If I click the submit button with my mouse, I get the spaces between the search term in the url. If you hit enter, you're submitting the form. If

RE: Simple JS Question?

2009-07-31 Thread Che Vilnonis
the designer's layout functional. ~Che -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Friday, July 31, 2009 3:55 PM To: cf-talk Subject: Re: Simple JS Question? Thanks Dave. In isn't quite working. What's interesting is that if I enter a search term and then hit

Re: Simple JS Question?

2009-07-31 Thread Dave Watts
Dave I would... but the actual example is a bit more complicated. Basically, I'm using CSS to create a background image that sits under a form text box. I then use a a href around a invisible spacer.gif to submit via a mouse click. The site is complicated design wise... I'm only trying to

RE: Simple JS Question?

2009-07-31 Thread Che Vilnonis
Thank you Dave... a simple solution indeed! -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Friday, July 31, 2009 4:25 PM To: cf-talk Subject: Re: Simple JS Question? Dave I would... but the actual example is a bit more complicated. Basically, I'm using CSS

JS Question: How to include a parameter when assigning a function to an event.

2009-06-18 Thread Ian Skinner
I have this code that is assigning a JS function to the onClick events of elements. container.childNodes[i].onclick = openClose; I would like to assign parameters so that the openClose function of different elements function on specific items. I recoginize that this syntax is not going to

Re: JS Question: How to include a parameter when assigning a function to an event.

2009-06-18 Thread Ian Skinner
I finally found the right combination of Google Search terms and following other links to find at least one solution: container.childNodes[i].onclick = function() {openClose('hello world')}; I would be interesting in hearing if there are other solutions or any difficulties I might have with

Re: JS Question: How to include a parameter when assigning a function to an event.

2009-06-18 Thread cold.fusion
Other solutions? Use JQuery or Ext Core for this type of binding. Makes it very simple, and avoids any cross browser issues. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book

Re: JS Question: How to include a parameter when assigning a function to an event.

2009-06-18 Thread Tony Bentley
Use JQuery and then check out the documentation on binding an event. A classic example is passing the id to a function to identify that element inside of the function: $(#TheButton).bind(click,function(el){openClose( $(this).attr(id) )}); function openClose(el){ if($(el).is(.closed)){

js question - getting rusty

2009-05-03 Thread Don L
I's an embarrasing js question, been on and off on js, pretty rusty with it... I have an iframe for text data input, in the meantime, I have a button (id=d2) that has an event trigger to open up another window to do something else, once it is done for the pop-up window, when a user goes back

RE: js question - getting rusty

2009-05-03 Thread William Seiter
...@yahoo.com] Sent: Sunday, May 03, 2009 4:38 PM To: cf-talk Subject: js question - getting rusty I's an embarrasing js question, been on and off on js, pretty rusty with it... I have an iframe for text data input, in the meantime, I have a button (id=d2) that has an event trigger to open up

Re: js question - getting rusty

2009-05-03 Thread Don L
... evenTrigger2();document.getElementById('frm1').focus(); / button id=bn3... evenTrigger3();document.getElementById('frm1').focus(); / I's an embarrasing js question, been on and off on js, pretty rusty with it... I have an iframe for text data input, in the meantime, I have a button (id=d2

Re: JS Question

2008-12-21 Thread Robert Harrison
_ From: s. isaac dealey [mailto:i...@turnkey.to] To: cf-talk [mailto:cf-t...@houseoffusion.com] Sent: Sat, 20 Dec 2008 16:25:01 -0500 Subject: Re: JS Question I'm opening a popup on one page and want to close it on another page. You can't do it, because the variable you created on one page

Re: JS Question

2008-12-20 Thread J.J. Merrick
I think the reasoning is that upbar is not something that the popup is called in the DOM rather it is a var that is defined as that window. So when you go to close it in the non-opening page that upbar isn't defined thus it doesn't know how or what to close. Don't really know your solution since

Re: JS Question

2008-12-20 Thread Dave Watts
I'm opening a popup on one page and want to close it on another page. You can't do it, because the variable you created on one page to reference the popup doesn't exist when you leave that page. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest

Re: JS Question

2008-12-20 Thread s. isaac dealey
I'm opening a popup on one page and want to close it on another page. You can't do it, because the variable you created on one page to reference the popup doesn't exist when you leave that page. That's true... although you might be able to get around that if you do something really fancy

Re: JS Question

2008-12-20 Thread Dave Watts
That's true... although you might be able to get around that if you do something really fancy with frames or iframes and passing a window reference around. You would have to keep the page that created the variable; that page could certainly be within a frameset or iframe. You could probably

JS Question

2008-12-19 Thread Robert Harrison
I'm opening a popup on one page and want to close it on another page. I'm opening it with this: function progressWindow() { upbar = window.open(fileupload.htm, upbar,status=1,scrollbars=no,resizable=no,width=320,height=130,top=280,le ft=380); } Trying to close

RE: JS Question Hide/Show Form Elements

2007-08-05 Thread Adrian Lynch
Or $(#idofelement).toggle(); I'm having a tonne of fun with jQuery at the moment! Adrian -Original Message- From: Josh Nathanson Sent: 03 August 2007 17:25 To: CF-Talk Subject: Re: JS Question Hide/Show Form Elements HIDE: document.getElementById('idOfElement').style.display='none

Re: OT: JS Question Hide/Show Form Elements

2007-08-03 Thread Eric Haskins
We use Prototype. It works in just about everything we have thrown at it. Eric On 8/2/07, Che Vilnonis [EMAIL PROTECTED] wrote: Anyone know of a JS that works on *most* browsers that will allow me to hide/show sections of a form depending on what radio button is clicked? I've found a few,

RE: JS Question Hide/Show Form Elements

2007-08-03 Thread Bobby Hartsfield
: Thursday, August 02, 2007 2:53 PM To: CF-Talk Subject: OT: JS Question Hide/Show Form Elements Anyone know of a JS that works on *most* browsers that will allow me to hide/show sections of a form depending on what radio button is clicked? I've found a few, but they don't seem to work with all browsers

Re: JS Question Hide/Show Form Elements

2007-08-03 Thread Josh Nathanson
HIDE: document.getElementById('idOfElement').style.display='none' SHOW: document.getElementById('idOfElement').style.display='block' Or in jQuery: $(#idofelement).hide(); $(#idofelement).show(); -- Josh ~| Get involved in

OT: JS Question Hide/Show Form Elements

2007-08-02 Thread Che Vilnonis
Anyone know of a JS that works on *most* browsers that will allow me to hide/show sections of a form depending on what radio button is clicked? I've found a few, but they don't seem to work with all browsers. Sent at 2:52 PM EST. Thanks, Che

RE: JS Question Hide/Show Form Elements

2007-08-02 Thread Jim Davis
-Original Message- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 2:53 PM To: CF-Talk Subject: OT: JS Question Hide/Show Form Elements Anyone know of a JS that works on *most* browsers that will allow me to hide/show sections of a form depending

JS Question

2006-12-14 Thread Bruce Sorge
Hey all, I have an app that I am using a custom tag called cf_cal. it worked fine yesterday, and now today it is not. Basicaly it has an image of a calendar and when you click on the image, it opens a small windows with a calendar in it. The call to the tag looks like this: cf_cal formname=Page_1

RE: JS Question

2006-12-14 Thread Ben Nadel
ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Bruce Sorge [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 3:59 PM To: CF-Talk Subject: JS Question Hey all, I have an app that I am using a custom tag called cf_cal. it worked fine yesterday, and now today

Re: JS Question

2006-12-14 Thread Bruce Sorge
No popup blocker, custom tag has not been touched since yesterday (it worked fine when I left work). Function names are fine. The code you sent did nothing for me really. And I put an alert in the function, and nothing. So at least now I know the function is not being called.

RE: JS Question

2006-12-14 Thread Ben Nadel
/ask-ben/ -Original Message- From: Bruce Sorge [mailto:[EMAIL PROTECTED] Sent: Thursday, December 14, 2006 4:39 PM To: CF-Talk Subject: Re: JS Question No popup blocker, custom tag has not been touched since yesterday (it worked fine when I left work). Function names are fine. The code you

Re: JS Question

2006-12-14 Thread Robertson-Ravo, Neil (RX)
:59:47 2006 Subject: RE: JS Question Bruce, When you say the function I gave you did nothing... You mean it didn't even alert anything? You might have Javascript Disabled on the browser some how. ... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need

RE: JS Question

2006-12-14 Thread Bruce Sorge
To: CF-Talk Subject: RE: JS Question Bruce, When you say the function I gave you did nothing... You mean it didn't even alert anything? You might have Javascript Disabled on the browser some how. ... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need

Re: More of a JS Question/Forms

2006-05-02 Thread Cutter (CFRelated)
In our various site's stats, of several thousand daily users, 4% had javascript disabled and 99.3% of those were crawlers. What are your site's stats like? Cutter Denny Valliant wrote: The only trouble with JavaScript is: what if it's turned off? The isValid() and maybe hidden form fields

Re: More of a JS Question/Forms

2006-05-02 Thread Jochem van Dieten
Denny Valliant said: The only trouble with JavaScript is: what if it's turned off? Then you fall back to server-side validation. The isValid() and maybe hidden form fields would be safest. I think. Not the most UI friendly. In conjunction with some AJAX it could be, tho. And how is AJAX

Re: More of a JS Question/Forms

2006-05-02 Thread Denny Valliant
On 5/2/06, Jochem van Dieten [EMAIL PROTECTED] wrote: Denny Valliant said: The only trouble with JavaScript is: what if it's turned off? Then you fall back to server-side validation. Indeed, if you remembered to do it. I've found lots of places where their only validation is through JS.

RE: More of a JS Question/Forms

2006-05-01 Thread Snake
-Original Message- From: Eric J. Hoffman [mailto:[EMAIL PROTECTED] Sent: 01 May 2006 00:19 To: CF-Talk Subject: More of a JS Question/Forms I know this isn't quite CF, but figure the folks around here have done this easily. I have two forms, and I just want to check if no value has been entered

RE: More of a JS Question/Forms

2006-05-01 Thread Andy Matthews
--//- -Original Message- From: Eric J. Hoffman [mailto:[EMAIL PROTECTED] Sent: Sunday, April 30, 2006 6:19 PM To: CF-Talk Subject: More of a JS Question/Forms I know this isn't quite CF, but figure the folks around here have done this easily. I have two forms, and I just want

RE: More of a JS Question/Forms

2006-05-01 Thread Ben Nadel
: More of a JS Question/Forms FORM.fieldnames is a built in variable containing a commadelimited list of all of the FORM fields. You could loop over that and check to see if any/all of the fields are empty. !//-- andy matthews web developer ICGLink, Inc. [EMAIL PROTECTED

RE: More of a JS Question/Forms

2006-05-01 Thread Andy Matthews
-Talk Subject: RE: More of a JS Question/Forms FORM.fieldnames is a built in variable containing a commadelimited list of all of the FORM fields. You could loop over that and check to see if any/all of the fields are empty. !//-- andy matthews web developer ICGLink, Inc. [EMAIL

Re: More of a JS Question/Forms

2006-05-01 Thread Jim Wright
I have two forms, and I just want to check if no value has been entered in either form, and pop to tell the user to enter something! So I can't do a required field in my validation because they can fill in one of three fields or more in one form, but not the other. Eric, While Charlie's

RE: More of a JS Question/Forms

2006-05-01 Thread Eric J. Hoffman
Wright [mailto:[EMAIL PROTECTED] Sent: Monday, May 01, 2006 9:08 AM To: CF-Talk Subject: Re: More of a JS Question/Forms I have two forms, and I just want to check if no value has been entered in either form, and pop to tell the user to enter something! So I can't do a required field in my

Re: More of a JS Question/Forms

2006-05-01 Thread Jochem van Dieten
Eric J. Hoffman wrote: I know this isn't quite CF, but figure the folks around here have done this easily. I have two forms, and I just want to check if no value has been entered in either form, and pop to tell the user to enter something! So I can't do a required field in my validation

Re: More of a JS Question/Forms

2006-05-01 Thread Denny Valliant
The only trouble with JavaScript is: what if it's turned off? The isValid() and maybe hidden form fields would be safest. I think. Not the most UI friendly. In conjunction with some AJAX it could be, tho. :D On 5/1/06, Jochem van Dieten [EMAIL PROTECTED] wrote: Eric J. Hoffman wrote: I

More of a JS Question/Forms

2006-04-30 Thread Eric J. Hoffman
I know this isn't quite CF, but figure the folks around here have done this easily. I have two forms, and I just want to check if no value has been entered in either form, and pop to tell the user to enter something! So I can't do a required field in my validation because they can fill in one of

Re: More of a JS Question/Forms

2006-04-30 Thread Charlie Griefer
give each form field a unique ID. if ((document.getElementById('field1').value == ) (document.getElementById('field2').value == )) { alert('foobar'); return false; } that's the basic/most straightforward way. there are some regex's for JS that will also check to make sure there are

JS Question

2005-05-14 Thread Andy Ousterhout
I would like to be able to display alternate text when a User Mouse Over's a submit button and have the text displayed similar to how Alt Text works with links. Now could I do this? Andy ~| Find out how CFTicket can increase

RE: JS Question

2005-05-14 Thread Ewok
, 2005 11:27 AM To: CF-Talk Subject: JS Question I would like to be able to display alternate text when a User Mouse Over's a submit button and have the text displayed similar to how Alt Text works with links. Now could I do this? Andy

RE: JS Question

2005-05-14 Thread Andy Ousterhout
[mailto:[EMAIL PROTECTED] Sent: Saturday, May 14, 2005 11:27 AM To: CF-Talk Subject: JS Question I would like to be able to display alternate text when a User Mouse Over's a submit button and have the text displayed similar to how Alt Text works with links. Now could I do this? Andy

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 approach also

Re: CF and JS question

2004-08-28 Thread Douglas Knudsen
-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, doesn't the below creae an array of 3d arrays?A true 3D array is nto

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... I suspect

RE: CF and JS question

2004-08-28 Thread Jim Davis
: 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 via CF, in case there's a ' or something. Doug Ahh... Well I've

Re: CF and JS question

2004-08-28 Thread Douglas Knudsen
. 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 Object always creates an associative array (or, more specifically

Re: CF and JS question

2004-08-27 Thread Greg Morphis
)#'] = '#JSStringFormat(rates.url)#'; /cfoutput /cfoutput /cfoutput 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 question _javascript_ arrays are declared a bit differently than CF arrays

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 to see

Re: CF and JS question

2004-08-27 Thread Greg Morphis
-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 question _javascript_ arrays are declared a bit differently than CF arrays. try this: var taskArray = new Array(); cfloop index=x from

Re: CF and JS question

2004-08-27 Thread Greg Morphis
, 2004 4:05 PM To: CF-Talk Subject: Re: CF and JS question _javascript_ arrays are declared a bit differently than CF arrays. try this: var taskArray = new Array(); cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat

Re: CF and JS question

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

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(); cfoutput cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#',

Re: CF and JS question

2004-08-27 Thread Greg Morphis
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;itaskArray.length;i++){ if (taskArray[i][2] == actid) document.forms['laforma'].c_taskid.options[i] = new Option(taskArray[i][0], taskArray[i][1]);

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; xy; x++){ //loop the array if the id= the passed ID then boom put itin the sub select

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 cfoutput and [x] within the loop. the problem I'm

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 with 2

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 may

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 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 using

CF and JS question

2004-08-26 Thread Greg Morphis
I'm trying to populate a JS two dimensional array using CF.. this is that I have so far var taskArray = new Array(cfoutput#alltasks.recordcount#/cfoutput,3); cfoutput query=alltasks taskArray[#alltasks.task#,#alltasks.c_taskid#,#alltasks.c_activityid#]; /cfoutput I look at the source and it seems

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(); cfloop index=x from=1 to=#alltasks.recordcount# taskArray[#x-1#] = new Array( '#jsstringformat(alltasks.task)#', '#jsstringformat(alltasks.c_taskid)#',

RE: CF and JS question

2004-08-26 Thread Douglas Knudsen
)#']['#JSStringFormat(rates.rateplan)#' ]['#JSStringFormat(rates.descr)#'] = '#JSStringFormat(rates.url)#'; /cfoutput /cfoutput /cfoutput 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 question

RE: JS Question

2004-06-10 Thread Pascal Peters
PROTECTED] Sent: donderdag 10 juni 2004 0:02 To: CF-Talk Subject: RE: JS Question You are missing function at the beginning of your function declaration. No, I just included the necessary code to give you an idea of what I was doing... or trying to do rather. I got it now thought

SOT: JS Question

2004-06-09 Thread Tangorre, Michael
I have a CFLOOP that outputs 10 tables. Think of the 10 tables as pairs of 5. T1 / T2 T3 / T4 T5 / T6 T7 / T8 T9 / T10 There is a link in each top table (T1,T3,T5,T7,T9) that when clicked on should display the table below it (T2,T4,T6,T8,T10 respectively.) The HTML for the link is as

RE: JS Question

2004-06-09 Thread Shawn Grover
: Wednesday, June 09, 2004 9:46 AM To: CF-Talk Subject: SOT: JS Question I have a CFLOOP that outputs 10 tables. Think of the 10 tables as pairs of 5. T1 / T2 T3 / T4 T5 / T6 T7 / T8 T9 / T10 There is a link in each top table (T1,T3,T5,T7,T9) that when clicked on should display the table below it (T2,T4

RE: JS Question

2004-06-09 Thread Tangorre, Michael
This looks like a case of mixing server side and client side logic.Try dumping the values of the variables via a JS alert() just before calling the getElementById.See if it's what you are expecting. Just a bad variable naming choice Not mixing it up. :-) [Todays Threads] [This

RE: JS Question

2004-06-09 Thread Dave Watts
There is a link in each top table (T1,T3,T5,T7,T9) that when clicked on should display the table below it (T2,T4,T6,T8,T10 respectively.) The HTML for the link is as follows: cfloop from=1 to=5 index=x table trtda href="" return false;Company #x#/a/td/tr/table table

Re: SOT: JS Question

2004-06-09 Thread Claude Schneegans
Are you sure this code is inside a CFOUTPUT scope ? CFLOOP does not imply that expressions between #...# are interpreted. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address:

RE: JS Question

2004-06-09 Thread Tangorre, Michael
This might be way too obvious to be your problem, but I don't see any CFOUTPUT in that HTML. I only included the important code... Left the gimmes off :-) Mike [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

RE: SOT: JS Question

2004-06-09 Thread Tangorre, Michael
Are you sure this code is inside a CFOUTPUT scope ? CFLOOP does not imply that expressions between #...# are interpreted. Positive... It's a JS thing for sure. All the #x# and other variables output correctly when viewing the source. Mike [Todays Threads] [This Message] [Subscription]

RE: JS Question

2004-06-09 Thread Dave Watts
trtda href="" return false;Company #x#/a/td/tr/table ... The JS is as follows: toggleDrillDown(x){ You're passing in a string when you call the function, instead of the object itself. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444

RE: JS Question

2004-06-09 Thread Tangorre, Michael
toggleDrillDown(x){ You're passing in a string when you call the function, instead of the object itself. I'm with ya Dave.. However, when I pass in the object I get another error saying ';' expected (even though all the ; are there Passing in the object

RE: JS Question

2004-06-09 Thread Pascal Peters
'){ document.getElementById(x).style.display = 'none'; } else{ document.getElementById(x).style.display = 'block'; } } -Original Message- From: Tangorre, Michael [mailto:[EMAIL PROTECTED] Sent: woensdag 9 juni 2004 17:46 To: CF-Talk Subject: SOT: JS Question I have a CFLOOP

Re: JS Question

2004-06-09 Thread sudhakar ramaswamy
Your code modified a little. Works on IE 6.0. cfoutput cfloop from=1 to=5 index=x table trtda href="" return false;Company #x#/a/td/tr /table table style=display:none; id=tbl#x# trimmed off .. #x# /table /cfloop SCRIPT language=_javascript_ //initialize to some unused value

RE: JS Question

2004-06-09 Thread Michael T. Tangorre
You are missing function at the beginning of your function declaration. No, I just included the necessary code to give you an idea of what I was doing... or trying to do rather. I got it now thought... eval() was needed. Mike [Todays Threads] [This Message] [Subscription] [Fast

OT: HTML Form Desgin w/JS Question

2004-02-26 Thread Jim McAtee
I've got an application with a form containing several textareas.This application is going to manage several thousand records, and the text in these fields, on average from 100 to 200 characters, will all be entered by hand.I'm looking for a way to ease the initial data entry by allowing a user to

Re: OT: HTML Form Desgin w/JS Question

2004-02-26 Thread Jim McAtee
- Original Message - From: Steve Nelson [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, February 26, 2004 2:51 PM Subject: Re: OT: HTML Form Desgin w/JS Question From the sounds of it, I don't think it'll require hidden frames. Sounds like what you need is a global

Re: OT: HTML Form Desgin w/JS Question

2004-02-26 Thread Jim McAtee
- Original Message - From: Jeremy Brodie [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, February 26, 2004 2:13 PM Subject: Re: OT: HTML Form Desgin w/JS Question I'd like to add that with the number of fields that you will have, you need to think about categorizing

  1   2   3   >